[Patcher] Replace stoi with from_string for parsing plugin title id

This commit is contained in:
Adrian 2025-01-16 12:41:23 +00:00 committed by Radosław Gliński
parent 1688ea5d69
commit d99d053408
1 changed files with 2 additions and 2 deletions

View File

@ -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<uint32_t>(
entry.name.filename().string(), true);
LoadTitleConfig(title_id);
}