This commit is contained in:
ElBread3 2024-10-01 08:56:46 -05:00
parent 9249a89ec6
commit c96abf4dcd
2 changed files with 1 additions and 11 deletions

View file

@ -107,16 +107,7 @@ static auto UserPaths = [] {
};
create_path(PathType::UserDir, user_dir);
#ifdef _WIN32
auto config_path = std::filesystem::path(getenv("APPDATA")) / "shadPS4";
#elif __APPLE__
auto config_path = user_dir;
#else
auto config_path = std::filesystem::current_path();
#endif
create_path(PathType::ConfigDir, config_path);
create_path(PathType::ConfigDir, std::filesystem::current_path());
create_path(PathType::LogDir, user_dir / LOG_DIR);
create_path(PathType::ScreenshotsDir, user_dir / SCREENSHOTS_DIR);
create_path(PathType::ShaderDir, user_dir / SHADER_DIR);

View file

@ -28,7 +28,6 @@ MainWindow::MainWindow(QWidget* parent) : QMainWindow(parent), ui(new Ui::MainWi
MainWindow::~MainWindow() {
SaveWindowState();
Common::FS::SetUserPath(Common::FS::PathType::UserDir, Config::getEmulatorUserDir());
const auto config_dir = Common::FS::GetUserPath(Common::FS::PathType::ConfigDir);
Config::save(config_dir / "config.toml");
}