mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-28 08:13:05 +00:00
libs: simplify ABI registration facades
This commit is contained in:
1 parent
a06a005124
commit
fc91fd2b1a
8 files changed
+90
-100
No files matched your search
@@ -2644,7 +2644,7 @@ static int KYTY_SYSV_ABI AmmWaitCommandBufferCompletion(uint32_t submission_id)
|
|||||||
|
|
||||||
} // namespace Ampr
|
} // namespace Ampr
|
||||||
|
|
||||||
LIB_DEFINE(InitAmpr_1_Ampr) {
|
LIB_DEFINE(InitAmpr_1) {
|
||||||
LIB_FUNC("8aI7R7WaOlc", Ampr::CommandBufferConstructor);
|
LIB_FUNC("8aI7R7WaOlc", Ampr::CommandBufferConstructor);
|
||||||
LIB_FUNC("a8uLzYY--tM", Ampr::AprCommandBufferConstructor);
|
LIB_FUNC("a8uLzYY--tM", Ampr::AprCommandBufferConstructor);
|
||||||
LIB_FUNC("Qs1xtplKo0U", Ampr::AprCommandBufferDestructor);
|
LIB_FUNC("Qs1xtplKo0U", Ampr::AprCommandBufferDestructor);
|
||||||
@@ -2742,8 +2742,4 @@ LIB_DEFINE(InitAmpr_1_Ampr) {
|
|||||||
|
|
||||||
} // namespace LibAmpr
|
} // namespace LibAmpr
|
||||||
|
|
||||||
LIB_DEFINE(InitAmpr_1) {
|
|
||||||
LibAmpr::InitAmpr_1_Ampr(s);
|
|
||||||
}
|
|
||||||
|
|
||||||
} // namespace Libs
|
} // namespace Libs
|
||||||
+3
-1
@@ -808,7 +808,7 @@ LIB_DEFINE(InitLibcInternal_1) {
|
|||||||
|
|
||||||
} // namespace LibcInternal
|
} // namespace LibcInternal
|
||||||
|
|
||||||
LIB_USING(LibC);
|
namespace LibC {
|
||||||
|
|
||||||
LIB_DEFINE(InitLibC_1) {
|
LIB_DEFINE(InitLibC_1) {
|
||||||
LibcInternal::InitLibcInternal_1(s);
|
LibcInternal::InitLibcInternal_1(s);
|
||||||
@@ -835,4 +835,6 @@ LIB_DEFINE(InitLibC_1) {
|
|||||||
LIB_FUNC("DiGVep5yB5w", LibC::std_execute_once);
|
LIB_FUNC("DiGVep5yB5w", LibC::std_execute_once);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} // namespace LibC
|
||||||
|
|
||||||
} // namespace Libs
|
} // namespace Libs
|
||||||
@@ -16,14 +16,10 @@ static KYTY_SYSV_ABI uint32_t RazorCpuIsCapturing() {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
LIB_DEFINE(InitLibRazorCpu_1) {
|
LIB_DEFINE(InitRazorCpu_1) {
|
||||||
LIB_FUNC("EboejOQvLL4", LibRazorCpu::RazorCpuIsCapturing);
|
LIB_FUNC("EboejOQvLL4", LibRazorCpu::RazorCpuIsCapturing);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace LibRazorCpu
|
} // namespace LibRazorCpu
|
||||||
|
|
||||||
LIB_DEFINE(InitDebug_1) {
|
|
||||||
LibRazorCpu::InitLibRazorCpu_1(s);
|
|
||||||
}
|
|
||||||
|
|
||||||
} // namespace Libs
|
} // namespace Libs
|
||||||
+15
-19
@@ -512,10 +512,6 @@ bool KernelIsDispatchingSignalOnCurrentThread() {
|
|||||||
return g_dispatching_signal_handler;
|
return g_dispatching_signal_handler;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void QueuePendingSignal(Pthread thread, int signum) {
|
|
||||||
PthreadQueuePendingSignal(thread, signum);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if KYTY_PLATFORM != KYTY_PLATFORM_WINDOWS
|
#if KYTY_PLATFORM != KYTY_PLATFORM_WINDOWS
|
||||||
static void WaitForSignalDispatch(Pthread thread, int signum) {
|
static void WaitForSignalDispatch(Pthread thread, int signum) {
|
||||||
constexpr auto DISPATCH_WAIT_STEP = std::chrono::microseconds(1000);
|
constexpr auto DISPATCH_WAIT_STEP = std::chrono::microseconds(1000);
|
||||||
@@ -529,10 +525,6 @@ static void WaitForSignalDispatch(Pthread thread, int signum) {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static bool TakePendingSignal(Pthread thread, int signum) {
|
|
||||||
return PthreadTakePendingSignal(thread, signum);
|
|
||||||
}
|
|
||||||
|
|
||||||
struct SignalMcontext {
|
struct SignalMcontext {
|
||||||
uint64_t mc_onstack;
|
uint64_t mc_onstack;
|
||||||
uint64_t mc_rdi;
|
uint64_t mc_rdi;
|
||||||
@@ -985,7 +977,7 @@ static void HostSignalDispatchHandler(int /*host_signal*/, siginfo_t* /*info*/,
|
|||||||
auto* host_ctx = static_cast<ucontext_t*>(native_context);
|
auto* host_ctx = static_cast<ucontext_t*>(native_context);
|
||||||
|
|
||||||
for (int signum = 0; signum < static_cast<int>(std::size(g_exception_handlers)); signum++) {
|
for (int signum = 0; signum < static_cast<int>(std::size(g_exception_handlers)); signum++) {
|
||||||
if (!TakePendingSignal(current, signum)) {
|
if (!PthreadTakePendingSignal(current, signum)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1046,7 +1038,7 @@ static NtQueueApcThreadExFunc GetNtQueueApcThreadEx() {
|
|||||||
static void SignalApcHandler(void* arg1, void* arg2, void* /*arg3*/, PCONTEXT context) {
|
static void SignalApcHandler(void* arg1, void* arg2, void* /*arg3*/, PCONTEXT context) {
|
||||||
auto* thread = static_cast<Pthread>(arg1);
|
auto* thread = static_cast<Pthread>(arg1);
|
||||||
const auto signum = static_cast<int>(reinterpret_cast<intptr_t>(arg2));
|
const auto signum = static_cast<int>(reinterpret_cast<intptr_t>(arg2));
|
||||||
if (!TakePendingSignal(thread, signum)) {
|
if (!PthreadTakePendingSignal(thread, signum)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1081,7 +1073,7 @@ void KernelDispatchPendingSignalForCurrentThread() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (int signum = 0; signum < static_cast<int>(std::size(g_exception_handlers)); signum++) {
|
for (int signum = 0; signum < static_cast<int>(std::size(g_exception_handlers)); signum++) {
|
||||||
if (!TakePendingSignal(current, signum)) {
|
if (!PthreadTakePendingSignal(current, signum)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1159,7 +1151,7 @@ static int KYTY_SYSV_ABI KernelRaiseException(Pthread thread, int signum) {
|
|||||||
return KERNEL_ERROR_EINVAL;
|
return KERNEL_ERROR_EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
QueuePendingSignal(thread, signum);
|
PthreadQueuePendingSignal(thread, signum);
|
||||||
KytyUserApcOption option {};
|
KytyUserApcOption option {};
|
||||||
option.UserApcFlags = KytyQueueUserApcFlagsSpecialUserApc;
|
option.UserApcFlags = KytyQueueUserApcFlagsSpecialUserApc;
|
||||||
|
|
||||||
@@ -1168,7 +1160,7 @@ static int KYTY_SYSV_ABI KernelRaiseException(Pthread thread, int signum) {
|
|||||||
reinterpret_cast<void*>(static_cast<intptr_t>(signum)), nullptr);
|
reinterpret_cast<void*>(static_cast<intptr_t>(signum)), nullptr);
|
||||||
|
|
||||||
if (status != 0) {
|
if (status != 0) {
|
||||||
TakePendingSignal(thread, signum);
|
PthreadTakePendingSignal(thread, signum);
|
||||||
CloseHandle(target_thread);
|
CloseHandle(target_thread);
|
||||||
LOGF("\t NtQueueApcThreadEx failed: target_os_thread=%" PRIu64 ", status=0x%016" PRIx64
|
LOGF("\t NtQueueApcThreadEx failed: target_os_thread=%" PRIu64 ", status=0x%016" PRIx64
|
||||||
"\n",
|
"\n",
|
||||||
@@ -1194,9 +1186,9 @@ static int KYTY_SYSV_ABI KernelRaiseException(Pthread thread, int signum) {
|
|||||||
return KERNEL_ERROR_EINVAL;
|
return KERNEL_ERROR_EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
QueuePendingSignal(thread, signum);
|
PthreadQueuePendingSignal(thread, signum);
|
||||||
if (!PthreadKillHost(thread, SignalDispatchHostSignal())) {
|
if (!PthreadKillHost(thread, SignalDispatchHostSignal())) {
|
||||||
TakePendingSignal(thread, signum);
|
PthreadTakePendingSignal(thread, signum);
|
||||||
LOGF("\t pthread_kill failed for target thread\n");
|
LOGF("\t pthread_kill failed for target thread\n");
|
||||||
return KERNEL_ERROR_EINVAL;
|
return KERNEL_ERROR_EINVAL;
|
||||||
}
|
}
|
||||||
@@ -3028,9 +3020,9 @@ namespace EventQueue = LibKernel::EventQueue;
|
|||||||
namespace EventFlag = LibKernel::EventFlag;
|
namespace EventFlag = LibKernel::EventFlag;
|
||||||
namespace Semaphore = LibKernel::Semaphore;
|
namespace Semaphore = LibKernel::Semaphore;
|
||||||
|
|
||||||
LIB_DEFINE(InitFiber_1) {
|
namespace Fiber {
|
||||||
LIB_USING(Fiber);
|
|
||||||
|
|
||||||
|
LIB_DEFINE(InitFiber_1) {
|
||||||
LIB_FUNC("hVYD7Ou2pCQ", Fiber::FiberInitialize);
|
LIB_FUNC("hVYD7Ou2pCQ", Fiber::FiberInitialize);
|
||||||
LIB_FUNC("7+OJIpko9RY", Fiber::FiberInitializeInternal);
|
LIB_FUNC("7+OJIpko9RY", Fiber::FiberInitializeInternal);
|
||||||
LIB_FUNC("asjUJJ+aa8s", Fiber::FiberOptParamInitialize);
|
LIB_FUNC("asjUJJ+aa8s", Fiber::FiberOptParamInitialize);
|
||||||
@@ -3048,13 +3040,17 @@ LIB_DEFINE(InitFiber_1) {
|
|||||||
LIB_FUNC("0dy4JtMUcMQ", Fiber::FiberGetThreadFramePointerAddress);
|
LIB_FUNC("0dy4JtMUcMQ", Fiber::FiberGetThreadFramePointerAddress);
|
||||||
}
|
}
|
||||||
|
|
||||||
LIB_DEFINE(InitCoredump_1) {
|
} // namespace Fiber
|
||||||
LIB_USING(Coredump);
|
|
||||||
|
|
||||||
|
namespace Coredump {
|
||||||
|
|
||||||
|
LIB_DEFINE(InitCoredump_1) {
|
||||||
LIB_FUNC("8zLSfEfW5AU", Coredump::sceCoredumpRegisterCoredumpHandler);
|
LIB_FUNC("8zLSfEfW5AU", Coredump::sceCoredumpRegisterCoredumpHandler);
|
||||||
LIB_FUNC("fFkhOgztiCA", Coredump::sceCoredumpUnregisterCoredumpHandler);
|
LIB_FUNC("fFkhOgztiCA", Coredump::sceCoredumpUnregisterCoredumpHandler);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} // namespace Coredump
|
||||||
|
|
||||||
LIB_DEFINE(InitLibKernel_1_FS) {
|
LIB_DEFINE(InitLibKernel_1_FS) {
|
||||||
LIB_FUNC("1G3lF1Gg1k8", FileSystem::KernelOpen);
|
LIB_FUNC("1G3lF1Gg1k8", FileSystem::KernelOpen);
|
||||||
LIB_FUNC("UK2Tl2DWUns", FileSystem::KernelClose);
|
LIB_FUNC("UK2Tl2DWUns", FileSystem::KernelClose);
|
||||||
|
|||||||
+6
-10
@@ -78,7 +78,7 @@ static int KYTY_SYSV_ABI RtcCheckValid(const RtcDateTime* time) {
|
|||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int RtcGetDaysInMonth(int year, int month) {
|
static int GetDaysInMonth(int year, int month) {
|
||||||
if (year <= 0 || year > 9999) {
|
if (year <= 0 || year > 9999) {
|
||||||
return RTC_ERROR_INVALID_YEAR;
|
return RTC_ERROR_INVALID_YEAR;
|
||||||
}
|
}
|
||||||
@@ -106,7 +106,7 @@ static int KYTY_SYSV_ABI RtcIsLeapYear(int year) {
|
|||||||
static int KYTY_SYSV_ABI RtcGetDayOfWeek(int year, int month, int day) {
|
static int KYTY_SYSV_ABI RtcGetDayOfWeek(int year, int month, int day) {
|
||||||
PRINT_NAME();
|
PRINT_NAME();
|
||||||
|
|
||||||
const auto days = RtcGetDaysInMonth(year, month);
|
const auto days = GetDaysInMonth(year, month);
|
||||||
if (days < 0) {
|
if (days < 0) {
|
||||||
return days;
|
return days;
|
||||||
}
|
}
|
||||||
@@ -118,10 +118,10 @@ static int KYTY_SYSV_ABI RtcGetDayOfWeek(int year, int month, int day) {
|
|||||||
return (dow == 7 ? 0 : dow);
|
return (dow == 7 ? 0 : dow);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int KYTY_SYSV_ABI RtcGetDaysInMonthExport(int year, int month) {
|
static int KYTY_SYSV_ABI RtcGetDaysInMonth(int year, int month) {
|
||||||
PRINT_NAME();
|
PRINT_NAME();
|
||||||
|
|
||||||
return RtcGetDaysInMonth(year, month);
|
return GetDaysInMonth(year, month);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int KYTY_SYSV_ABI RtcGetTickResolution() {
|
static int KYTY_SYSV_ABI RtcGetTickResolution() {
|
||||||
@@ -549,7 +549,7 @@ static int KYTY_SYSV_ABI RtcTickAddWeeks(RtcTick* dst, const RtcTick* src, int32
|
|||||||
|
|
||||||
} // namespace Rtc
|
} // namespace Rtc
|
||||||
|
|
||||||
LIB_DEFINE(InitRtc_1_Rtc) {
|
LIB_DEFINE(InitRtc_1) {
|
||||||
LIB_FUNC("lPEBYdVX0XQ", Rtc::RtcCheckValid);
|
LIB_FUNC("lPEBYdVX0XQ", Rtc::RtcCheckValid);
|
||||||
LIB_FUNC("8Yr143yEnRo", Rtc::RtcConvertLocalTimeToUtc);
|
LIB_FUNC("8Yr143yEnRo", Rtc::RtcConvertLocalTimeToUtc);
|
||||||
LIB_FUNC("M1TvFst-jrM", Rtc::RtcConvertUtcToLocalTime);
|
LIB_FUNC("M1TvFst-jrM", Rtc::RtcConvertUtcToLocalTime);
|
||||||
@@ -560,7 +560,7 @@ LIB_DEFINE(InitRtc_1_Rtc) {
|
|||||||
LIB_FUNC("zO9UL3qIINQ", Rtc::RtcGetCurrentNetworkTick);
|
LIB_FUNC("zO9UL3qIINQ", Rtc::RtcGetCurrentNetworkTick);
|
||||||
LIB_FUNC("CyIK-i4XdgQ", Rtc::RtcGetDayOfWeek);
|
LIB_FUNC("CyIK-i4XdgQ", Rtc::RtcGetDayOfWeek);
|
||||||
LIB_FUNC("Ug8pCwQvh0c", Rtc::RtcIsLeapYear);
|
LIB_FUNC("Ug8pCwQvh0c", Rtc::RtcIsLeapYear);
|
||||||
LIB_FUNC("3O7Ln8AqJ1o", Rtc::RtcGetDaysInMonthExport);
|
LIB_FUNC("3O7Ln8AqJ1o", Rtc::RtcGetDaysInMonth);
|
||||||
LIB_FUNC("8w-H19ip48I", Rtc::RtcGetTick);
|
LIB_FUNC("8w-H19ip48I", Rtc::RtcGetTick);
|
||||||
LIB_FUNC("jMNwqYr4R-k", Rtc::RtcGetTickResolution);
|
LIB_FUNC("jMNwqYr4R-k", Rtc::RtcGetTickResolution);
|
||||||
LIB_FUNC("BtqmpTRXHgk", Rtc::RtcGetTime_t);
|
LIB_FUNC("BtqmpTRXHgk", Rtc::RtcGetTime_t);
|
||||||
@@ -580,8 +580,4 @@ LIB_DEFINE(InitRtc_1_Rtc) {
|
|||||||
|
|
||||||
} // namespace LibRtc
|
} // namespace LibRtc
|
||||||
|
|
||||||
LIB_DEFINE(InitRtc_1) {
|
|
||||||
LibRtc::InitRtc_1_Rtc(s);
|
|
||||||
}
|
|
||||||
|
|
||||||
} // namespace Libs
|
} // namespace Libs
|
||||||
@@ -47,8 +47,4 @@ LIB_DEFINE(InitVideoOut_1) {
|
|||||||
|
|
||||||
} // namespace LibGen5
|
} // namespace LibGen5
|
||||||
|
|
||||||
LIB_DEFINE(InitVideoOut_1) {
|
|
||||||
LibGen5::InitVideoOut_1(s);
|
|
||||||
}
|
|
||||||
|
|
||||||
} // namespace Libs
|
} // namespace Libs
|
||||||
+64
-47
@@ -6,10 +6,6 @@
|
|||||||
|
|
||||||
namespace Libs {
|
namespace Libs {
|
||||||
|
|
||||||
namespace LibcInternal {
|
|
||||||
LIB_DEFINE(InitLibcInternal_1);
|
|
||||||
} // namespace LibcInternal
|
|
||||||
|
|
||||||
namespace LibContentDelete {
|
namespace LibContentDelete {
|
||||||
LIB_DEFINE(InitContentDelete_1);
|
LIB_DEFINE(InitContentDelete_1);
|
||||||
} // namespace LibContentDelete
|
} // namespace LibContentDelete
|
||||||
@@ -46,15 +42,38 @@ namespace LibPsml {
|
|||||||
LIB_DEFINE(InitPsml_1);
|
LIB_DEFINE(InitPsml_1);
|
||||||
} // namespace LibPsml
|
} // namespace LibPsml
|
||||||
|
|
||||||
|
namespace LibC {
|
||||||
LIB_DEFINE(InitLibC_1);
|
LIB_DEFINE(InitLibC_1);
|
||||||
LIB_DEFINE(InitAppContent_1);
|
} // namespace LibC
|
||||||
|
|
||||||
|
namespace LibAmpr {
|
||||||
LIB_DEFINE(InitAmpr_1);
|
LIB_DEFINE(InitAmpr_1);
|
||||||
LIB_DEFINE(InitAudio_1);
|
} // namespace LibAmpr
|
||||||
|
|
||||||
|
namespace Coredump {
|
||||||
LIB_DEFINE(InitCoredump_1);
|
LIB_DEFINE(InitCoredump_1);
|
||||||
LIB_DEFINE(InitDbgAddressSanitizer_1);
|
} // namespace Coredump
|
||||||
LIB_DEFINE(InitDebug_1);
|
|
||||||
LIB_DEFINE(InitDialog_1);
|
namespace LibRazorCpu {
|
||||||
|
LIB_DEFINE(InitRazorCpu_1);
|
||||||
|
} // namespace LibRazorCpu
|
||||||
|
|
||||||
|
namespace Fiber {
|
||||||
LIB_DEFINE(InitFiber_1);
|
LIB_DEFINE(InitFiber_1);
|
||||||
|
} // namespace Fiber
|
||||||
|
|
||||||
|
namespace LibRtc {
|
||||||
|
LIB_DEFINE(InitRtc_1);
|
||||||
|
} // namespace LibRtc
|
||||||
|
|
||||||
|
namespace LibGen5 {
|
||||||
|
LIB_DEFINE(InitVideoOut_1);
|
||||||
|
} // namespace LibGen5
|
||||||
|
|
||||||
|
LIB_DEFINE(InitAppContent_1);
|
||||||
|
LIB_DEFINE(InitAudio_1);
|
||||||
|
LIB_DEFINE(InitDbgAddressSanitizer_1);
|
||||||
|
LIB_DEFINE(InitDialog_1);
|
||||||
LIB_DEFINE(InitFont_1);
|
LIB_DEFINE(InitFont_1);
|
||||||
LIB_DEFINE(InitFontFt_1);
|
LIB_DEFINE(InitFontFt_1);
|
||||||
LIB_DEFINE(InitAgcDriver_1);
|
LIB_DEFINE(InitAgcDriver_1);
|
||||||
@@ -65,52 +84,50 @@ LIB_DEFINE(InitPlayGo_1);
|
|||||||
LIB_DEFINE(InitPngDec_1);
|
LIB_DEFINE(InitPngDec_1);
|
||||||
LIB_DEFINE(InitPlatform_1);
|
LIB_DEFINE(InitPlatform_1);
|
||||||
LIB_DEFINE(InitRudp_1);
|
LIB_DEFINE(InitRudp_1);
|
||||||
LIB_DEFINE(InitRtc_1);
|
|
||||||
LIB_DEFINE(InitSaveData_1);
|
LIB_DEFINE(InitSaveData_1);
|
||||||
LIB_DEFINE(InitShare_1);
|
LIB_DEFINE(InitShare_1);
|
||||||
LIB_DEFINE(InitSysmodule_1);
|
LIB_DEFINE(InitSysmodule_1);
|
||||||
LIB_DEFINE(InitSystemService_1);
|
LIB_DEFINE(InitSystemService_1);
|
||||||
LIB_DEFINE(InitTextToSpeech2_1);
|
LIB_DEFINE(InitTextToSpeech2_1);
|
||||||
LIB_DEFINE(InitUserService_1);
|
LIB_DEFINE(InitUserService_1);
|
||||||
LIB_DEFINE(InitVideoOut_1);
|
|
||||||
|
|
||||||
void InitAll(Loader::SymbolDatabase* s) {
|
void InitAll(Loader::SymbolDatabase* s) {
|
||||||
LIB_LOAD(InitAudio_1);
|
InitAudio_1(s);
|
||||||
LIB_LOAD(InitAmpr_1);
|
LibAmpr::InitAmpr_1(s);
|
||||||
LIB_LOAD(InitAppContent_1);
|
InitAppContent_1(s);
|
||||||
LIB_LOAD(InitCoredump_1);
|
Coredump::InitCoredump_1(s);
|
||||||
LIB_LOAD(LibContentDelete::InitContentDelete_1);
|
LibContentDelete::InitContentDelete_1(s);
|
||||||
LIB_LOAD(LibContentExport::InitContentExport_1);
|
LibContentExport::InitContentExport_1(s);
|
||||||
LIB_LOAD(LibContentSearch::InitContentSearch_1);
|
LibContentSearch::InitContentSearch_1(s);
|
||||||
LIB_LOAD(InitLibC_1);
|
LibC::InitLibC_1(s);
|
||||||
LIB_LOAD(InitDbgAddressSanitizer_1);
|
InitDbgAddressSanitizer_1(s);
|
||||||
LIB_LOAD(InitDebug_1);
|
LibRazorCpu::InitRazorCpu_1(s);
|
||||||
LIB_LOAD(InitDialog_1);
|
InitDialog_1(s);
|
||||||
LIB_LOAD(InitFiber_1);
|
Fiber::InitFiber_1(s);
|
||||||
LIB_LOAD(InitFont_1);
|
InitFont_1(s);
|
||||||
LIB_LOAD(InitFontFt_1);
|
InitFontFt_1(s);
|
||||||
LIB_LOAD(InitAgcDriver_1);
|
InitAgcDriver_1(s);
|
||||||
LIB_LOAD(InitLibKernel_1);
|
InitLibKernel_1(s);
|
||||||
LIB_LOAD(LibMouse::InitMouse_1);
|
LibMouse::InitMouse_1(s);
|
||||||
LIB_LOAD(LibKeyboard::InitKeyboard_1);
|
LibKeyboard::InitKeyboard_1(s);
|
||||||
LIB_LOAD(Ime::InitPlatform_1_Ime);
|
Ime::InitPlatform_1_Ime(s);
|
||||||
LIB_LOAD(InitNet_1);
|
InitNet_1(s);
|
||||||
LIB_LOAD(InitPad_1);
|
InitPad_1(s);
|
||||||
LIB_LOAD(InitPlayGo_1);
|
InitPlayGo_1(s);
|
||||||
LIB_LOAD(LibPsml::InitPsml_1);
|
LibPsml::InitPsml_1(s);
|
||||||
LIB_LOAD(InitPngDec_1);
|
InitPngDec_1(s);
|
||||||
LIB_LOAD(InitPlatform_1);
|
InitPlatform_1(s);
|
||||||
LIB_LOAD(InitRudp_1);
|
InitRudp_1(s);
|
||||||
LIB_LOAD(InitRtc_1);
|
LibRtc::InitRtc_1(s);
|
||||||
LIB_LOAD(InitSaveData_1);
|
InitSaveData_1(s);
|
||||||
LIB_LOAD(InitShare_1);
|
InitShare_1(s);
|
||||||
LIB_LOAD(InitSysmodule_1);
|
InitSysmodule_1(s);
|
||||||
LIB_LOAD(InitSystemService_1);
|
InitSystemService_1(s);
|
||||||
LIB_LOAD(InitTextToSpeech2_1);
|
InitTextToSpeech2_1(s);
|
||||||
LIB_LOAD(LibUlt::InitUlt_1);
|
LibUlt::InitUlt_1(s);
|
||||||
LIB_LOAD(InitUserService_1);
|
InitUserService_1(s);
|
||||||
LIB_LOAD(VideoDec2::InitVideoDec2_1);
|
VideoDec2::InitVideoDec2_1(s);
|
||||||
LIB_LOAD(InitVideoOut_1);
|
LibGen5::InitVideoOut_1(s);
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace LibContentExport {
|
namespace LibContentExport {
|
||||||
|
|||||||
@@ -27,15 +27,6 @@
|
|||||||
static constexpr int g_module_version_major = mv1; \
|
static constexpr int g_module_version_major = mv1; \
|
||||||
static constexpr int g_module_version_minor = mv2;
|
static constexpr int g_module_version_minor = mv2;
|
||||||
// NOLINTNEXTLINE(cppcoreguidelines-macro-usage)
|
// NOLINTNEXTLINE(cppcoreguidelines-macro-usage)
|
||||||
#define LIB_USING(n) \
|
|
||||||
using n::g_library; \
|
|
||||||
using n::g_library_version; \
|
|
||||||
using n::g_module; \
|
|
||||||
using n::g_module_version_major; \
|
|
||||||
using n::g_module_version_minor;
|
|
||||||
// NOLINTNEXTLINE(cppcoreguidelines-macro-usage)
|
|
||||||
#define LIB_LOAD(name) name(s)
|
|
||||||
// NOLINTNEXTLINE(cppcoreguidelines-macro-usage)
|
|
||||||
#define LIB_ADD(n, f, t) \
|
#define LIB_ADD(n, f, t) \
|
||||||
{ \
|
{ \
|
||||||
Loader::SymbolResolve sr {}; \
|
Loader::SymbolResolve sr {}; \
|
||||||
|
|||||||
Reference in new issue
Block a user