mirror of
https://github.com/open-goal/jak-project.git
synced 2024-10-20 11:26:18 -04:00
953c1512db
* 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
16 lines
383 B
C++
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); |