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

View file

@ -282,7 +282,7 @@ bool AegisubApp::OnInit() {
#endif
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);
StartupLog("Initialization complete");