Skip to content

Commit

Permalink
if the same dir has a bf1942.exe, use that
Browse files Browse the repository at this point in the history
  • Loading branch information
uuuzbf committed Jan 28, 2024
1 parent d2f899d commit f419f1b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions browser.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,15 @@ void initBF1942Path()
}

}
else {
h = fopen("BF1942.exe", "rb");
if(h){
fclose(h);
// bf1942.exe is right next to ours, set path to .\bf1942.exe
wcscpy(bf1942_path, L".\\BF1942.exe");
return;
}
}
// we dont have a BF1942.exe path, ask the user
OPENFILENAME of = {0};
bf1942_path[0] = 0;
Expand Down

0 comments on commit f419f1b

Please sign in to comment.