mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-26 04:05:53 +01:00
Merge branch 'master' of https://github.com/ptitSeb/Serious-Engine
This commit is contained in:
commit
d4f68c3863
|
@ -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
|
||||||
|
|
|
@ -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];
|
||||||
|
|
|
@ -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!"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user