2020-12-02 16:19:16 -05:00
|
|
|
#pragma once
|
2020-12-16 17:14:16 -05:00
|
|
|
#pragma warning(disable:4503 4244 4005)
|
2020-12-02 16:19:16 -05:00
|
|
|
|
|
|
|
#define INPUT_BUFFER_SIZE 64
|
|
|
|
#define SPAWN_PED_LIMIT 20
|
|
|
|
#define STB_IMAGE_IMPLEMENTATION
|
2020-12-21 15:24:07 -05:00
|
|
|
#define DISCORD_INVITE "https://discord.gg/ZzW7kmf"
|
|
|
|
#define GITHUB_LINK "https://github.com/user-grinch/Cheat-Menu"
|
2020-12-02 16:19:16 -05:00
|
|
|
|
|
|
|
#include <d3d9.h>
|
|
|
|
#include <d3d11.h>
|
|
|
|
#include <d3d11Shader.h>
|
|
|
|
#include <D3dx9tex.h>
|
|
|
|
#include <D3DX11tex.h>
|
|
|
|
#include <filesystem>
|
|
|
|
#include <fstream>
|
|
|
|
#include <functional>
|
|
|
|
#include <memory>
|
|
|
|
#include <sstream>
|
|
|
|
#include <vector>
|
|
|
|
#include <windows.h>
|
|
|
|
|
|
|
|
#include "plugin.h"
|
2020-12-24 14:31:26 -05:00
|
|
|
#include "CBike.h"
|
2020-12-02 16:19:16 -05:00
|
|
|
#include "CCamera.h"
|
|
|
|
#include "CCheat.h"
|
|
|
|
#include "CClothes.h"
|
|
|
|
#include "CClock.h"
|
|
|
|
#include "CCivilianPed.h"
|
|
|
|
#include "CCutsceneMgr.h"
|
|
|
|
#include "CGangs.h"
|
|
|
|
#include "CGangWars.h"
|
|
|
|
#include "cHandlingDataMgr.h"
|
|
|
|
#include "CHud.h"
|
|
|
|
#include "CMenuManager.h"
|
|
|
|
#include "CModelInfo.h"
|
|
|
|
#include "CRadar.h"
|
|
|
|
#include "RenderWare.h"
|
2020-12-25 16:22:28 -05:00
|
|
|
#include "CShadows.h"
|
2020-12-02 16:19:16 -05:00
|
|
|
#include "CStats.h"
|
|
|
|
#include "CStreaming.h"
|
|
|
|
#include "CTheScripts.h"
|
|
|
|
#include "CTheZones.h"
|
|
|
|
#include "CTimer.h"
|
|
|
|
#include "CTimeCycle.h"
|
2020-12-24 14:31:26 -05:00
|
|
|
#include "CTrain.h"
|
2020-12-02 16:19:16 -05:00
|
|
|
#include "CWeather.h"
|
|
|
|
#include "CWorld.h"
|
|
|
|
#include "extensions/ScriptCommands.h"
|
|
|
|
#include "extensions/Screen.h"
|
|
|
|
#include "eVehicleClass.h"
|
2021-01-07 16:07:45 -05:00
|
|
|
#include "extensions/Paths.h"
|
2020-12-02 16:19:16 -05:00
|
|
|
|
2021-01-03 06:48:07 -05:00
|
|
|
#include "vendor/imgui/imgui.h"
|
|
|
|
#include "vendor/imgui/imgui_internal.h"
|
|
|
|
#include "vendor/imgui/imgui_impl_dx9.h"
|
|
|
|
#include "vendor/imgui/imgui_impl_dx11.h"
|
|
|
|
#include "vendor/imgui/imgui_impl_win32.h"
|
2020-12-02 16:19:16 -05:00
|
|
|
|
|
|
|
#include "Events.h"
|
|
|
|
#include "Json.h"
|
|
|
|
#include "VKeys.h"
|
|
|
|
|
|
|
|
// Globals
|
|
|
|
typedef std::vector<std::pair<std::string, void(*)(void)>> unsortedMap;
|
|
|
|
using namespace plugin;
|
2021-01-05 01:29:26 -05:00
|
|
|
namespace fs = std::filesystem;
|
2020-12-02 16:19:16 -05:00
|
|
|
|
|
|
|
enum Renderer
|
|
|
|
{
|
|
|
|
Render_DirectX9,
|
|
|
|
Render_DirectX10,
|
|
|
|
Render_DirectX11,
|
|
|
|
Render_DirectX12,
|
|
|
|
Render_OpenGL,
|
|
|
|
Render_Unknown,
|
|
|
|
Render_Vulkan,
|
|
|
|
};
|
|
|
|
|
|
|
|
struct Globals
|
|
|
|
{
|
|
|
|
static std::string header_id;
|
|
|
|
static int last_key_timer;
|
|
|
|
static ImVec2 menu_size;
|
|
|
|
static ImVec2 font_screen_size;
|
|
|
|
static bool show_menu;
|
|
|
|
static bool init_done;
|
|
|
|
static Renderer renderer;
|
2020-12-28 15:12:40 -05:00
|
|
|
static bool gsync_time;
|
2021-01-07 16:07:45 -05:00
|
|
|
static void* device;
|
2020-12-02 16:19:16 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
struct TextureStructure
|
|
|
|
{
|
|
|
|
std::string file_name;
|
|
|
|
std::string category_name;
|
2021-01-07 16:07:45 -05:00
|
|
|
void *texture = nullptr;
|
2020-12-02 16:19:16 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
extern CJson config;
|
2021-01-03 06:48:07 -05:00
|
|
|
extern std::ofstream flog;
|