diff options
author | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2023-09-13 19:32:48 +0200 |
---|---|---|
committer | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2023-09-13 19:36:25 +0200 |
commit | 22be3008f88ed147145c21566c6ae1ac91985683 (patch) | |
tree | f4744185f69f6dcfa5e395db68c312f0f73275f7 /src/core | |
parent | key_manager: Remove uncaught usage of stoul (diff) | |
download | yuzu-22be3008f88ed147145c21566c6ae1ac91985683.tar yuzu-22be3008f88ed147145c21566c6ae1ac91985683.tar.gz yuzu-22be3008f88ed147145c21566c6ae1ac91985683.tar.bz2 yuzu-22be3008f88ed147145c21566c6ae1ac91985683.tar.lz yuzu-22be3008f88ed147145c21566c6ae1ac91985683.tar.xz yuzu-22be3008f88ed147145c21566c6ae1ac91985683.tar.zst yuzu-22be3008f88ed147145c21566c6ae1ac91985683.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/file_sys/ips_layer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/file_sys/ips_layer.cpp b/src/core/file_sys/ips_layer.cpp index efdf18cee..7be1322cc 100644 --- a/src/core/file_sys/ips_layer.cpp +++ b/src/core/file_sys/ips_layer.cpp @@ -165,7 +165,7 @@ static std::string EscapeStringSequences(std::string in) { void IPSwitchCompiler::ParseFlag(const std::string& line) { if (StartsWith(line, "@flag offset_shift ")) { // Offset Shift Flag - offset_shift = std::stoll(line.substr(19), nullptr, 0); + offset_shift = std::strtoll(line.substr(19).c_str(), nullptr, 0); } else if (StartsWith(line, "@little-endian")) { // Set values to read as little endian is_little_endian = true; @@ -263,7 +263,7 @@ void IPSwitchCompiler::Parse() { // 11 - 8 hex digit offset + space + minimum two digit overwrite val if (patch_line.length() < 11) break; - auto offset = std::stoul(patch_line.substr(0, 8), nullptr, 16); + auto offset = std::strtoul(patch_line.substr(0, 8).c_str(), nullptr, 16); offset += static_cast<unsigned long>(offset_shift); std::vector<u8> replace; |