mirror of https://github.com/odrling/Aegisub
Set the path to write crash recovery files to correctly
This commit is contained in:
parent
7d80e9ab45
commit
4afda8cbdb
|
@ -350,7 +350,8 @@ static void UnhandledExeception(bool stackWalk, agi::Context *c) {
|
|||
agi::fs::CreateDirectory(path);
|
||||
|
||||
auto filename = c->subsController->Filename().stem();
|
||||
path /= str(boost::format("%s.%s.ass") % filename % agi::util::strftime("%Y-%m-%d-%H-%M-%S"));
|
||||
filename.replace_extension(str(boost::format("%s.ass") % agi::util::strftime("%Y-%m-%d-%H-%M-%S")));
|
||||
path /= filename;
|
||||
c->subsController->Save(path);
|
||||
|
||||
#if wxUSE_STACKWALKER == 1
|
||||
|
|
Loading…
Reference in New Issue