mirror of
https://git.eden-emu.dev/archive/citron
synced 2026-03-22 17:46:08 -04:00
fix(MSVC): Rearrange Headers (I keep messing that up)
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user