Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool Filesystem::Initialize()
- {
- ROMFS_INIT = romfsInit() ? false : true;
- //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
- getcwd((char *)SAVE_DIR.data(), 256);
- if (!ROMFS_INIT)
- return false;
- else
- chdir("romfs:/");
- //if (chdir("game") != 0)
- // return false;
- mkdir(SAVE_DIR.c_str(), 0777);
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement