From 641551a065912bb1d77c5f0533775ef5f22e549f Mon Sep 17 00:00:00 2001 From: "grepwood@sucs.org" Date: Sun, 7 Nov 2021 03:08:02 +0100 Subject: [PATCH] Reverting pointless addition of BE logic to loader.cpp --- SpaceCadetPinball/loader.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) 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));