Add support for non portable mode (#356)

This commit is contained in:
SSimco 2022-10-11 23:03:26 -07:00 committed by GitHub
parent 2b9edced81
commit d6ba61cf64
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
38 changed files with 233 additions and 163 deletions

View file

@ -989,8 +989,8 @@ void MainWindow::OnDebugSetting(wxCommandEvent& event)
{
try
{
const auto path = CemuApp::GetCemuPath(L"dump\\curl").ToStdWstring();
fs::create_directories(path);
const fs::path path(CemuApp::GetUserDataPath().ToStdString());
fs::create_directories(path / "dump" / "curl");
}
catch (const std::exception& ex)
{
@ -1046,8 +1046,8 @@ void MainWindow::OnDebugDumpUsedTextures(wxCommandEvent& event)
try
{
// create directory
const auto path = CemuApp::GetCemuPath(L"dump\\textures");
fs::create_directories(path.ToStdWstring());
const fs::path path(CemuApp::GetUserDataPath().ToStdString());
fs::create_directories(path / "dump" / "textures");
}
catch (const std::exception& ex)
{
@ -1067,8 +1067,8 @@ void MainWindow::OnDebugDumpUsedShaders(wxCommandEvent& event)
try
{
// create directory
const auto path = CemuApp::GetCemuPath(L"dump\\shaders");
fs::create_directories(path.ToStdWstring());
const fs::path path(CemuApp::GetUserDataPath().ToStdString());
fs::create_directories(path / "dump" / "shaders");
}
catch (const std::exception & ex)
{