Huge rewrite of the file loading/saving system. Normally safer in case of problem. Added incremental safety backups at regular intervals in the 'application data' directory (Windows) or $HOME/.grafx2 (unix). Keeps 8 files, saves every 30-60s and/or every 10-30 clicks.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1245 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
@@ -741,10 +741,10 @@ void Print_filename(void)
|
||||
// Determine maximum size, in characters
|
||||
max_size = 12 + (Screen_width / Menu_factor_X - 320) / 8;
|
||||
|
||||
string_size = strlen(Main_filename);
|
||||
string_size = strlen(Main_backups->Pages->Filename);
|
||||
|
||||
// Partial copy of the name
|
||||
strncpy(display_string, Main_filename, max_size);
|
||||
strncpy(display_string, Main_backups->Pages->Filename, max_size);
|
||||
display_string[max_size]='\0';
|
||||
|
||||
if (string_size > max_size)
|
||||
|
||||
Reference in New Issue
Block a user