mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Buildfix
This commit is contained in:
1 parent
dccb7bafdd
commit
bc3f6ee57a
2 files changed
+5
-2
No files matched your search
+2
-1
@@ -1,7 +1,8 @@
|
||||
set(SRCS
|
||||
LAMEString.cpp
|
||||
colorutil.cpp
|
||||
error_context.cpp)
|
||||
error_context.cpp
|
||||
display.cpp)
|
||||
|
||||
set(SRCS ${SRCS})
|
||||
|
||||
|
||||
+3
-1
@@ -6,6 +6,8 @@
|
||||
#include <shlobj.h>
|
||||
#include <shlwapi.h>
|
||||
#include <ShellAPI.h>
|
||||
#else
|
||||
#include <pwd.h>
|
||||
#endif
|
||||
|
||||
#include <string>
|
||||
@@ -169,7 +171,7 @@ int main(int argc, char *argv[]) {
|
||||
#else
|
||||
// Mac - what about linux? Also, ugly hardcoding.
|
||||
const char *path = getenv("HOME");
|
||||
if (!homeDir) {
|
||||
if (!path) {
|
||||
struct passwd* pwd = getpwuid(getuid());
|
||||
if (pwd)
|
||||
path = pwd->pw_dir;
|
||||
|
||||
Reference in new issue
Block a user