From d99d053408b442d56d19c25ecb85018eb035d3cf Mon Sep 17 00:00:00 2001 From: Adrian <78108584+AdrianCassar@users.noreply.github.com> Date: Thu, 16 Jan 2025 12:41:23 +0000 Subject: [PATCH] [Patcher] Replace stoi with from_string for parsing plugin title id --- src/xenia/patcher/plugin_loader.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xenia/patcher/plugin_loader.cc b/src/xenia/patcher/plugin_loader.cc index d95c10252..8bdd48380 100644 --- a/src/xenia/patcher/plugin_loader.cc +++ b/src/xenia/patcher/plugin_loader.cc @@ -48,8 +48,8 @@ void PluginLoader::LoadConfigs() { xe::filesystem::FilterByName(dir_files, std::regex("[A-Fa-f0-9]{8}")); for (const auto& entry : dir_files) { - const uint32_t title_id = - std::stoi(entry.name.filename().string(), nullptr, 16); + const uint32_t title_id = string_util::from_string( + entry.name.filename().string(), true); LoadTitleConfig(title_id); }