projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added support for storing multiple event definitions for global animations
[rocksndiamonds.git]
/
src
/
libgame
/
system.c
diff --git
a/src/libgame/system.c
b/src/libgame/system.c
index 0b9be20e1b4cd209e2bc51ac20aa80bac9140c7e..488e838e8c4b82650edbcd48caee246420f1c6d8 100644
(file)
--- a/
src/libgame/system.c
+++ b/
src/libgame/system.c
@@
-30,6
+30,7
@@
struct ProgramInfo program;
struct NetworkInfo network;
struct ProgramInfo program;
struct NetworkInfo network;
+struct RuntimeInfo runtime;
struct OptionInfo options;
struct VideoSystemInfo video;
struct AudioSystemInfo audio;
struct OptionInfo options;
struct VideoSystemInfo video;
struct AudioSystemInfo audio;
@@
-114,6
+115,11
@@
void InitNetworkInfo(boolean enabled, boolean connected, boolean serveronly,
network.server_port = server_port;
}
network.server_port = server_port;
}
+void InitRuntimeInfo()
+{
+ runtime.uses_touch_device = FALSE;
+}
+
void InitScoresInfo(void)
{
char *global_scores_dir = getPath2(getCommonDataDir(), SCORES_DIRECTORY);
void InitScoresInfo(void)
{
char *global_scores_dir = getPath2(getCommonDataDir(), SCORES_DIRECTORY);
@@
-417,6
+423,11
@@
void SetOverlayShowGrid(boolean show_grid)
SetOverlayEnabled(TRUE);
}
SetOverlayEnabled(TRUE);
}
+boolean GetOverlayEnabled(void)
+{
+ return overlay.enabled;
+}
+
boolean GetOverlayActive(void)
{
return overlay.active;
boolean GetOverlayActive(void)
{
return overlay.active;