#include "includes.h"
#include "Utils/Il2cpp/lazy_importer.hpp"
#include "Utils/Internet.h"
#pragma comment(lib, "ntdll.lib")
#include "discord/Discord.h"
using namespace std;
Discord* g_Discord;
__forceinline void discord_main()
{
g_Discord->Initialize();
g_Discord->Update();
}
void RUST_OnLoad(HINSTANCE hModule) {
Start();
hk__();
}
bool DllMain(HMODULE hMod, std::uint32_t call_reason, void*) {
if (call_reason != DLL_PROCESS_ATTACH)
return false;
const auto handle = CreateThread(nullptr, 0, reinterpret_cast<LPTHREAD_START_ROUTINE>(RUST_OnLoad), hMod, 0, nullptr);
if (handle != NULL)
CloseHandle(handle);
return true;
}