mirror of
https://github.com/k4zmu2a/SpaceCadetPinball.git
synced 2024-12-18 18:37:55 +01:00
Reverting pointless addition of BE logic to loader.cpp
This commit is contained in:
parent
5660bc3ebf
commit
641551a065
1 changed files with 1 additions and 9 deletions
|
@ -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 a new issue