projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
removed support for global (common/system-wide) scores directory
[rocksndiamonds.git]
/
src
/
libgame
/
system.h
diff --git
a/src/libgame/system.h
b/src/libgame/system.h
index 8265773358ca9d1806dc39e69b3c78f39a9cf61e..9d44373cf42c54cf0f4d036f98c843fe2b43aed5 100644
(file)
--- a/
src/libgame/system.h
+++ b/
src/libgame/system.h
@@
-110,6
+110,7
@@
#define API_SERVER_PORT 80
#define API_SERVER_METHOD "POST"
#define API_SERVER_URI_ADD "/api/scores/add"
#define API_SERVER_PORT 80
#define API_SERVER_METHOD "POST"
#define API_SERVER_URI_ADD "/api/scores/add"
+#define API_SERVER_URI_GET "/api/scores/get"
// values for touch control
#define TOUCH_CONTROL_OFF "off"
// values for touch control
#define TOUCH_CONTROL_OFF "off"
@@
-1016,9
+1017,6
@@
struct ProgramInfo
void (*exit_message_function)(char *, va_list);
void (*exit_function)(int);
void (*exit_message_function)(char *, va_list);
void (*exit_function)(int);
- boolean global_scores;
- boolean many_scores_per_name;
-
boolean headless;
};
boolean headless;
};
@@
-1038,6
+1036,8
@@
struct NetworkInfo
struct RuntimeInfo
{
boolean uses_touch_device;
struct RuntimeInfo
{
boolean uses_touch_device;
+
+ boolean api_server;
};
struct OptionInfo
};
struct OptionInfo
@@
-1479,6
+1479,7
@@
struct SetupInfo
boolean sp_show_border_elements;
boolean small_game_graphics;
boolean show_snapshot_buttons;
boolean sp_show_border_elements;
boolean small_game_graphics;
boolean show_snapshot_buttons;
+ boolean only_show_local_scores;
char *graphics_set;
char *sounds_set;
char *graphics_set;
char *sounds_set;
@@
-1495,6
+1496,9
@@
struct SetupInfo
int network_player_nr;
char *network_server_hostname;
int network_player_nr;
char *network_server_hostname;
+ boolean api_server;
+ char *api_server_hostname;
+
struct SetupAutoSetupInfo auto_setup;
struct SetupLevelSetupInfo level_setup;
struct SetupAutoSetupInfo auto_setup;
struct SetupLevelSetupInfo level_setup;
@@
-1868,7
+1872,6
@@
void InitProgramInfo(char *, char *, char *, char *, char *, char *, char *,
void InitNetworkInfo(boolean, boolean, boolean, char *, int);
void InitRuntimeInfo(void);
void InitNetworkInfo(boolean, boolean, boolean, char *, int);
void InitRuntimeInfo(void);
-void InitScoresInfo(void);
void SetWindowTitle(void);
void InitWindowTitleFunction(char *(*window_title_function)(void));
void SetWindowTitle(void);
void InitWindowTitleFunction(char *(*window_title_function)(void));