Backport original message installation for Classic standalone tools (by Codex)

This commit is contained in:
Codex committed 2026-10-30 14:22:18 +01:00
1 parent 81fc772a15
commit c293a35f56
4 files changed
+21 -7

No files matched your search

+6
View File
@@ -16,6 +16,7 @@
#include <string>
#include <vector>
#include "formats/le.hpp"
#include "game/state.hpp"
namespace bmh {
@@ -59,6 +60,11 @@ inline std::string kIndoorInvitationText;
inline std::string kChampionshipBonusText;
inline std::string kFriendlyPayerPrefixText;
// Installs the six texts above from the game image (the English game uses its own wording).
// Both career sessions call it at start; standalone engine tools (week_check, the season sims)
// must call it too, or these messages lose their text (#14: the indoor entry bonus mail).
void install_message_texts(const LeImage& exe);
// FormatNumber(buf, value, 0x101, ""): an amount of money as the messages show it: the
// value converted with CurrencyMultiplier / CurrencyDivisor, digits grouped by dots, then " EU".
std::string format_amount(const GameState& g, int32_t value);