Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool Filesystem::Initialize()
- {
- Result ROMFS_INIT = romfsInit();
- //Get base device path
- //Can change if it's on USB for whatever reason
- //In that case it'll be {DEVICE}:/LovePotion/
- //{IDENTITY} is appended for unique ID
- char cwd[256];
- getcwd(cwd, 256);
- SAVE_DIR = cwd;
- if (ROMFS_INIT != 0)
- return false;
- else
- {
- if (chdir("game") != 0)
- chdir("romfs:/"); //load nogame!
- }
- mkdir(SAVE_DIR.c_str(), 0777);
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement