mirror of
https://github.com/ondra-novak/gates_of_skeldal.git
synced 2025-07-20 05:04:53 -04:00
FIx detection of drive letter in windows path, use utf-8 for path #2
This commit is contained in:
parent
3152a44d35
commit
54d7d22734
3 changed files with 40 additions and 18 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue