Skip to content

Commit

Permalink
Fix problem when starting from different folder than the executable
Browse files Browse the repository at this point in the history
  • Loading branch information
jval1972 committed Apr 30, 2022
1 parent a68f83f commit 0972c83
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Base/m_argv.pas
Expand Up @@ -238,6 +238,9 @@ procedure M_InitArgv;
myargc := i + 1;
exit;
end;
if myargv[i] <> '' then
if fexists(myargv[i]) then
myargv[i] := fexpand(myargv[i]);
end;

defargv := DEFARGVFILENAME;
Expand All @@ -257,6 +260,7 @@ procedure M_InitArgv;
cmdln := cmdln + ' ' + myargv[i];
printf('%s'#13#10, [cmdln]);

ChDir(fpath(myargv[0]));
end;

//==============================================================================
Expand Down
2 changes: 1 addition & 1 deletion Doom32.dof
Expand Up @@ -100,7 +100,7 @@ Conditionals=DOOM;OPTIMIZE_FOR_SPEED;
DebugSourceDirs=.\Base\;F:\DelphiDoom_Release\DelphiDoom_Src\Src\Doom\
UsePackages=0
[Parameters]
RunParams=rDDVOX-0.41.7.zip RDVXTEST41.zip
RunParams=RDDVOX-0.41.7_b.zip ..\doom\RDVXTEST41.zip
HostApplication=
Launcher=
UseLauncher=0
Expand Down
2 changes: 2 additions & 0 deletions Doom_what's new.txt
@@ -1,3 +1,5 @@
Fix problem when starting from different folder than the executable. (https://www.doomworld.com/forum/topic/92113-delphidoom-207734-udmf-umapinfo-mbf21-apr-28-2022/?do=findComment&comment=2487932)

Version 2.0.7 build 734 - (20220428)
-----------------------
Fixed problem in wide status bar when changing screen resolution (software rendering).
Expand Down
2 changes: 2 additions & 0 deletions Heretic_what's new.txt
@@ -1,3 +1,5 @@
Fix problem when starting from different folder than the executable. (https://www.doomworld.com/forum/topic/92113-delphidoom-207734-udmf-umapinfo-mbf21-apr-28-2022/?do=findComment&comment=2487932)

Version 2.0.7 build 734 - (20220428)
-----------------------
Corrections to external textures caching in software rendering mode.
Expand Down
2 changes: 2 additions & 0 deletions Hexen_what's new.txt
@@ -1,3 +1,5 @@
Fix problem when starting from different folder than the executable. (https://www.doomworld.com/forum/topic/92113-delphidoom-207734-udmf-umapinfo-mbf21-apr-28-2022/?do=findComment&comment=2487932)

Version 2.0.7 build 734 - (20220428)
-----------------------
Corrections to external textures caching in software rendering mode.
Expand Down
2 changes: 2 additions & 0 deletions Strife_what's new.txt
@@ -1,3 +1,5 @@
Fix problem when starting from different folder than the executable. (https://www.doomworld.com/forum/topic/92113-delphidoom-207734-udmf-umapinfo-mbf21-apr-28-2022/?do=findComment&comment=2487932)

Version 2.0.7 build 734 - (20220428)
-----------------------
Corrections to external textures caching in software rendering mode.
Expand Down

0 comments on commit 0972c83

Please sign in to comment.