adapt: adapt LeviLamina 1.0.0-rc.3

This commit is contained in:
子沐呀
2025-01-12 20:32:24 +08:00
Unverified
parent 6e57f87129
commit 846575f83d
13 changed files with 77 additions and 131 deletions
+2 -3
View File
@@ -1,5 +1,4 @@
#pragma once
#include <span>
#include <ll/api/mod/NativeMod.h>
#include <ll/api/mod/RegisterHelper.h>
@@ -8,9 +7,9 @@ namespace gmlib {
class LegacyRemoteCallApi {
public:
static std::unique_ptr<LegacyRemoteCallApi>& getInstance();
static LegacyRemoteCallApi& getInstance();
LegacyRemoteCallApi(ll::mod::NativeMod& self) : mSelf(self) {}
LegacyRemoteCallApi() : mSelf(*ll::mod::NativeMod::current()) {}
[[nodiscard]] ll::mod::NativeMod& getSelf() const { return mSelf; }