added files.
This commit is contained in:
commit
e908ab2355
353 files changed
+130515
No files matched your search
@@ -0,0 +1,28 @@
|
||||
#pragma once
|
||||
|
||||
#include <windows.h>
|
||||
#include <string>
|
||||
#include "MinecraftDetector.hpp"
|
||||
|
||||
namespace SlinkyNative {
|
||||
|
||||
enum class InjectionStatus {
|
||||
Success = 0,
|
||||
AlreadyRunning,
|
||||
Reloaded,
|
||||
Failed
|
||||
};
|
||||
|
||||
class PayloadLoader {
|
||||
public:
|
||||
static InjectionStatus LoadAndStart(HMODULE hModule, const MinecraftInfo& mcInfo);
|
||||
|
||||
private:
|
||||
static bool CheckPreviousState(JNIEnv* env, jobject classLoader, bool& outAlreadyRunning);
|
||||
static bool ExtractPayloadJar(HMODULE hModule, const MinecraftInfo& mcInfo, std::wstring& outJarPath);
|
||||
static bool AddJarToClassLoader(JNIEnv* env, jobject classLoader, const std::wstring& jarPath);
|
||||
static bool DefinePayloadClasses(JNIEnv* env, jobject classLoader, const std::wstring& jarPath);
|
||||
static bool LaunchBootstrap(JNIEnv* env, jobject classLoader, const MinecraftInfo& mcInfo, HMODULE hModule);
|
||||
};
|
||||
|
||||
} // namespace SlinkyNative
|
||||
Reference in new issue
Block a user