subtitle editor fixes + other smaller fixes (#1572)

* [extractor] validate files when extracted as folder

* jp text fixes

* move game text version to the text file and fix subtitle editor escape chars

* make bad subtitles not crash the game

* fix texscroll in lag

* fix mood, fix decomp of other versions, fix text decomp

* clang

* fix tests

* oops dammit

* new fixes

* shut up codacy

* fix nonexistant subtitles crashing the game

* fix text hacks and extractor re-use on folders
This commit is contained in:
ManDude
2022-06-30 00:43:23 +01:00
committed by GitHub
parent 870be7151a
commit 2649fd17ec
30 changed files with 439 additions and 187 deletions
+2
View File
@@ -7,6 +7,7 @@
#include "common/goos/Reader.h"
#include "common/util/BitUtils.h"
#include "common/util/FontUtils.h"
#include "decompiler/ObjectFile/ObjectFileDB.h"
@@ -187,6 +188,7 @@ std::string write_game_text(
result += fmt::format(" {}", lang);
}
result += ")\n";
result += fmt::format("(text-version {})\n\n", get_text_version_name(version));
for (auto& x : text_by_id) {
result += fmt::format("(#x{:04x}\n ", x.first);
for (auto& y : x.second) {