Skip to content

Commit 1feed38

Browse files
main: change default folders
Try to chdir to `/ROMs/gba` first, if not found switch to root.
1 parent 2deca6f commit 1feed38

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

source/main.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,12 @@ int main(int argc, char **argv) {
7070

7171
vector<string> extensionList = argsGetExtensionList();
7272

73-
chdir("/nds");
73+
if(!access("/ROMs/gba", F_OK)) {
74+
chdir("/ROMs/gba");
75+
}
76+
else {
77+
chdir("/");
78+
}
7479

7580
while(1) {
7681

0 commit comments

Comments
 (0)