Decode the autosave path when cleaning up old files

This commit is contained in:
Thomas Goyne 2012-10-27 19:26:45 -07:00
parent a266d32ce4
commit f35e10c76a
1 changed files with 1 additions and 1 deletions

View File

@ -282,7 +282,7 @@ bool AegisubApp::OnInit() {
#endif #endif
StartupLog("Clean old autosave files"); StartupLog("Clean old autosave files");
wxString autosave_path = lagi_wxString(OPT_GET("Path/Auto/Save")->GetString()); wxString autosave_path = StandardPaths::DecodePath(lagi_wxString(OPT_GET("Path/Auto/Save")->GetString()));
CleanCache(autosave_path, "*.AUTOSAVE.ass", 100, 1000); CleanCache(autosave_path, "*.AUTOSAVE.ass", 100, 1000);
StartupLog("Initialization complete"); StartupLog("Initialization complete");