CheatMenuSA/include/fla/Main.cpp
2022-09-09 13:59:51 +06:00

30 lines
696 B
C++

/*
* Copyright (C) fastman92 <fastman92@gmail.com>, website: http://fastman92.com
* Licensed under the MIT License, see LICENSE at top level directory.
*
*/
#include "Main.h"
#include "IDaccess.h"
#ifdef IS_PLATFORM_ANDROID
#include <dlfcn.h>
#endif
// hModule_of_the_FLA
tGenericLibraryModule CFastman92limitAdjuster::hModule = {};
// Initializes everything related to the FLA
void CFastman92limitAdjuster::Init()
{
// Get library address
#ifdef IS_PLATFORM_WIN
hModule.windows = GetModuleHandleA("$fastman92limitAdjuster.asi");
#elif defined(IS_PLATFORM_ANDROID)
hModule.linux_os = dlopen(FLA_FILENAME, 4); // 4 - RTLD_NOLOAD
#endif
//////////////////////////////
IDaccess::Init();
}