Reverting pointless addition of BE logic to loader.cpp

This commit is contained in:
grepwood@sucs.org 2021-11-07 03:08:02 +01:00
parent 5660bc3ebf
commit 641551a065
1 changed files with 1 additions and 9 deletions

View File

@ -6,15 +6,6 @@
#include "Sound.h"
#include "zdrv.h"
#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
# if defined(__GNUC__) && defined(linux)
# include <byteswap.h>
# define scp_bswap64(x) __bswap_64(x)
# define scp_bswap32(x) __bswap_32(x)
# define scp_bswap16(x) __bswap_16(x)
# endif //__GNUC__ && linux
#endif
errorMsg loader::loader_errors[] =
{
errorMsg{0, "Bad Handle"},
@ -93,6 +84,7 @@ void loader::loadfrom(DatFile* datFile)
{
loader_table = datFile;
sound_record_table = loader_table;
for (auto groupIndex = 0; groupIndex < static_cast<int>(datFile->Groups.size()); ++groupIndex)
{
auto value = reinterpret_cast<int16_t*>(datFile->field(groupIndex, FieldTypes::ShortValue));