move save directory detection/creation from main() to OSystem_PSP::initBackend()

svn-id: r34326
This commit is contained in:
Joost Peters 2008-09-04 08:34:02 +00:00
parent 912684de2d
commit 3930783928
2 changed files with 13 additions and 10 deletions

View file

@ -122,16 +122,6 @@ int main(void)
{
SetupCallbacks();
//check if the save directory exists
SceUID fd = sceIoDopen(SCUMMVM_SAVEPATH);
if (fd < 0) {
//No? then let's create it.
sceIoMkdir(SCUMMVM_SAVEPATH, 0777);
} else {
//it exists, so close it again.
sceIoDclose(fd);
}
static char *argv[] = { "scummvm", NULL };
static int argc = sizeof(argv)/sizeof(char *)-1;