mirror of
https://github.com/azahar-emu/azahar
synced 2025-11-07 07:29:58 +01:00
Fixed Linux compile failures
This commit is contained in:
parent
5a0ad29bab
commit
f3d0373afb
@ -2315,10 +2315,10 @@ void Module::Interface::GetNumImportTitleContextsImpl(IPC::RequestParser& rp,
|
|||||||
|
|
||||||
u32 count = 0;
|
u32 count = 0;
|
||||||
for (auto it = am->import_title_contexts.begin(); it != am->import_title_contexts.end(); it++) {
|
for (auto it = am->import_title_contexts.begin(); it != am->import_title_contexts.end(); it++) {
|
||||||
if (include_installing &&
|
if ((include_installing &&
|
||||||
(it->second.state == ImportTitleContextState::WAITING_FOR_IMPORT ||
|
(it->second.state == ImportTitleContextState::WAITING_FOR_IMPORT ||
|
||||||
it->second.state == ImportTitleContextState::RESUMABLE) ||
|
it->second.state == ImportTitleContextState::RESUMABLE)) ||
|
||||||
include_finalizing && it->second.state == ImportTitleContextState::WAITING_FOR_COMMIT) {
|
(include_finalizing && it->second.state == ImportTitleContextState::WAITING_FOR_COMMIT)) {
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2335,11 +2335,11 @@ void Module::Interface::GetImportTitleContextListImpl(IPC::RequestParser& rp,
|
|||||||
u32 written = 0;
|
u32 written = 0;
|
||||||
|
|
||||||
for (auto& key_value : am->import_content_contexts) {
|
for (auto& key_value : am->import_content_contexts) {
|
||||||
if (include_installing &&
|
if ((include_installing &&
|
||||||
(key_value.second.state == ImportTitleContextState::WAITING_FOR_IMPORT ||
|
(key_value.second.state == ImportTitleContextState::WAITING_FOR_IMPORT ||
|
||||||
key_value.second.state == ImportTitleContextState::RESUMABLE) ||
|
key_value.second.state == ImportTitleContextState::RESUMABLE)) ||
|
||||||
include_finalizing &&
|
(include_finalizing &&
|
||||||
key_value.second.state == ImportTitleContextState::WAITING_FOR_COMMIT) {
|
key_value.second.state == ImportTitleContextState::WAITING_FOR_COMMIT)) {
|
||||||
|
|
||||||
out_buf.Write(&key_value.first, written * sizeof(u64), sizeof(u64));
|
out_buf.Write(&key_value.first, written * sizeof(u64), sizeof(u64));
|
||||||
written++;
|
written++;
|
||||||
|
|||||||
@ -1357,6 +1357,7 @@ void FS_USER::SetUnknown0x80Data(Kernel::HLERequestContext& ctx) {
|
|||||||
IPC::RequestParser rp(ctx);
|
IPC::RequestParser rp(ctx);
|
||||||
u64 title_id{rp.Pop<u64>()};
|
u64 title_id{rp.Pop<u64>()};
|
||||||
|
|
||||||
|
[[maybe_unused]]
|
||||||
std::array<u8, 0x80> unknown_data = rp.PopRaw<std::array<u8, 0x80>>();
|
std::array<u8, 0x80> unknown_data = rp.PopRaw<std::array<u8, 0x80>>();
|
||||||
|
|
||||||
IPC::RequestBuilder rb{rp.MakeBuilder(1, 0)};
|
IPC::RequestBuilder rb{rp.MakeBuilder(1, 0)};
|
||||||
|
|||||||
@ -7,6 +7,7 @@
|
|||||||
#include <boost/iostreams/stream.hpp>
|
#include <boost/iostreams/stream.hpp>
|
||||||
#include "common/common_paths.h"
|
#include "common/common_paths.h"
|
||||||
#include "common/file_util.h"
|
#include "common/file_util.h"
|
||||||
|
#include "common/string_util.h"
|
||||||
#include "core/hw/aes/key.h"
|
#include "core/hw/aes/key.h"
|
||||||
#include "core/hw/ecc.h"
|
#include "core/hw/ecc.h"
|
||||||
#include "cryptopp/osrng.h"
|
#include "cryptopp/osrng.h"
|
||||||
|
|||||||
@ -12,6 +12,7 @@
|
|||||||
#include <fmt/format.h>
|
#include <fmt/format.h>
|
||||||
#include "common/common_paths.h"
|
#include "common/common_paths.h"
|
||||||
#include "common/file_util.h"
|
#include "common/file_util.h"
|
||||||
|
#include "common/string_util.h"
|
||||||
#include "common/logging/log.h"
|
#include "common/logging/log.h"
|
||||||
#include "core/hw/aes/key.h"
|
#include "core/hw/aes/key.h"
|
||||||
#include "core/hw/rsa/rsa.h"
|
#include "core/hw/rsa/rsa.h"
|
||||||
|
|||||||
@ -201,7 +201,7 @@ LocalFriendCodeSeedB& GetLocalFriendCodeSeedB() {
|
|||||||
return local_friend_code_seed_b;
|
return local_friend_code_seed_b;
|
||||||
}
|
}
|
||||||
|
|
||||||
FileSys::Certificate& HW::UniqueData::GetCTCert() {
|
FileSys::Certificate& GetCTCert() {
|
||||||
LoadOTP();
|
LoadOTP();
|
||||||
|
|
||||||
return ct_cert;
|
return ct_cert;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user