PSP2: Fix base paths for drives in HENkaku

This commit is contained in:
Jeffrey Pfau 2016-07-30 16:46:00 -07:00
parent ce8db37634
commit 274d55e5ab
2 changed files with 2 additions and 2 deletions

View File

@ -207,7 +207,7 @@ void mCoreConfigDirectory(char* out, size_t outLength) {
WideCharToMultiByte(CP_UTF8, 0, wpath, -1, out, outLength, 0, 0); WideCharToMultiByte(CP_UTF8, 0, wpath, -1, out, outLength, 0, 0);
#elif defined(PSP2) #elif defined(PSP2)
UNUSED(portable); UNUSED(portable);
snprintf(out, outLength, "cache0:/%s", projectName); snprintf(out, outLength, "ux0:/%s", projectName);
sceIoMkdir(out, 0777); sceIoMkdir(out, 0777);
#elif defined(GEKKO) #elif defined(GEKKO)
UNUSED(portable); UNUSED(portable);

View File

@ -137,7 +137,7 @@ bool _vfsceSync(struct VFile* vf, const void* buffer, size_t size) {
sceIoLseek(vfsce->fd, cur, SEEK_SET); sceIoLseek(vfsce->fd, cur, SEEK_SET);
} }
// TODO: Get the right device // TODO: Get the right device
return sceIoSync("cache0:", 0) >= 0; return sceIoSync("ux0:", 0) >= 0;
} }
struct VDir* VDirOpen(const char* path) { struct VDir* VDirOpen(const char* path) {