mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-10 00:41:19 +12:00
Refactor more wstring instances to utf8-encoded string
This commit is contained in:
parent
f6c3c96d94
commit
abce406ee8
26 changed files with 82 additions and 114 deletions
|
@ -113,7 +113,7 @@ void iosuAct_loadAccounts()
|
|||
// }
|
||||
//}
|
||||
|
||||
cemuLog_log(LogType::Force, L"IOSU_ACT: using account {} in first slot", first_acc.GetMiiName());
|
||||
cemuLog_log(LogType::Force, "IOSU_ACT: using account {} in first slot", boost::nowide::narrow(first_acc.GetMiiName()));
|
||||
|
||||
_actAccountDataInitialized = true;
|
||||
}
|
||||
|
|
|
@ -615,10 +615,10 @@ void iosuCrypto_init()
|
|||
iosuCrypto_loadSSLCertificates();
|
||||
}
|
||||
|
||||
bool iosuCrypto_checkRequirementMLCFile(std::string_view mlcSubpath, std::wstring& additionalErrorInfo_filePath)
|
||||
bool iosuCrypto_checkRequirementMLCFile(std::string_view mlcSubpath, std::string& additionalErrorInfo_filePath)
|
||||
{
|
||||
const auto path = ActiveSettings::GetMlcPath(mlcSubpath);
|
||||
additionalErrorInfo_filePath = path.generic_wstring();
|
||||
additionalErrorInfo_filePath = _pathToUtf8(path);
|
||||
sint32 fileDataSize = 0;
|
||||
auto fileData = FileStream::LoadIntoMemory(path);
|
||||
if (!fileData)
|
||||
|
@ -626,7 +626,7 @@ bool iosuCrypto_checkRequirementMLCFile(std::string_view mlcSubpath, std::wstrin
|
|||
return true;
|
||||
}
|
||||
|
||||
sint32 iosuCrypt_checkRequirementsForOnlineMode(std::wstring& additionalErrorInfo)
|
||||
sint32 iosuCrypt_checkRequirementsForOnlineMode(std::string& additionalErrorInfo)
|
||||
{
|
||||
std::error_code ec;
|
||||
// check if otp.bin is present
|
||||
|
|
|
@ -74,7 +74,7 @@ enum
|
|||
IOS_CRYPTO_ONLINE_REQ_MISSING_FILE
|
||||
};
|
||||
|
||||
sint32 iosuCrypt_checkRequirementsForOnlineMode(std::wstring& additionalErrorInfo);
|
||||
sint32 iosuCrypt_checkRequirementsForOnlineMode(std::string& additionalErrorInfo);
|
||||
void iosuCrypto_readOtpData(void* output, sint32 wordIndex, sint32 size);
|
||||
|
||||
std::vector<const wchar_t*> iosuCrypt_getCertificateKeys();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue