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

+4 -1
View File
@@ -1,14 +1,17 @@
// SPDX-License-Identifier: GPL-3.0-only
#pragma once
#include "formats/le.hpp"
#include "game/messages.hpp"
#include "game/schedule.hpp"
namespace bmh::test {
// Standalone engine tests explicitly install the supplied edition's scheduling
// content. CareerSession performs the same installation for normal app callers.
// content and the message texts. CareerSession performs the same installation for
// normal app callers.
inline LeImage load_executable(const std::filesystem::path& path) {
auto executable = bmh::load_le(path);
install_fixture_tables(executable);
install_message_texts(executable);
return executable;
}
}