fix web client and windows builds not compiling

This commit is contained in:
UnknownShadow200 2019-10-20 20:34:22 +11:00
parent 58b9ef7df9
commit 88af4d7c83
2 changed files with 3 additions and 7 deletions

View File

@ -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);

View File

@ -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);