mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2024-11-10 21:55:11 +01:00
Fix stat check, reorder paths and add . (CWD)
This commit is contained in:
parent
ffe18cf372
commit
318a5fcd0d
@ -163,7 +163,7 @@ const char *try_path(const char *path, const char *file)
|
|||||||
const char *out = NULL;
|
const char *out = NULL;
|
||||||
|
|
||||||
sprintf(what, "%s/%s", path, file);
|
sprintf(what, "%s/%s", path, file);
|
||||||
if (stat(what, &st) < 0)
|
if (stat(what, &st) == 0)
|
||||||
out = what;
|
out = what;
|
||||||
|
|
||||||
return out;
|
return out;
|
||||||
@ -174,9 +174,10 @@ void Frodo::LoadFrodorc()
|
|||||||
const char *paths[] = {
|
const char *paths[] = {
|
||||||
NULL, // Filled in below
|
NULL, // Filled in below
|
||||||
NULL, // also filled in below
|
NULL, // also filled in below
|
||||||
|
".",
|
||||||
|
"/apps/frodo", // Wii
|
||||||
"frodo",
|
"frodo",
|
||||||
"/usr/share/frodo/",
|
"/usr/share/frodo",
|
||||||
"/apps/frodo",
|
|
||||||
NULL,
|
NULL,
|
||||||
};
|
};
|
||||||
const char *prefs_path = NULL;
|
const char *prefs_path = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user