mirror of
https://github.com/Dingo-Shenanigans/ReSkate.git
synced 2026-10-18 00:27:06 +02:00
27 lines
1.1 KiB
C++
27 lines
1.1 KiB
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
#include <string>
|
|
|
|
namespace dingosdk {
|
|
|
|
struct OfflineBootObservation {
|
|
std::string json;
|
|
};
|
|
|
|
// The production offline boot path: ReSkateLauncher always sets
|
|
// RESKATE_DEBUG_TEST_GLOBAL_OFFLINE=1. Hooks the inspected shared OnlineEnabled
|
|
// function and replaces its result only for five exact, inspected caller return
|
|
// RVAs. It requires an initialized Detours hook service and reads the variable
|
|
// exactly once, on the first initialization attempt. A successfully activated
|
|
// hook is retained for the process lifetime.
|
|
bool start_offline_boot(std::uintptr_t image_base) noexcept;
|
|
// Permit only the onboarding event sender after the durable local adapter is active.
|
|
void set_local_profile_event_provider(std::uintptr_t image_base, bool active) noexcept;
|
|
// A validated local category provider may service only the Object Browser constructor.
|
|
using LocalObjectBrowserReady = bool (*)() noexcept;
|
|
void set_local_object_browser_provider(std::uintptr_t image_base, LocalObjectBrowserReady ready) noexcept;
|
|
OfflineBootObservation offline_boot_observation();
|
|
|
|
} // namespace dingosdk
|