Filename saves allow illegal characters resulting in game crash.
This commit is contained in:
Thomas Baumhauer 2008-05-22 09:39:37 +00:00
parent 2b3c59b5d3
commit e4fcaf9638

View file

@ -222,7 +222,11 @@ void show_objectives(game_display& disp, const config& level, const std::string&
bool is_illegal_file_char(char c)
{
return c == '/' || c == '\\' || c == ':';
return c == '/' || c == '\\' || c == ':'
#ifdef WIN32
|| c == '?' || c == '|' || c == '<' || c == '>' || c == '*'
#endif
;
}
int get_save_name(display & disp,const std::string& message, const std::string& txt_label,