mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 21:00:17 +02:00
Merge pull request #5080 from Sonicadvance1/9
FEXInterpreter: Fixes crash with code maps
This commit is contained in:
1 file changed
+4
@@ -428,6 +428,10 @@ int main(int argc, char** argv, char** const envp) {
|
||||
char* RealPath = realpath(Program.ProgramPath.c_str(), ExistsTempPath);
|
||||
if (RealPath) {
|
||||
FEXCore::Config::Set(FEXCore::Config::CONFIG_APP_FILENAME, fextl::string(RealPath));
|
||||
} else {
|
||||
// Can happen when jumping in to pressure-vessel.
|
||||
// `/usr/lib/pressure-vessel/from-host/libexec/steam-runtime-tools-0/pv-adverb` can't get resolved.
|
||||
FEXCore::Config::Set(FEXCore::Config::CONFIG_APP_FILENAME, Program.ProgramPath);
|
||||
}
|
||||
}
|
||||
FEXCore::Config::Set(FEXCore::Config::CONFIG_APP_CONFIG_NAME, Program.ProgramName);
|
||||
|
||||
Reference in new issue
Block a user