mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 14:51:40 +00:00
- Fixed: An unspecified save_dir will now save to the program directory on
Windows. (Other operating systems already use the user's home directory instead.) SVN r1950 (trunk)
This commit is contained in:
parent
50b0340a56
commit
0f96ec4a32
2 changed files with 8 additions and 6 deletions
|
@ -1,4 +1,7 @@
|
|||
October 29, 2009
|
||||
- Fixed: An unspecified save_dir will now save to the program directory on
|
||||
Windows. (Other operating systems already use the user's home directory
|
||||
instead.)
|
||||
- Fixed: S_EvictAllChannels() must replace the channel's start time with its
|
||||
position when evicting sounds, because restarting the sound system causes
|
||||
the DSP clock to restart at 0, so start times that were recorded before
|
||||
|
|
|
@ -1851,14 +1851,11 @@ FString G_BuildSaveName (const char *prefix, int slot)
|
|||
{
|
||||
leader = save_dir;
|
||||
}
|
||||
if (leader.IsEmpty())
|
||||
{
|
||||
#ifdef unix
|
||||
if (leader.IsEmpty())
|
||||
{
|
||||
leader = "~/" GAME_DIR;
|
||||
}
|
||||
#elif defined(__APPLE__)
|
||||
if (leader.IsEmpty())
|
||||
{
|
||||
char cpath[PATH_MAX];
|
||||
FSRef folder;
|
||||
|
||||
|
@ -1867,8 +1864,10 @@ FString G_BuildSaveName (const char *prefix, int slot)
|
|||
{
|
||||
leader << cpath << "/" GAME_DIR "/Savegames/";
|
||||
}
|
||||
}
|
||||
#else
|
||||
leader = progdir;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
size_t len = leader.Len();
|
||||
if (leader[0] != '\0' && leader[len-1] != '\\' && leader[len-1] != '/')
|
||||
|
|
Loading…
Reference in a new issue