| 121 | } |
| 122 | |
| 123 | static void SetupProgram(int argc, char** argv) { |
| 124 | static char ipBuffer[STRING_SIZE]; |
| 125 | cc_result res; |
| 126 | CrashHandler_Install(); |
| 127 | Logger_Hook(); |
| 128 | Window_PreInit(); |
| 129 | Gamepads_PreInit(); |
| 130 | Platform_Init(); |
| 131 | |
| 132 | res = Platform_SetDefaultCurrentDirectory(argc, argv); |
| 133 | Options_Load(); |
| 134 | Window_Init(); |
| 135 | Gamepads_Init(); |
| 136 | |
| 137 | if (res) Logger_SysWarn(res, "setting current directory"); |
| 138 | Platform_LogConst("Starting " GAME_APP_NAME " .."); |
| 139 | String_InitArray(Server.Address, ipBuffer); |
| 140 | } |
| 141 | |
| 142 | #define SP_HasDir(path) (String_IndexOf(path, '/') >= 0 || String_IndexOf(path, '\\') >= 0) |
| 143 | static cc_bool IsOpenableFile(const cc_string* path) { |
no test coverage detected