forked from mia/Aegisub
Fix path generation for saving screenshots
This commit is contained in:
parent
d34f88080c
commit
4a4583a77d
1 changed files with 1 additions and 1 deletions
|
@ -490,7 +490,7 @@ static void save_snapshot(agi::Context *c, bool raw) {
|
||||||
int session_shot_count = 1;
|
int session_shot_count = 1;
|
||||||
std::string path;
|
std::string path;
|
||||||
do {
|
do {
|
||||||
path = str(boost::format("%s_%03d_%d.png") % basepath % session_shot_count++ % c->videoController->GetFrameN());
|
path = str(boost::format("%s_%03d_%d.png") % basepath.string() % session_shot_count++ % c->videoController->GetFrameN());
|
||||||
} while (agi::fs::FileExists(path));
|
} while (agi::fs::FileExists(path));
|
||||||
|
|
||||||
c->videoController->GetFrame(c->videoController->GetFrameN(), raw)->GetImage().SaveFile(to_wx(path), wxBITMAP_TYPE_PNG);
|
c->videoController->GetFrame(c->videoController->GetFrameN(), raw)->GetImage().SaveFile(to_wx(path), wxBITMAP_TYPE_PNG);
|
||||||
|
|
Loading…
Reference in a new issue