SaveTool: fix some string-related issues.

This commit is contained in:
Guillaume Jacquemin 2022-12-01 23:38:54 +01:00
parent c0943bd084
commit 8177d61755
2 changed files with 2 additions and 2 deletions

View file

@ -51,7 +51,7 @@ SaveTool::SaveTool(const Arguments& arguments):
.setSize({960, 720})}
{
#ifdef SAVETOOL_DEBUG_BUILD
tweak.enable(""_s, "../../"_s);
tweak.enable("", "../../");
#endif
LOG_INFO("Configuring OpenGL renderer.");

View file

@ -48,7 +48,7 @@ void SaveTool::handleFileAction(efsw::WatchID watch_id,
return;
} // TODO: actually do something when config files will finally be handled
if(!Utility::String::endsWith(filename, _currentProfile->account() + ".sav")) {
if(!Utility::String::endsWith(filename, Utility::format("Profile{}.sav", _currentProfile->account()).data())) {
return;
}