forked from yasumitsu/ja2-1.13-source-mirror
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Sys Globals.cpp
50 lines (39 loc) · 1.18 KB
/
Sys Globals.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#ifdef PRECOMPILEDHEADERS
#include "JA2 All.h"
#else
#include "builddefines.h"
#include <stdarg.h>
#include <stdio.h>
#include <wchar.h>
#include "types.h"
#include "screenids.h"
#include "Sys Globals.h"
#include "gameloop.h"
#endif
// External globals
extern CHAR8 gubFilename[ 200 ]; // symbol already declared globally in editscreen.cpp (jonathanl)
BOOLEAN gfEditMode = FALSE;
extern CHAR8 gDebugStr[128]; // symbol already defined in overhead.cpp (jonathanl)
CHAR8 gSystemDebugStr[128];
INT8 gbFPSDisplay = SHOW_MIN_FPS;
BOOLEAN gfResetInputCheck = FALSE;
BOOLEAN gfGlobalError = FALSE;
UINT32 guiGameCycleCounter = 0;
CHAR8 gubErrorText[ 512 ];//for long filenames
BOOLEAN SET_ERROR( const STR8 String, ...)
{
va_list ArgPtr;
va_start(ArgPtr, String);
vsprintf( gubErrorText, String, ArgPtr);
va_end(ArgPtr);
SetPendingNewScreen( ERROR_SCREEN );
gfGlobalError = TRUE;
return( FALSE );
}
//create a varible that can be tested outside the pre-compiler convention.
// also see its "Sys Globals.h" declaration
#ifdef JA2BETAVERSION
BOOLEAN JA2BETAVERSION_FLAG = 1;
#else
BOOLEAN JA2BETAVERSION_FLAG = 0;
#endif