mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-04 08:22:32 +00:00
fixes
This commit is contained in:
parent
9249a89ec6
commit
c96abf4dcd
@ -107,16 +107,7 @@ static auto UserPaths = [] {
|
|||||||
};
|
};
|
||||||
|
|
||||||
create_path(PathType::UserDir, user_dir);
|
create_path(PathType::UserDir, user_dir);
|
||||||
|
create_path(PathType::ConfigDir, std::filesystem::current_path());
|
||||||
#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::LogDir, user_dir / LOG_DIR);
|
create_path(PathType::LogDir, user_dir / LOG_DIR);
|
||||||
create_path(PathType::ScreenshotsDir, user_dir / SCREENSHOTS_DIR);
|
create_path(PathType::ScreenshotsDir, user_dir / SCREENSHOTS_DIR);
|
||||||
create_path(PathType::ShaderDir, user_dir / SHADER_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() {
|
MainWindow::~MainWindow() {
|
||||||
SaveWindowState();
|
SaveWindowState();
|
||||||
Common::FS::SetUserPath(Common::FS::PathType::UserDir, Config::getEmulatorUserDir());
|
|
||||||
const auto config_dir = Common::FS::GetUserPath(Common::FS::PathType::ConfigDir);
|
const auto config_dir = Common::FS::GetUserPath(Common::FS::PathType::ConfigDir);
|
||||||
Config::save(config_dir / "config.toml");
|
Config::save(config_dir / "config.toml");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user