added files.
This commit is contained in:
commit
e908ab2355
353 files changed
+130515
No files matched your search
@@ -0,0 +1,30 @@
|
||||
#pragma once
|
||||
|
||||
#include <windows.h>
|
||||
#include <string>
|
||||
#include "jdk/jni.h"
|
||||
#include "jdk/jvmti.h"
|
||||
|
||||
namespace SlinkyNative {
|
||||
|
||||
enum class MappingType {
|
||||
Unknown = 0,
|
||||
Named = 101, // MCP mappings (resource 101)
|
||||
Srg = 102, // SRG mappings (resource 102)
|
||||
Official = 103 // Notch/Vanilla/Lunar/Badlion obfuscated mappings (resource 103)
|
||||
};
|
||||
|
||||
struct MinecraftInfo {
|
||||
MappingType mapping = MappingType::Unknown;
|
||||
std::string mappingName;
|
||||
int resourceId = 0;
|
||||
jclass minecraftClass = nullptr;
|
||||
jobject classLoader = nullptr;
|
||||
};
|
||||
|
||||
class MinecraftDetector {
|
||||
public:
|
||||
static bool Detect(MinecraftInfo& outInfo);
|
||||
};
|
||||
|
||||
} // namespace SlinkyNative
|
||||
Reference in new issue
Block a user