Open gphg opened 3 years ago
Tested on DOSBox and DOSBox-X.
Assuming MYGAME.EXE is on C:\SOME\PATH\TO\THEGAME\ and the current directory is on C:\HOME\.
MYGAME.EXE
C:\SOME\PATH\TO\THEGAME\
C:\HOME\
Run the game by either:
..\PATH\TO\THEGAME\MYGAME
or
Then it creates SAVE directory on C:\HOME\ instead C:\SOME\PATH\TO\THEGAME\.
SAVE
I suggest the path to be dirname from either the first or second arguments on love.argv.
love.argv
Second or first argument. Because the first one can be either the lovedos or packed game binary.
Tested on DOSBox and DOSBox-X.
Assuming
MYGAME.EXE
is onC:\SOME\PATH\TO\THEGAME\
and the current directory is onC:\HOME\
.Run the game by either:
or
Then it creates
SAVE
directory onC:\HOME\
insteadC:\SOME\PATH\TO\THEGAME\
.