mirror of
https://github.com/k4zmu2a/SpaceCadetPinball.git
synced 2023-12-30 21:52:56 +00:00
Reverting pointless addition of BE logic to loader.cpp
This commit is contained in:
parent
5660bc3ebf
commit
641551a065
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user