diff options
Diffstat (limited to 'GUI')
| -rw-r--r-- | GUI/GUI/GUI/PythonWrapper.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/GUI/GUI/GUI/PythonWrapper.cpp b/GUI/GUI/GUI/PythonWrapper.cpp index 167fe36..22e9d65 100644 --- a/GUI/GUI/GUI/PythonWrapper.cpp +++ b/GUI/GUI/GUI/PythonWrapper.cpp @@ -688,6 +688,12 @@ bool PythonWrapper::GenerateAnimator( Log(out, "Error removing unicode texture: {} ({})\n", err.message(), err.value()); return false; } + std::filesystem::remove(tastt_fonts_path / ("Bitmaps/font-" + std::to_string(i) + ".png.meta"), err); + if (err.value()) { + Log(out, "failed!\n"); + Log(out, "Error removing unicode texture: {} ({})\n", err.message(), err.value()); + return false; + } } std::filesystem::remove(tastt_fonts_path / "Bitmaps/emotes.png", err); if (err.value()) { @@ -698,6 +704,21 @@ bool PythonWrapper::GenerateAnimator( Log(out, "success!\n"); } + else { + std::error_code err; + std::filesystem::remove(tastt_fonts_path / ("Bitmaps/font-ascii.png"), err); + if (err.value()) { + Log(out, "failed!\n"); + Log(out, "Error removing unicode texture: {} ({})\n", err.message(), err.value()); + return false; + } + std::filesystem::remove(tastt_fonts_path / ("Bitmaps/font-ascii.png.meta"), err); + if (err.value()) { + Log(out, "failed!\n"); + Log(out, "Error removing unicode texture: {} ({})\n", err.message(), err.value()); + return false; + } + } { Log(out, "Generating guid.map... "); if (!InvokeWithArgs({ libunity_path, "guid_map", |
