Make sure the check of the existance of the name appends the .gz when needed.
This commit is contained in:
parent
b3dae550b0
commit
eba18297df
1 changed files with 4 additions and 0 deletions
|
@ -726,6 +726,10 @@ bool save_game_exists(const std::string& name)
|
|||
std::string fname = name;
|
||||
replace_space2underbar(fname);
|
||||
|
||||
if(preferences::compress_saves()) {
|
||||
fname += ".gz";
|
||||
}
|
||||
|
||||
return file_exists(get_saves_dir() + "/" + fname);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue