Advertisement
Guest User

Untitled

a guest
Apr 20th, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.44 KB | None | 0 0
  1. bool Filesystem::Initialize()
  2. {
  3.     ROMFS_INIT = romfsInit() ? false : true;
  4.  
  5.     //Get base device path
  6.     //Can change if it's on USB for whatever reason
  7.     //In that case it'll be {DEVICE}:/LovePotion/
  8.     //{IDENTITY} is appended for unique ID
  9.     getcwd((char *)SAVE_DIR.data(), 256);
  10.  
  11.     if (!ROMFS_INIT)
  12.         return false;
  13.     else
  14.         chdir("romfs:/");
  15.    
  16.     //if (chdir("game") != 0)
  17.     //  return false;
  18.    
  19.     mkdir(SAVE_DIR.c_str(), 0777);
  20.  
  21.     return true;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement