jak-project/decompiler/data/game_text.h
water111 953c1512db
Process Text Files in Decompiler (#122)
* begin support for v2

* export game text

* generate text files

* working text load

* fix windows

* add test and clean up game tests a bit

* load the right file

* add separate program to launch the data compiler

* add offline test script
2020-11-19 21:22:16 -05:00

16 lines
383 B
C++

#pragma once
#include <string>
#include <unordered_map>
class ObjectFileData;
struct GameTextResult {
int total_text = 0;
int language = -1;
std::unordered_map<int, std::string> text;
int total_chars = 0;
};
GameTextResult process_game_text(ObjectFileData& data);
std::string write_game_text(
const std::unordered_map<int, std::unordered_map<int, std::string>>& data);