FIx detection of drive letter in windows path, use utf-8 for path #2

This commit is contained in:
Ondrej Novak 2025-04-30 23:00:46 +02:00
parent 3152a44d35
commit 54d7d22734
3 changed files with 40 additions and 18 deletions

View file

@ -776,11 +776,12 @@ int save_game(long game_time,char *gamename, char is_autosave)
temp_storage_store("playtime",&new_play_time, sizeof(new_play_time));
svf=fopen_icase(sn,"wb");
if (svf==NULL)
{
char buff[256];
sprintf(buff,"Nelze ulozit pozici na cestu: %s", sn);
display_error(buff);
if (svf==NULL){
if (!is_autosave) {
char buff[256];
sprintf(buff,"Failed to create savegame at path %s", sn);
message(1,0,0,"",buff,texty[80]);
}
}
else
{