projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added setup options to disable asking on quit game and on quit program
[rocksndiamonds.git]
/
src
/
libgame
/
system.h
diff --git
a/src/libgame/system.h
b/src/libgame/system.h
index f5b2967e5ffc5345b042c15a29fe5ac7e713422c..ca8494bc46868c4b4d95c673260440ff6c02d77d 100644
(file)
--- a/
src/libgame/system.h
+++ b/
src/libgame/system.h
@@
-22,6
+22,8
@@
#include "windows.h"
#elif defined(PLATFORM_ANDROID)
#include "android.h"
#include "windows.h"
#elif defined(PLATFORM_ANDROID)
#include "android.h"
+#elif defined(PLATFORM_EMSCRIPTEN)
+#include "emscripten.h"
#endif
#include "sdl.h"
#endif
#include "sdl.h"
@@
-774,6
+776,11
@@
#define NUM_BASE_TREE_TYPES 4
#define NUM_TREE_TYPES 6
#define NUM_BASE_TREE_TYPES 4
#define NUM_TREE_TYPES 6
+#define TREE_TYPE_IS_DIR(type) ((type) == TREE_TYPE_GRAPHICS_DIR || \
+ (type) == TREE_TYPE_SOUNDS_DIR || \
+ (type) == TREE_TYPE_MUSIC_DIR || \
+ (type) == TREE_TYPE_LEVEL_DIR)
+
#define INFOTEXT_UNDEFINED ""
#define INFOTEXT_GRAPHICS_DIR "Custom Graphics"
#define INFOTEXT_SOUNDS_DIR "Custom Sounds"
#define INFOTEXT_UNDEFINED ""
#define INFOTEXT_GRAPHICS_DIR "Custom Graphics"
#define INFOTEXT_SOUNDS_DIR "Custom Sounds"
@@
-1454,6
+1461,8
@@
struct SetupInfo
boolean ask_on_escape;
boolean ask_on_escape_editor;
boolean ask_on_game_over;
boolean ask_on_escape;
boolean ask_on_escape_editor;
boolean ask_on_game_over;
+ boolean ask_on_quit_game;
+ boolean ask_on_quit_program;
boolean quick_switch;
boolean input_on_focus;
boolean prefer_aga_graphics;
boolean quick_switch;
boolean input_on_focus;
boolean prefer_aga_graphics;