Common: Use Path for GetExeDirectory().

This commit is contained in:
Unknown W. Brackets committed 2021-05-15 11:12:54 -07:00
1 parent 7b175627b3
commit f2b2f26e8e
8 files changed
+18 -26

No files matched your search

+3 -3
View File
@@ -945,7 +945,7 @@ void GameSettingsScreen::CreateViews() {
SavePathInOtherChoice->OnClick.Handle(this, &GameSettingsScreen::OnSavePathOther);
const bool myDocsExists = W32Util::UserDocumentsPath().size() != 0;
const Path PPSSPPpath = Path(File::GetExeDirectory());
const Path &PPSSPPpath = File::GetExeDirectory();
const Path installedFile = PPSSPPpath / "installed.txt";
installed_ = File::Exists(installedFile);
otherinstalled_ = false;
@@ -1134,7 +1134,7 @@ UI::EventReturn GameSettingsScreen::OnChangeMemStickDir(UI::EventParams &e) {
#elif defined(_WIN32) && !PPSSPP_PLATFORM(UWP)
UI::EventReturn GameSettingsScreen::OnSavePathMydoc(UI::EventParams &e) {
const Path PPSSPPpath = Path(File::GetExeDirectory());
const Path &PPSSPPpath = File::GetExeDirectory();
const Path installedFile = installedFile / "installed.txt";
installed_ = File::Exists(installedFile);
if (otherinstalled_) {
@@ -1161,7 +1161,7 @@ UI::EventReturn GameSettingsScreen::OnSavePathMydoc(UI::EventParams &e) {
}
UI::EventReturn GameSettingsScreen::OnSavePathOther(UI::EventParams &e) {
const Path PPSSPPpath = Path(File::GetExeDirectory());
const Path &PPSSPPpath = File::GetExeDirectory();
if (otherinstalled_) {
auto di = GetI18NCategory("Dialog");
std::string folder = W32Util::BrowseForFolder(MainWindow::GetHWND(), di->T("Choose PPSSPP save folder"));