mirror of
https://github.com/ZDoom/Raze.git
synced 2025-06-04 03:00:58 +00:00
- fixed progdir setup.
This commit is contained in:
parent
d4fc13fba5
commit
39e32d560c
2 changed files with 3 additions and 1 deletions
|
@ -131,6 +131,7 @@ int32_t win_buildargs(char **argvbuf)
|
|||
|
||||
// Figure out what directory the program resides in.
|
||||
progdir = argvbuf[0];
|
||||
progdir.Substitute("\\", "/");
|
||||
auto lastsep = progdir.LastIndexOf('/');
|
||||
if (lastsep != -1)
|
||||
progdir.Truncate(lastsep + 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue