mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-07-02 21:36:20 +12:00
[FS] Implement SaveData sort of.
This commit is contained in:
parent
d24a61d5a7
commit
e69e95af69
7 changed files with 75 additions and 31 deletions
|
@ -38,10 +38,16 @@ void FSService::reset() {
|
|||
// Creates directories for NAND, ExtSaveData, etc if they don't already exist. Should be executed after loading a new ROM.
|
||||
void FSService::initializeFilesystem() {
|
||||
const auto nandPath = IOFile::getAppData() / "NAND"; // Create NAND
|
||||
// TODO: Savedata, SDMC, etc
|
||||
const auto savePath = IOFile::getAppData() / "SaveData"; // Create SaveData
|
||||
namespace fs = std::filesystem;
|
||||
// TODO: SDMC, etc
|
||||
|
||||
if (!std::filesystem::is_directory(nandPath)) {
|
||||
std::filesystem::create_directories(nandPath);
|
||||
if (!fs::is_directory(nandPath)) {
|
||||
fs::create_directories(nandPath);
|
||||
}
|
||||
|
||||
if (!fs::is_directory(savePath)) {
|
||||
fs::create_directories(savePath);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue