diff --git a/SpaceCadetPinball/loader.cpp b/SpaceCadetPinball/loader.cpp index bfd06a1..7f3e9da 100644 --- a/SpaceCadetPinball/loader.cpp +++ b/SpaceCadetPinball/loader.cpp @@ -6,15 +6,6 @@ #include "Sound.h" #include "zdrv.h" -#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ -# if defined(__GNUC__) && defined(linux) -# include -# 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(datFile->Groups.size()); ++groupIndex) { auto value = reinterpret_cast(datFile->field(groupIndex, FieldTypes::ShortValue));