Skip to content

Commit

Permalink
Pururu my beloved <3
Browse files Browse the repository at this point in the history
  • Loading branch information
kamfretoz committed Jan 24, 2025
1 parent de95354 commit a150545
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pcsx2/Pcsx2Config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2186,7 +2186,19 @@ bool EmuFolders::SetDataDirectory(Error* error)

// couldn't determine the data directory, or using portable mode? fallback to portable.
if (DataRoot.empty())
{
#if defined(__linux__)
if (getenv("APPIMAGE"))
{
std::string_view appimage_path = Path::GetDirectory(getenv("APPIMAGE"));
DataRoot = Path::RealPath(Path::Combine(appimage_path, "PCSX2"));
}
else
DataRoot = Path::Combine(AppRoot, GetPortableModePath());
#else
DataRoot = Path::Combine(AppRoot, GetPortableModePath());
#endif
}

// inis is always below the data root
Settings = Path::Combine(DataRoot, "inis");
Expand Down

0 comments on commit a150545

Please sign in to comment.