mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-14 13:51:31 +00:00
Copy the saved wad directory to srb2path
This commit is contained in:
parent
c0cac645f8
commit
1bf0794d6a
1 changed files with 3 additions and 4 deletions
|
@ -3802,16 +3802,15 @@ boolean I_UseSavedWadDirectory(void)
|
|||
{
|
||||
boolean ok = false;
|
||||
#ifdef _WIN32
|
||||
char path[MAX_PATH];
|
||||
FILE * file = openAppDataFile("lastwaddir", "r");
|
||||
if (file != NULL)
|
||||
{
|
||||
if (fgets(path, sizeof path, file) != NULL)
|
||||
if (fgets(srb2path, sizeof srb2path, file) != NULL)
|
||||
{
|
||||
I_OutputMsg(
|
||||
"Going to the last known directory with srb2.srb: %s\n",
|
||||
path);
|
||||
ok = SetCurrentDirectoryA(path);
|
||||
srb2path);
|
||||
ok = SetCurrentDirectoryA(srb2path);
|
||||
}
|
||||
fclose(file);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue