2020-11-19 21:22:16 -05:00
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
|
|
#include <unordered_map>
|
2022-06-22 23:37:46 -04:00
|
|
|
|
2022-02-07 19:15:37 -05:00
|
|
|
#include "common/util/FontUtils.h"
|
2020-11-19 21:22:16 -05:00
|
|
|
|
2021-01-06 20:04:15 -05:00
|
|
|
namespace decompiler {
|
2020-11-24 20:48:38 -05:00
|
|
|
struct ObjectFileData;
|
2020-11-19 21:22:16 -05:00
|
|
|
|
|
|
|
struct GameTextResult {
|
|
|
|
int total_text = 0;
|
|
|
|
int language = -1;
|
|
|
|
std::unordered_map<int, std::string> text;
|
|
|
|
int total_chars = 0;
|
|
|
|
};
|
|
|
|
|
2021-12-26 11:43:16 -05:00
|
|
|
GameTextResult process_game_text(ObjectFileData& data, GameTextVersion version);
|
2020-11-19 21:22:16 -05:00
|
|
|
std::string write_game_text(
|
2022-06-22 00:16:34 -04:00
|
|
|
GameTextVersion version,
|
2021-01-06 20:04:15 -05:00
|
|
|
const std::unordered_map<int, std::unordered_map<int, std::string>>& data);
|
2021-12-26 11:43:16 -05:00
|
|
|
} // namespace decompiler
|