VITA: Replace system getcwd with old vers.

This commit is contained in:
moto 2022-09-11 08:26:32 -04:00
parent 0e36051d89
commit 2c82bc6288

View file

@ -56,6 +56,13 @@ int _newlib_heap_size_user = 256 * 1024 * 1024;
#define MAX_CURDIR_PATH 512
char cur_dir[MAX_CURDIR_PATH] = "ux0:data/nzp";
int can_use_IME_keyboard = 1;
#undef getcwd
char *getcwd(char *buf, size_t size) {
if (buf != NULL) {
strncpy(buf, cur_dir, size);
}
return cur_dir;
}
#endif // VITA
qboolean isDedicated;