-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
56c249a
commit 9a35460
Showing
4 changed files
with
152 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
diff --git a/Source/Common/Config.cpp b/Source/Common/Config.cpp | ||
index 093e11682..fd8143570 100644 | ||
--- a/Source/Common/Config.cpp | ||
+++ b/Source/Common/Config.cpp | ||
@@ -423,17 +423,17 @@ const char* GetHomeDirectory() { | ||
const char* HomeDir = getenv("HOME"); | ||
|
||
// Try to get home directory from uid | ||
- if (!HomeDir) { | ||
+ if (!HomeDir || !FHU::Filesystem::Exists(HomeDir)) { | ||
HomeDir = FindUserHomeThroughUID(); | ||
} | ||
|
||
// try the PWD | ||
- if (!HomeDir) { | ||
+ if (!HomeDir || !FHU::Filesystem::Exists(HomeDir)) { | ||
HomeDir = getenv("PWD"); | ||
} | ||
|
||
// Still doesn't exit? You get local | ||
- if (!HomeDir) { | ||
+ if (!HomeDir || !FHU::Filesystem::Exists(HomeDir)) { | ||
HomeDir = "."; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
diff --git a/Scripts/StructPackVerifier.py b/Scripts/StructPackVerifier.py | ||
index 4716e7976..47a2ef9d9 100755 | ||
--- a/Scripts/StructPackVerifier.py | ||
+++ b/Scripts/StructPackVerifier.py | ||
@@ -656,14 +656,14 @@ def main(): | ||
BaseArgs.append(sys.argv[ArgIndex]) | ||
|
||
args_x86_32 = [ | ||
- "-I/usr/i686-linux-gnu/include", | ||
+ "-I@i686Libs@/include", | ||
"-O2", | ||
"-m32", | ||
"--target=i686-linux-unknown", | ||
] | ||
|
||
args_x86_64 = [ | ||
- "-I/usr/x86_64-linux-gnu/include", | ||
+ "-I@x86_64Libs@/include", | ||
"-O2", | ||
"--target=x86_64-linux-unknown", | ||
"-D_M_X86_64", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
diff --git a/Source/Common/FEXServerClient.cpp b/Source/Common/FEXServerClient.cpp | ||
index 424ecf0a0..501bcbac1 100644 | ||
--- a/Source/Common/FEXServerClient.cpp | ||
+++ b/Source/Common/FEXServerClient.cpp | ||
@@ -209,7 +209,13 @@ int ConnectToAndStartServer(char* InterpreterPath) { | ||
return -1; | ||
} | ||
|
||
- fextl::string FEXServerPath = FHU::Filesystem::ParentPath(InterpreterPath) + "/FEXServer"; | ||
+ char RealInterpreterPathBuf[PATH_MAX]; | ||
+ char *RealInterpreterPath = realpath(InterpreterPath, RealInterpreterPathBuf); | ||
+ if (!RealInterpreterPath) { | ||
+ LogMan::Msg::EFmt("realpath failed"); | ||
+ return -1; | ||
+ } | ||
+ fextl::string FEXServerPath = FHU::Filesystem::ParentPath(RealInterpreterPath) + "/FEXServer"; | ||
// Check if a local FEXServer next to FEXInterpreter exists | ||
// If it does then it takes priority over the installed one | ||
if (!FHU::Filesystem::Exists(FEXServerPath)) { |