mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-04-22 04:24:44 +00:00
fixes
This commit is contained in:
parent
9249a89ec6
commit
c96abf4dcd
2 changed files with 1 additions and 11 deletions
|
@ -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);
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue