mirror of
https://github.com/open-goal/jak-project.git
synced 2024-10-20 21:27:52 -04:00
b21f0d3397
* decompiler: support adding new strings to the game_text.txt file * gsrc: expand the pckernel type and functions to work better with the menu * gsrc: add new text-ids * gsrc: add new macros to help with menu code * gsrc: make a new type to generalize their list menu options * gsrc: add new menu options and enums * gsrc: cleanup and refactor the list menu option drawing code this allows us to easily add a new list menu option...well as easy as the rest is atleast (setting up static lists properly, etc) * gsrc: add and cleanup handling of new menu options * scripts: add checks with nice error messages for user facing taskfile recipes * lint: formatting * address simple feedback * gsrc: move modified files to `pc/` folder * gsrc: revert changes to originally decompiled files * gsrc: move modified and new files to `goal_src/pc` folder * gsrc: update paths in `all_files.gc`
22 lines
533 B
C++
22 lines
533 B
C++
#pragma once
|
|
#include <string>
|
|
#include <unordered_map>
|
|
#include "common/util/FontUtils.h"
|
|
|
|
namespace decompiler {
|
|
struct ObjectFileData;
|
|
struct Config;
|
|
|
|
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, GameTextVersion version);
|
|
std::string write_game_text(
|
|
const Config& cfg,
|
|
const std::unordered_map<int, std::unordered_map<int, std::string>>& data);
|
|
} // namespace decompiler
|