Files
jak-project/decompiler/data/game_text.h
T
ManDude c245f37feb [decomp] joint and related (#1003)
* update jak 2 config and hack to make game text dumpable

* update stuff

* update src

* do `cspace<-parented-transformq-joint!`

* progress.... kind of...

* more drawable stuff

* clagng

* bones begin

* more bones

* even more bones

* everything builds

* touches

* errors

* ?

* fix `quicksandlurker`

* updates

* update refs

* more fixes

* update refs
2021-12-26 11:43:16 -05:00

21 lines
553 B
C++

#pragma once
#include <string>
#include <unordered_map>
namespace decompiler {
struct ObjectFileData;
struct GameTextResult {
int total_text = 0;
int language = -1;
std::unordered_map<int, std::string> text;
int total_chars = 0;
};
enum class GameTextVersion { JAK1_V1 = 10, JAK1_V2 = 11, JAK2 = 20, JAK3 = 30, JAKX = 40 };
GameTextResult process_game_text(ObjectFileData& data, GameTextVersion version);
std::string write_game_text(
const std::unordered_map<int, std::unordered_map<int, std::string>>& data);
} // namespace decompiler