early-access version 1564
This commit is contained in:
parent
aee0610b57
commit
1d853e9548
@ -1,7 +1,7 @@
|
|||||||
yuzu emulator early access
|
yuzu emulator early access
|
||||||
=============
|
=============
|
||||||
|
|
||||||
This is the source code for early-access 1562.
|
This is the source code for early-access 1564.
|
||||||
|
|
||||||
## Legal Notice
|
## Legal Notice
|
||||||
|
|
||||||
|
@ -97,6 +97,7 @@ add_custom_command(OUTPUT scm_rev.cpp
|
|||||||
add_library(common STATIC
|
add_library(common STATIC
|
||||||
algorithm.h
|
algorithm.h
|
||||||
alignment.h
|
alignment.h
|
||||||
|
assert.cpp
|
||||||
assert.h
|
assert.h
|
||||||
atomic_ops.h
|
atomic_ops.h
|
||||||
detached_tasks.cpp
|
detached_tasks.cpp
|
||||||
|
7
src/common/assert.cpp
Executable file
7
src/common/assert.cpp
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
// Copyright 2021 yuzu Emulator Project
|
||||||
|
// Licensed under GPLv2 or any later version
|
||||||
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
|
#include "common/assert.h"
|
||||||
|
|
||||||
|
void assert_handle_failure() {}
|
@ -4,10 +4,13 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <cstdlib>
|
|
||||||
#include "common/common_funcs.h"
|
|
||||||
#include "common/logging/log.h"
|
#include "common/logging/log.h"
|
||||||
|
|
||||||
|
// Sometimes we want to try to continue even after hitting an assert.
|
||||||
|
// However touching this file yields a global recompilation as this header is included almost
|
||||||
|
// everywhere. So let's just move the handling of the failed assert to a single cpp file.
|
||||||
|
void assert_handle_failure();
|
||||||
|
|
||||||
// For asserts we'd like to keep all the junk executed when an assert happens away from the
|
// For asserts we'd like to keep all the junk executed when an assert happens away from the
|
||||||
// important code in the function. One way of doing this is to put all the relevant code inside a
|
// important code in the function. One way of doing this is to put all the relevant code inside a
|
||||||
// lambda and force the compiler to not inline it. Unfortunately, MSVC seems to have no syntax to
|
// lambda and force the compiler to not inline it. Unfortunately, MSVC seems to have no syntax to
|
||||||
@ -17,31 +20,33 @@
|
|||||||
// enough for our purposes.
|
// enough for our purposes.
|
||||||
template <typename Fn>
|
template <typename Fn>
|
||||||
#if defined(_MSC_VER)
|
#if defined(_MSC_VER)
|
||||||
[[msvc::noinline, noreturn]]
|
[[msvc::noinline]]
|
||||||
#elif defined(__GNUC__)
|
#elif defined(__GNUC__)
|
||||||
[[gnu::cold, gnu::noinline, noreturn]]
|
[[gnu::cold, gnu::noinline]]
|
||||||
#endif
|
#endif
|
||||||
static void
|
static void
|
||||||
assert_noinline_call(const Fn& fn) {
|
assert_noinline_call(const Fn& fn) {
|
||||||
fn();
|
fn();
|
||||||
Crash();
|
assert_handle_failure();
|
||||||
exit(1); // Keeps GCC's mouth shut about this actually returning
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#define ASSERT(_a_) \
|
#define ASSERT(_a_) \
|
||||||
|
do \
|
||||||
if (!(_a_)) { \
|
if (!(_a_)) { \
|
||||||
LOG_CRITICAL(Debug, "Assertion Failed!"); \
|
assert_noinline_call([] { LOG_CRITICAL(Debug, "Assertion Failed!"); }); \
|
||||||
}
|
} \
|
||||||
|
while (0)
|
||||||
|
|
||||||
#define ASSERT_MSG(_a_, ...) \
|
#define ASSERT_MSG(_a_, ...) \
|
||||||
|
do \
|
||||||
if (!(_a_)) { \
|
if (!(_a_)) { \
|
||||||
LOG_CRITICAL(Debug, "Assertion Failed! " __VA_ARGS__); \
|
assert_noinline_call([&] { LOG_CRITICAL(Debug, "Assertion Failed!\n" __VA_ARGS__); }); \
|
||||||
}
|
} \
|
||||||
|
while (0)
|
||||||
|
|
||||||
#define UNREACHABLE() \
|
#define UNREACHABLE() assert_noinline_call([] { LOG_CRITICAL(Debug, "Unreachable code!"); })
|
||||||
{ LOG_CRITICAL(Debug, "Unreachable code!"); }
|
|
||||||
#define UNREACHABLE_MSG(...) \
|
#define UNREACHABLE_MSG(...) \
|
||||||
{ LOG_CRITICAL(Debug, "Unreachable code!\n" __VA_ARGS__); }
|
assert_noinline_call([&] { LOG_CRITICAL(Debug, "Unreachable code!\n" __VA_ARGS__); })
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
#define DEBUG_ASSERT(_a_) ASSERT(_a_)
|
#define DEBUG_ASSERT(_a_) ASSERT(_a_)
|
||||||
|
@ -610,12 +610,17 @@ public:
|
|||||||
explicit DAUTH_O(Core::System& system_, Common::UUID) : ServiceFramework{system_, "dauth:o"} {
|
explicit DAUTH_O(Core::System& system_, Common::UUID) : ServiceFramework{system_, "dauth:o"} {
|
||||||
// clang-format off
|
// clang-format off
|
||||||
static const FunctionInfo functions[] = {
|
static const FunctionInfo functions[] = {
|
||||||
{0, nullptr, "EnsureAuthenticationTokenCacheAsync"}, // [5.0.0-5.1.0] GeneratePostData
|
{0, nullptr, "EnsureAuthenticationTokenCacheAsync"},
|
||||||
{1, nullptr, "LoadAuthenticationTokenCache"}, // 6.0.0+
|
{1, nullptr, "LoadAuthenticationTokenCache"},
|
||||||
{2, nullptr, "InvalidateAuthenticationTokenCache"}, // 6.0.0+
|
{2, nullptr, "InvalidateAuthenticationTokenCache"},
|
||||||
{10, nullptr, "EnsureEdgeTokenCacheAsync"}, // 6.0.0+
|
{10, nullptr, "EnsureEdgeTokenCacheAsync"},
|
||||||
{11, nullptr, "LoadEdgeTokenCache"}, // 6.0.0+
|
{11, nullptr, "LoadEdgeTokenCache"},
|
||||||
{12, nullptr, "InvalidateEdgeTokenCache"}, // 6.0.0+
|
{12, nullptr, "InvalidateEdgeTokenCache"},
|
||||||
|
{20, nullptr, "EnsureApplicationAuthenticationCacheAsync"},
|
||||||
|
{21, nullptr, "LoadApplicationAuthenticationTokenCache"},
|
||||||
|
{22, nullptr, "LoadApplicationNetworkServiceClientConfigCache"},
|
||||||
|
{23, nullptr, "IsApplicationAuthenticationCacheAvailable"},
|
||||||
|
{24, nullptr, "InvalidateApplicationAuthenticationCache"},
|
||||||
};
|
};
|
||||||
// clang-format on
|
// clang-format on
|
||||||
|
|
||||||
|
@ -17,28 +17,30 @@ ACC_SU::ACC_SU(std::shared_ptr<Module> module, std::shared_ptr<ProfileManager> p
|
|||||||
{3, &ACC_SU::ListOpenUsers, "ListOpenUsers"},
|
{3, &ACC_SU::ListOpenUsers, "ListOpenUsers"},
|
||||||
{4, &ACC_SU::GetLastOpenedUser, "GetLastOpenedUser"},
|
{4, &ACC_SU::GetLastOpenedUser, "GetLastOpenedUser"},
|
||||||
{5, &ACC_SU::GetProfile, "GetProfile"},
|
{5, &ACC_SU::GetProfile, "GetProfile"},
|
||||||
{6, nullptr, "GetProfileDigest"}, // 3.0.0+
|
{6, nullptr, "GetProfileDigest"},
|
||||||
{50, &ACC_SU::IsUserRegistrationRequestPermitted, "IsUserRegistrationRequestPermitted"},
|
{50, &ACC_SU::IsUserRegistrationRequestPermitted, "IsUserRegistrationRequestPermitted"},
|
||||||
{51, &ACC_SU::TrySelectUserWithoutInteraction, "TrySelectUserWithoutInteraction"},
|
{51, &ACC_SU::TrySelectUserWithoutInteraction, "TrySelectUserWithoutInteraction"},
|
||||||
{60, &ACC_SU::ListOpenContextStoredUsers, "ListOpenContextStoredUsers"}, // 5.0.0 - 5.1.0
|
{60, &ACC_SU::ListOpenContextStoredUsers, "ListOpenContextStoredUsers"},
|
||||||
{99, nullptr, "DebugActivateOpenContextRetention"}, // 6.0.0+
|
{99, nullptr, "DebugActivateOpenContextRetention"},
|
||||||
{100, nullptr, "GetUserRegistrationNotifier"},
|
{100, nullptr, "GetUserRegistrationNotifier"},
|
||||||
{101, nullptr, "GetUserStateChangeNotifier"},
|
{101, nullptr, "GetUserStateChangeNotifier"},
|
||||||
{102, nullptr, "GetBaasAccountManagerForSystemService"},
|
{102, nullptr, "GetBaasAccountManagerForSystemService"},
|
||||||
{103, nullptr, "GetBaasUserAvailabilityChangeNotifier"},
|
{103, nullptr, "GetBaasUserAvailabilityChangeNotifier"},
|
||||||
{104, nullptr, "GetProfileUpdateNotifier"},
|
{104, nullptr, "GetProfileUpdateNotifier"},
|
||||||
{105, nullptr, "CheckNetworkServiceAvailabilityAsync"}, // 4.0.0+
|
{105, nullptr, "CheckNetworkServiceAvailabilityAsync"},
|
||||||
{106, nullptr, "GetProfileSyncNotifier"}, // 9.0.0+
|
{106, nullptr, "GetProfileSyncNotifier"},
|
||||||
{110, &ACC_SU::StoreSaveDataThumbnailSystem, "StoreSaveDataThumbnail"},
|
{110, &ACC_SU::StoreSaveDataThumbnailSystem, "StoreSaveDataThumbnail"},
|
||||||
{111, nullptr, "ClearSaveDataThumbnail"},
|
{111, nullptr, "ClearSaveDataThumbnail"},
|
||||||
{112, nullptr, "LoadSaveDataThumbnail"},
|
{112, nullptr, "LoadSaveDataThumbnail"},
|
||||||
{113, nullptr, "GetSaveDataThumbnailExistence"}, // 5.0.0+
|
{113, nullptr, "GetSaveDataThumbnailExistence"},
|
||||||
{120, nullptr, "ListOpenUsersInApplication"}, // 10.0.0+
|
{120, nullptr, "ListOpenUsersInApplication"},
|
||||||
{130, nullptr, "ActivateOpenContextRetention"}, // 6.0.0+
|
{130, nullptr, "ActivateOpenContextRetention"},
|
||||||
{140, &ACC_SU::ListQualifiedUsers, "ListQualifiedUsers"}, // 6.0.0+
|
{140, &ACC_SU::ListQualifiedUsers, "ListQualifiedUsers"},
|
||||||
{150, nullptr, "AuthenticateApplicationAsync"}, // 10.0.0+
|
{150, nullptr, "AuthenticateApplicationAsync"},
|
||||||
{190, nullptr, "GetUserLastOpenedApplication"}, // 1.0.0 - 9.2.0
|
{151, nullptr, "Unknown151"},
|
||||||
{191, nullptr, "ActivateOpenContextHolder"}, // 7.0.0+
|
{152, nullptr, "Unknown152"},
|
||||||
|
{190, nullptr, "GetUserLastOpenedApplication"},
|
||||||
|
{191, nullptr, "ActivateOpenContextHolder"},
|
||||||
{200, nullptr, "BeginUserRegistration"},
|
{200, nullptr, "BeginUserRegistration"},
|
||||||
{201, nullptr, "CompleteUserRegistration"},
|
{201, nullptr, "CompleteUserRegistration"},
|
||||||
{202, nullptr, "CancelUserRegistration"},
|
{202, nullptr, "CancelUserRegistration"},
|
||||||
@ -46,15 +48,15 @@ ACC_SU::ACC_SU(std::shared_ptr<Module> module, std::shared_ptr<ProfileManager> p
|
|||||||
{204, nullptr, "SetUserPosition"},
|
{204, nullptr, "SetUserPosition"},
|
||||||
{205, &ACC_SU::GetProfileEditor, "GetProfileEditor"},
|
{205, &ACC_SU::GetProfileEditor, "GetProfileEditor"},
|
||||||
{206, nullptr, "CompleteUserRegistrationForcibly"},
|
{206, nullptr, "CompleteUserRegistrationForcibly"},
|
||||||
{210, nullptr, "CreateFloatingRegistrationRequest"}, // 3.0.0+
|
{210, nullptr, "CreateFloatingRegistrationRequest"},
|
||||||
{211, nullptr, "CreateProcedureToRegisterUserWithNintendoAccount"}, // 8.0.0+
|
{211, nullptr, "CreateProcedureToRegisterUserWithNintendoAccount"},
|
||||||
{212, nullptr, "ResumeProcedureToRegisterUserWithNintendoAccount"}, // 8.0.0+
|
{212, nullptr, "ResumeProcedureToRegisterUserWithNintendoAccount"},
|
||||||
{230, nullptr, "AuthenticateServiceAsync"},
|
{230, nullptr, "AuthenticateServiceAsync"},
|
||||||
{250, nullptr, "GetBaasAccountAdministrator"},
|
{250, nullptr, "GetBaasAccountAdministrator"},
|
||||||
{290, nullptr, "ProxyProcedureForGuestLoginWithNintendoAccount"},
|
{290, nullptr, "ProxyProcedureForGuestLoginWithNintendoAccount"},
|
||||||
{291, nullptr, "ProxyProcedureForFloatingRegistrationWithNintendoAccount"}, // 3.0.0+
|
{291, nullptr, "ProxyProcedureForFloatingRegistrationWithNintendoAccount"},
|
||||||
{299, nullptr, "SuspendBackgroundDaemon"},
|
{299, nullptr, "SuspendBackgroundDaemon"},
|
||||||
{997, nullptr, "DebugInvalidateTokenCacheForUser"}, // 3.0.0+
|
{997, nullptr, "DebugInvalidateTokenCacheForUser"},
|
||||||
{998, nullptr, "DebugSetUserStateClose"},
|
{998, nullptr, "DebugSetUserStateClose"},
|
||||||
{999, nullptr, "DebugSetUserStateOpen"},
|
{999, nullptr, "DebugSetUserStateOpen"},
|
||||||
};
|
};
|
||||||
|
@ -17,29 +17,31 @@ ACC_U1::ACC_U1(std::shared_ptr<Module> module, std::shared_ptr<ProfileManager> p
|
|||||||
{3, &ACC_U1::ListOpenUsers, "ListOpenUsers"},
|
{3, &ACC_U1::ListOpenUsers, "ListOpenUsers"},
|
||||||
{4, &ACC_U1::GetLastOpenedUser, "GetLastOpenedUser"},
|
{4, &ACC_U1::GetLastOpenedUser, "GetLastOpenedUser"},
|
||||||
{5, &ACC_U1::GetProfile, "GetProfile"},
|
{5, &ACC_U1::GetProfile, "GetProfile"},
|
||||||
{6, nullptr, "GetProfileDigest"}, // 3.0.0+
|
{6, nullptr, "GetProfileDigest"},
|
||||||
{50, &ACC_U1::IsUserRegistrationRequestPermitted, "IsUserRegistrationRequestPermitted"},
|
{50, &ACC_U1::IsUserRegistrationRequestPermitted, "IsUserRegistrationRequestPermitted"},
|
||||||
{51, &ACC_U1::TrySelectUserWithoutInteraction, "TrySelectUserWithoutInteraction"},
|
{51, &ACC_U1::TrySelectUserWithoutInteraction, "TrySelectUserWithoutInteraction"},
|
||||||
{60, &ACC_U1::ListOpenContextStoredUsers, "ListOpenContextStoredUsers"}, // 5.0.0 - 5.1.0
|
{60, &ACC_U1::ListOpenContextStoredUsers, "ListOpenContextStoredUsers"},
|
||||||
{99, nullptr, "DebugActivateOpenContextRetention"}, // 6.0.0+
|
{99, nullptr, "DebugActivateOpenContextRetention"},
|
||||||
{100, nullptr, "GetUserRegistrationNotifier"},
|
{100, nullptr, "GetUserRegistrationNotifier"},
|
||||||
{101, nullptr, "GetUserStateChangeNotifier"},
|
{101, nullptr, "GetUserStateChangeNotifier"},
|
||||||
{102, nullptr, "GetBaasAccountManagerForSystemService"},
|
{102, nullptr, "GetBaasAccountManagerForSystemService"},
|
||||||
{103, nullptr, "GetBaasUserAvailabilityChangeNotifier"},
|
{103, nullptr, "GetBaasUserAvailabilityChangeNotifier"},
|
||||||
{104, nullptr, "GetProfileUpdateNotifier"},
|
{104, nullptr, "GetProfileUpdateNotifier"},
|
||||||
{105, nullptr, "CheckNetworkServiceAvailabilityAsync"}, // 4.0.0+
|
{105, nullptr, "CheckNetworkServiceAvailabilityAsync"},
|
||||||
{106, nullptr, "GetProfileSyncNotifier"}, // 9.0.0+
|
{106, nullptr, "GetProfileSyncNotifier"},
|
||||||
{110, &ACC_U1::StoreSaveDataThumbnailApplication, "StoreSaveDataThumbnail"},
|
{110, &ACC_U1::StoreSaveDataThumbnailApplication, "StoreSaveDataThumbnail"},
|
||||||
{111, nullptr, "ClearSaveDataThumbnail"},
|
{111, nullptr, "ClearSaveDataThumbnail"},
|
||||||
{112, nullptr, "LoadSaveDataThumbnail"},
|
{112, nullptr, "LoadSaveDataThumbnail"},
|
||||||
{113, nullptr, "GetSaveDataThumbnailExistence"}, // 5.0.0+
|
{113, nullptr, "GetSaveDataThumbnailExistence"},
|
||||||
{120, nullptr, "ListOpenUsersInApplication"}, // 10.0.0+
|
{120, nullptr, "ListOpenUsersInApplication"},
|
||||||
{130, nullptr, "ActivateOpenContextRetention"}, // 6.0.0+
|
{130, nullptr, "ActivateOpenContextRetention"},
|
||||||
{140, &ACC_U1::ListQualifiedUsers, "ListQualifiedUsers"}, // 6.0.0+
|
{140, &ACC_U1::ListQualifiedUsers, "ListQualifiedUsers"},
|
||||||
{150, nullptr, "AuthenticateApplicationAsync"}, // 10.0.0+
|
{150, nullptr, "AuthenticateApplicationAsync"},
|
||||||
{190, nullptr, "GetUserLastOpenedApplication"}, // 1.0.0 - 9.2.0
|
{151, nullptr, "Unknown151"},
|
||||||
{191, nullptr, "ActivateOpenContextHolder"}, // 7.0.0+
|
{152, nullptr, "Unknown152"},
|
||||||
{997, nullptr, "DebugInvalidateTokenCacheForUser"}, // 3.0.0+
|
{190, nullptr, "GetUserLastOpenedApplication"},
|
||||||
|
{191, nullptr, "ActivateOpenContextHolder"},
|
||||||
|
{997, nullptr, "DebugInvalidateTokenCacheForUser"},
|
||||||
{998, nullptr, "DebugSetUserStateClose"},
|
{998, nullptr, "DebugSetUserStateClose"},
|
||||||
{999, nullptr, "DebugSetUserStateOpen"},
|
{999, nullptr, "DebugSetUserStateOpen"},
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user