MP1: Use SystemStringConv for printing version string

This commit is contained in:
Luke Street 2020-04-17 14:24:06 -04:00
parent 90877603e6
commit 73b9d2024b
1 changed files with 2 additions and 1 deletions

View File

@ -796,7 +796,8 @@ void CMain::Init(const hecl::Runtime::FileStoreManager& storeMgr, hecl::CVarMana
MainLog.report(logvisor::Level::Fatal, MainLog.report(logvisor::Level::Fatal,
FMT_STRING("Attempted to initialize URDE in MP1 mode with non-MP1 data!!!!")); FMT_STRING("Attempted to initialize URDE in MP1 mode with non-MP1 data!!!!"));
} }
boo::SystemStringView versionView(GetVersionString()); hecl::SystemStringConv conv(GetVersionString());
boo::SystemStringView versionView(conv.sys_str());
MainLog.report(logvisor::Level::Info, FMT_STRING("Loading data from Metroid Prime version {} from region {}{}"), MainLog.report(logvisor::Level::Info, FMT_STRING("Loading data from Metroid Prime version {} from region {}{}"),
versionView, char(GetRegion()), IsTrilogy() ? _SYS_STR(" from trilogy") : _SYS_STR("")); versionView, char(GetRegion()), IsTrilogy() ? _SYS_STR(" from trilogy") : _SYS_STR(""));
} else { } else {