CheatMenuSA/include/fla/Library/Library.h
2022-09-09 13:59:51 +06:00

25 lines
401 B
C++

#pragma once
#ifdef IS_PLATFORM_WIN
#include <Windows.h>
#endif
#ifdef IS_PLATFORM_ANDROID
#include <dlfcn.h>
#endif
union tGenericLibraryModule
{
#ifdef IS_PLATFORM_WIN
HMODULE windows;
#elif defined(IS_PLATFORM_ANDROID)
void* linux_os;
#endif
};
class Library
{
public:
// Returns symbol address
static void* GetSymbolAddress(const tGenericLibraryModule* pModule, const char* symbolName);
};