VERY experimental Nintendo Switch 2 emulator
C++
Common: Change names containing “Dolphin” or “PPSSPP” to something more generic.
Emmanuel Gil Peyrot54d6f6c82b23
diff --git a/src/common/file_util.cpp b/src/common/file_util.cppindex 706e7c8421..457376bf47 100644--- a/src/common/file_util.cpp+++ b/src/common/file_util.cpp@@ -622,15 +622,15 @@ std::string GetBundleDirectory()#ifdef _WIN32std::string& GetExeDirectory(){- static std::string DolphinPath;- if (DolphinPath.empty())+ static std::string exe_path;+ if (exe_path.empty()){- TCHAR Dolphin_exe_Path[2048];- GetModuleFileName(nullptr, Dolphin_exe_Path, 2048);- DolphinPath = Common::TStrToUTF8(Dolphin_exe_Path);- DolphinPath = DolphinPath.substr(0, DolphinPath.find_last_of('\\'));+ TCHAR tchar_exe_path[2048];+ GetModuleFileName(nullptr, tchar_exe_path, 2048);+ exe_path = Common::TStrToUTF8(tchar_exe_path);+ exe_path = exe_path.substr(0, exe_path.find_last_of('\\'));}- return DolphinPath;+ return exe_path;}#endifdiff --git a/src/common/mem_arena.cpp b/src/common/mem_arena.cppindex cc31a88ccf..76c70701d9 100644--- a/src/common/mem_arena.cpp+++ b/src/common/mem_arena.cpp@@ -116,7 +116,7 @@ void MemArena::GrabLowMemSpace(size_t size)GetSystemInfo(&sysInfo);#elif defined(ANDROID)// Use ashmem so we don't have to allocate a file on disk!- fd = ashmem_create_region("PPSSPP_RAM", size);+ fd = ashmem_create_region("Citra_RAM", size);// Note that it appears that ashmem is pinned by default, so no need to pin.if (fd < 0){