This commit is contained in:
ptitSeb 2016-12-26 20:38:50 +01:00
commit d4f68c3863
5 changed files with 18 additions and 10 deletions

View File

@ -64,7 +64,7 @@ inline void CRC_AddFLOAT(ULONG &ulCRC, FLOAT f)
// add memory block to a CRC value // add memory block to a CRC value
inline void CRC_AddBlock(ULONG &ulCRC, UBYTE *pubBlock, ULONG ulSize) inline void CRC_AddBlock(ULONG &ulCRC, UBYTE *pubBlock, ULONG ulSize)
{ {
for( INDEX i=0; i<ulSize; i++) CRC_AddBYTE( ulCRC, pubBlock[i]); for( INDEX i=0; (ULONG)i<ulSize; i++) CRC_AddBYTE( ulCRC, pubBlock[i]);
}; };
// end crc calculation // end crc calculation

View File

@ -724,7 +724,7 @@ void CInput::GetInput(BOOL bPreScan)
// clear button's buffer // clear button's buffer
memset( inp_ubButtonsBuffer, 0, sizeof( inp_ubButtonsBuffer)); memset( inp_ubButtonsBuffer, 0, sizeof( inp_ubButtonsBuffer));
Uint8 *keystate = SDL_GetKeyboardState(NULL); const Uint8 *keystate = SDL_GetKeyboardState(NULL);
// for each Key // for each Key
for (INDEX iKey=0; iKey<ARRAYCOUNT(_akcKeys); iKey++) { for (INDEX iKey=0; iKey<ARRAYCOUNT(_akcKeys); iKey++) {
const KeyConversion &kc = _akcKeys[iKey]; const KeyConversion &kc = _akcKeys[iKey];

View File

@ -128,13 +128,6 @@ BOOL APIENTRY DllMain( HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReser
static void DetectCPU(void) static void DetectCPU(void)
{ {
char strVendor[12+1] = { 0 }; char strVendor[12+1] = { 0 };
#if (defined USE_PORTABLE_C) // rcg10072001
CPrintF(TRANSV(" (No CPU detection in this binary.)\n"));
#ifdef PLATFORM_PANDORA
sys_iCPUMHz = 400; // conservative, ARM -> x86 cpu translation is not 1 to 1.
#endif
#else
strVendor[12] = 0; strVendor[12] = 0;
ULONG ulTFMS = 0; ULONG ulTFMS = 0;
ULONG ulFeatures = 0; ULONG ulFeatures = 0;
@ -221,8 +214,11 @@ static void DetectCPU(void)
sys_iCPUStepping = iStepping; sys_iCPUStepping = iStepping;
sys_bCPUHasMMX = bMMX!=0; sys_bCPUHasMMX = bMMX!=0;
sys_bCPUHasCMOV = bCMOV!=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); sys_iCPUMHz = INDEX(_pTimer->tm_llCPUSpeedHZ/1E6);
#endif
if( !bMMX) FatalError( TRANS("MMX support required but not present!")); if( !bMMX) FatalError( TRANS("MMX support required but not present!"));
} }

View File

@ -33,7 +33,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include <Engine/CurrentVersion.h> #include <Engine/CurrentVersion.h>
#include <GameMP/Game.h> #include <GameMP/Game.h>
#define DECL_DLL #define DECL_DLL
#ifdef FIRST_ENCOUNTER
#include <Entities/Global.h>
#else
#include <EntitiesMP/Global.h> #include <EntitiesMP/Global.h>
#endif
#include "resource.h" #include "resource.h"
#include "SplashScreen.h" #include "SplashScreen.h"
#include "MainWindow.h" #include "MainWindow.h"

View File

@ -34,11 +34,19 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#define DECL_DLL #define DECL_DLL
#endif #endif
#ifdef FIRST_ENCOUNTER
#include <Entities/Global.h>
#include <Entities/Common/Common.h>
#include <Entities/Common/GameInterface.h>
#include <Entities/WorldLink.h>
#include <Entities/Player.h>
#else
#include <EntitiesMP/Global.h> #include <EntitiesMP/Global.h>
#include <EntitiesMP/Common/Common.h> #include <EntitiesMP/Common/Common.h>
#include <EntitiesMP/Common/GameInterface.h> #include <EntitiesMP/Common/GameInterface.h>
#include <EntitiesMP/WorldLink.h> #include <EntitiesMP/WorldLink.h>
#include <EntitiesMP/Player.h> #include <EntitiesMP/Player.h>
#endif
#undef DECL_DLL #undef DECL_DLL
#include "SeriousSam.h" #include "SeriousSam.h"