Set the path to write crash recovery files to correctly

This commit is contained in:
Thomas Goyne 2013-12-23 10:00:24 -08:00
parent 1601c9c68d
commit 40da549a56
1 changed files with 2 additions and 1 deletions

View File

@ -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