mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-14 10:05:44 -04:00
fix web client and windows builds not compiling
This commit is contained in:
parent
58b9ef7df9
commit
88af4d7c83
@ -1716,7 +1716,7 @@ int Platform_GetCommandLineArgs(int argc, STRING_REF char** argv, String* args)
|
||||
return i;
|
||||
}
|
||||
|
||||
cc_result Platform_SetDefaultCurrentDirectory(void) {
|
||||
cc_result Platform_SetDefaultCurrentDirectory(int argc, char **argv) {
|
||||
TCHAR path[NATIVE_STR_LEN + 1];
|
||||
int i, len;
|
||||
cc_result res = Process_RawGetExePath(path, &len);
|
||||
@ -1740,7 +1740,7 @@ int Platform_GetCommandLineArgs(int argc, STRING_REF char** argv, String* args)
|
||||
return count;
|
||||
}
|
||||
|
||||
cc_result Platform_SetDefaultCurrentDirectory(void) {
|
||||
cc_result Platform_SetDefaultCurrentDirectory(int argc, char **argv) {
|
||||
return chdir("/classicube") == -1 ? errno : 0;
|
||||
}
|
||||
#elif defined CC_BUILD_ANDROID
|
||||
@ -1749,7 +1749,7 @@ int Platform_GetCommandLineArgs(int argc, STRING_REF char** argv, String* args)
|
||||
return String_UNSAFE_Split(&gameArgs, ' ', args, GAME_MAX_CMDARGS);
|
||||
}
|
||||
|
||||
cc_result Platform_SetDefaultCurrentDirectory(void) {
|
||||
cc_result Platform_SetDefaultCurrentDirectory(int argc, char **argv) {
|
||||
String dir; char dirBuffer[FILENAME_SIZE + 1];
|
||||
String_InitArray_NT(dir, dirBuffer);
|
||||
|
||||
|
@ -41,11 +41,7 @@ void Platform_Init(void);
|
||||
/* Frees the platform specific state. */
|
||||
void Platform_Free(void);
|
||||
/* Sets the appropriate default current/working directory. */
|
||||
#if defined CC_BUILD_POSIX
|
||||
cc_result Platform_SetDefaultCurrentDirectory(int argc, char **argv);
|
||||
#else
|
||||
cc_result Platform_SetDefaultCurrentDirectory(void);
|
||||
#endif
|
||||
/* Gets the command line arguments passed to the program. */
|
||||
int Platform_GetCommandLineArgs(int argc, STRING_REF char** argv, String* args);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user