fix(MSVC): Rearrange Headers (I keep messing that up)

This commit is contained in:
collecting
2026-02-13 14:28:33 -05:00
parent 8218f84aa0
commit a91c0eec59
2 changed files with 6 additions and 5 deletions

View File

@@ -27,7 +27,6 @@
#include <psapi.h> #include <psapi.h>
#include <windows.h> #include <windows.h>
#undef GetCurrentTime #undef GetCurrentTime
#undef ERROR #undef ERROR
#undef GetMessage #undef GetMessage

View File

@@ -1209,8 +1209,9 @@ void ExternalContentProvider::ProcessNSP(const VirtualFile& file) {
if (!content_file) { if (!content_file) {
std::string nca_id_lower = nca_id_str; std::string nca_id_lower = nca_id_str;
std::transform(nca_id_lower.begin(), nca_id_lower.end(), nca_id_lower.begin(), std::transform(
::tolower); nca_id_lower.begin(), nca_id_lower.end(), nca_id_lower.begin(),
[](unsigned char c) { return static_cast<char>(std::tolower(c)); });
content_file = nsp.GetFile(fmt::format("{}.nca", nca_id_lower)); content_file = nsp.GetFile(fmt::format("{}.nca", nca_id_lower));
if (!content_file) if (!content_file)
content_file = nsp.GetFile(nca_id_lower); content_file = nsp.GetFile(nca_id_lower);
@@ -1239,8 +1240,9 @@ void ExternalContentProvider::ProcessNSP(const VirtualFile& file) {
if (!content_file) { if (!content_file) {
std::string nca_id_lower = nca_id_str; std::string nca_id_lower = nca_id_str;
std::transform(nca_id_lower.begin(), nca_id_lower.end(), nca_id_lower.begin(), std::transform(
::tolower); nca_id_lower.begin(), nca_id_lower.end(), nca_id_lower.begin(),
[](unsigned char c) { return static_cast<char>(std::tolower(c)); });
content_file = nsp.GetFile(fmt::format("{}.nca", nca_id_lower)); content_file = nsp.GetFile(fmt::format("{}.nca", nca_id_lower));
if (!content_file) if (!content_file)
content_file = nsp.GetFile(nca_id_lower); content_file = nsp.GetFile(nca_id_lower);