X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fsystem.h;h=e93122a8099b33d9daf44d567e7faf2020ff7227;hb=a4e95e0a6d4b53732ea0a585be0b6df55ae41e42;hp=8ebd43dca41d15a869e75c98871f6ed1000c3636;hpb=ba6af23b5637bcd5fa4e247dc336b45ba1e6fd1a;p=rocksndiamonds.git diff --git a/src/libgame/system.h b/src/libgame/system.h index 8ebd43dc..e93122a8 100644 --- a/src/libgame/system.h +++ b/src/libgame/system.h @@ -105,6 +105,13 @@ #define STR_NETWORK_AUTO_DETECT "auto_detect_network_server" #define STR_NETWORK_AUTO_DETECT_SETUP "(auto detect network server)" +// values for API server settings +#define API_SERVER_HOSTNAME "api.artsoft.org" +#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" #define TOUCH_CONTROL_VIRTUAL_BUTTONS "virtual_buttons" @@ -622,12 +629,7 @@ #define RO_GAME_DIR "." #endif -#ifndef RW_GAME_DIR -#define RW_GAME_DIR "." -#endif - #define RO_BASE_PATH RO_GAME_DIR -#define RW_BASE_PATH RW_GAME_DIR // directory names #define GRAPHICS_DIRECTORY "graphics" @@ -1010,9 +1012,6 @@ struct ProgramInfo void (*exit_message_function)(char *, va_list); void (*exit_function)(int); - boolean global_scores; - boolean many_scores_per_name; - boolean headless; }; @@ -1032,6 +1031,8 @@ struct NetworkInfo struct RuntimeInfo { boolean uses_touch_device; + + boolean api_server; }; struct OptionInfo @@ -1040,7 +1041,6 @@ struct OptionInfo int server_port; char *ro_base_directory; - char *rw_base_directory; char *level_directory; char *graphics_directory; char *sounds_directory; @@ -1461,6 +1461,8 @@ struct SetupInfo 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; @@ -1471,6 +1473,7 @@ struct SetupInfo boolean sp_show_border_elements; boolean small_game_graphics; boolean show_snapshot_buttons; + boolean only_show_local_scores; char *graphics_set; char *sounds_set; @@ -1487,6 +1490,9 @@ struct SetupInfo int network_player_nr; char *network_server_hostname; + boolean api_server; + char *api_server_hostname; + struct SetupAutoSetupInfo auto_setup; struct SetupLevelSetupInfo level_setup; @@ -1563,6 +1569,7 @@ struct TreeInfo boolean level_group; // directory contains more level series directories boolean parent_link; // entry links back to parent directory + boolean is_copy; // this entry is a copy of another entry in the tree boolean in_user_dir; // user defined levels are stored in home directory boolean user_defined; // levels in user directory and marked as "private" boolean readonly; // readonly levels can not be changed with editor @@ -1859,7 +1866,6 @@ void InitProgramInfo(char *, char *, char *, char *, char *, char *, char *, void InitNetworkInfo(boolean, boolean, boolean, char *, int); void InitRuntimeInfo(void); -void InitScoresInfo(void); void SetWindowTitle(void); void InitWindowTitleFunction(char *(*window_title_function)(void)); @@ -1981,4 +1987,7 @@ boolean ReadJoystick(int, int *, int *, boolean *, boolean *); boolean CheckJoystickOpened(int); void ClearJoystickState(void); +void InitEmscriptenFilesystem(void); +void SyncEmscriptenFilesystem(void); + #endif // SYSTEM_H