Fixed undefined reference to unimplemented function

This commit is contained in:
Dimitris Panokostas 2020-06-29 22:17:56 +02:00
parent dbb252a725
commit cab02e2670

View file

@ -6512,18 +6512,18 @@ end:
return v; return v;
} }
void cfgfile_backup(const TCHAR* path) //void cfgfile_backup(const TCHAR* path)
{ //{
TCHAR dpath[MAX_DPATH]; // TCHAR dpath[MAX_DPATH];
//
get_configuration_path(dpath, sizeof(dpath) / sizeof(TCHAR)); // get_configuration_path(dpath, sizeof(dpath) / sizeof(TCHAR));
_tcscat(dpath, _T("configuration.backup")); // _tcscat(dpath, _T("configuration.backup"));
bool hidden = my_isfilehidden(dpath); // bool hidden = my_isfilehidden(dpath);
my_unlink(dpath); // my_unlink(dpath);
my_rename(path, dpath); // my_rename(path, dpath);
if (hidden) // if (hidden)
my_setfilehidden(dpath, hidden); // my_setfilehidden(dpath, hidden);
} //}
int cfgfile_save(struct uae_prefs* p, const TCHAR* filename, int type) int cfgfile_save(struct uae_prefs* p, const TCHAR* filename, int type)
{ {