refactor!: File Manager (#1633)

* feat(vscode): added launch.json to dbg
* feat(file_manager): Make use of a global instance
* feat(file_manager): Allow for file and folder instances to be empty
* refactor(GlobalsService): Update code of global service (untested)
This commit is contained in:
Andreas Maerten
2023-07-08 17:54:59 +02:00
committed by GitHub
parent 6f40a38045
commit f13eab76a6
32 changed files with 185 additions and 208 deletions

View File

@ -161,7 +161,7 @@ namespace big
ImGui::Separator();
static char outfit_name[MAX_PATH] = {};
static folder saved_outfit_path = g_file_manager->get_project_folder("saved_outfits");
static folder saved_outfit_path = g_file_manager.get_project_folder("saved_outfits");
std::vector<std::string> saved_outfits;
for (const auto& directory_entry : std::filesystem::directory_iterator(saved_outfit_path.get_path()))
saved_outfits.push_back(directory_entry.path().filename().generic_string());