[game] subtitles support (tools + goal + text file). (#1174)

* add subtitles support (tools + goal + text file).

* add to build system proper

* better handling of line speakers

* billy test subtitles

* adjust timings

* better handling of subtitle timing + citadel subs

* press square to toggle cutscene subtitles

* improve DirectRenderer performance

* clang

* dont error out if there's no user files

* make system supports multiple inputs for subtitles

* clang

* oh no typo!!

* avoid future issues

* fix warp gate crash

* remove no longer necessary code in DirectRenderer

* remove temp prints

* delete triplicate code

* i found a better way

* fix make issues with subtitles

* force avx compilation
This commit is contained in:
ManDude
2022-02-19 18:10:10 +00:00
committed by GitHub
parent f91d1f4056
commit af447aeab7
46 changed files with 1160 additions and 148 deletions
+1 -2
View File
@@ -56,10 +56,9 @@ void DataObjectGenerator::link_word_to_word(int source, int target, int offset)
}
void DataObjectGenerator::link_word_to_byte(int source_word, int target_byte) {
PointerLinkRecord rec;
auto& rec = m_ptr_links.emplace_back();
rec.source_word = source_word;
rec.target_byte = target_byte;
m_ptr_links.push_back(rec);
}
int DataObjectGenerator::add_ref_to_string_in_pool(const std::string& str) {