added files.

This commit is contained in:
nitrogenoliquido committed 2026-10-14 22:15:53 -05:00
commit e908ab2355
353 files changed
+130515

No files matched your search

+28
View File
@@ -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