diff --git a/Sources/Engine/Base/CRC.h b/Sources/Engine/Base/CRC.h index eb93255..64a57cb 100644 --- a/Sources/Engine/Base/CRC.h +++ b/Sources/Engine/Base/CRC.h @@ -64,7 +64,7 @@ inline void CRC_AddFLOAT(ULONG &ulCRC, FLOAT f) // add memory block to a CRC value inline void CRC_AddBlock(ULONG &ulCRC, UBYTE *pubBlock, ULONG ulSize) { - for( INDEX i=0; i x86 cpu translation is not 1 to 1. - #endif - -#else strVendor[12] = 0; ULONG ulTFMS = 0; ULONG ulFeatures = 0; @@ -221,8 +214,11 @@ static void DetectCPU(void) sys_iCPUStepping = iStepping; sys_bCPUHasMMX = bMMX!=0; sys_bCPUHasCMOV = bCMOV!=0; +#ifdef PLATFORM_PANDORA + sys_iCPUMHz = 400; // conservative, ARM -> x86 cpu translation is not 1 to 1. +#else sys_iCPUMHz = INDEX(_pTimer->tm_llCPUSpeedHZ/1E6); - +#endif if( !bMMX) FatalError( TRANS("MMX support required but not present!")); } diff --git a/Sources/SeriousSam/SeriousSam.cpp b/Sources/SeriousSam/SeriousSam.cpp index c7ffa56..8e246b8 100755 --- a/Sources/SeriousSam/SeriousSam.cpp +++ b/Sources/SeriousSam/SeriousSam.cpp @@ -33,7 +33,11 @@ with this program; if not, write to the Free Software Foundation, Inc., #include #include #define DECL_DLL +#ifdef FIRST_ENCOUNTER +#include +#else #include +#endif #include "resource.h" #include "SplashScreen.h" #include "MainWindow.h" diff --git a/Sources/SeriousSam/StdH.h b/Sources/SeriousSam/StdH.h index c36b058..5f13c2b 100644 --- a/Sources/SeriousSam/StdH.h +++ b/Sources/SeriousSam/StdH.h @@ -34,11 +34,19 @@ with this program; if not, write to the Free Software Foundation, Inc., #define DECL_DLL #endif +#ifdef FIRST_ENCOUNTER +#include +#include +#include +#include +#include +#else #include #include #include #include #include +#endif #undef DECL_DLL #include "SeriousSam.h"