2020-12-02 16:19:16 -05:00
|
|
|
#pragma once
|
2021-10-25 10:03:27 -04:00
|
|
|
#pragma warning(disable:4503 4244 4005)
|
2020-12-02 16:19:16 -05:00
|
|
|
|
2021-10-25 10:03:27 -04:00
|
|
|
#include <d3d9.h>
|
2021-09-20 08:41:40 -04:00
|
|
|
#include <d3d11.h>
|
|
|
|
#include <d3d11Shader.h>
|
|
|
|
#include <filesystem>
|
|
|
|
#include <fstream>
|
2022-08-19 22:56:05 -04:00
|
|
|
#include <functional>
|
2021-10-24 18:08:00 -04:00
|
|
|
#include <memory>
|
2021-10-25 10:03:27 -04:00
|
|
|
#include <iostream>
|
2021-09-20 08:41:40 -04:00
|
|
|
#include <sstream>
|
|
|
|
#include <vector>
|
|
|
|
#include <windows.h>
|
|
|
|
|
2021-10-25 10:03:27 -04:00
|
|
|
#include <plugin.h>
|
2021-10-23 09:59:48 -04:00
|
|
|
#include <CCamera.h>
|
2021-10-24 18:08:00 -04:00
|
|
|
#include <CClock.h>
|
2021-10-25 10:03:27 -04:00
|
|
|
#include <CCivilianPed.h>
|
2021-10-23 09:59:48 -04:00
|
|
|
#include <CGangs.h>
|
|
|
|
#include <CHud.h>
|
|
|
|
#include <CMenuManager.h>
|
|
|
|
#include <CModelInfo.h>
|
2021-10-25 10:03:27 -04:00
|
|
|
#include <RenderWare.h>
|
2021-10-23 09:59:48 -04:00
|
|
|
#include <CStats.h>
|
|
|
|
#include <CStreaming.h>
|
|
|
|
#include <CTheScripts.h>
|
2021-10-24 18:08:00 -04:00
|
|
|
#include <CTimer.h>
|
2021-10-25 10:03:27 -04:00
|
|
|
#include <CTimeCycle.h>
|
2021-10-23 09:59:48 -04:00
|
|
|
#include <CTrain.h>
|
|
|
|
#include <CWeather.h>
|
|
|
|
#include <CWorld.h>
|
2021-10-24 18:08:00 -04:00
|
|
|
#include <extensions/ScriptCommands.h>
|
2021-10-25 10:03:27 -04:00
|
|
|
#include <extensions/Screen.h>
|
|
|
|
#include <extensions/Paths.h>
|
2021-09-20 08:41:40 -04:00
|
|
|
|
2021-10-21 18:23:02 -04:00
|
|
|
#ifndef GTA3
|
2021-10-23 09:59:48 -04:00
|
|
|
#include <CBike.h>
|
2021-10-25 10:03:27 -04:00
|
|
|
#include <cHandlingDataMgr.h>
|
2021-10-21 18:23:02 -04:00
|
|
|
#endif
|
|
|
|
|
2021-09-20 08:41:40 -04:00
|
|
|
#ifdef GTASA
|
2021-10-23 09:59:48 -04:00
|
|
|
#include <CCheat.h>
|
|
|
|
#include <CClothes.h>
|
|
|
|
#include <CCutsceneMgr.h>
|
|
|
|
#include <CRadar.h>
|
|
|
|
#include <CShadows.h>
|
|
|
|
#include <eVehicleClass.h>
|
2021-10-25 10:03:27 -04:00
|
|
|
#include <CGangWars.h>
|
2021-10-26 08:08:26 -04:00
|
|
|
#include <CZoneInfo.h>
|
2021-10-30 16:30:28 -04:00
|
|
|
#include <CTheZones.h>
|
2021-09-20 08:41:40 -04:00
|
|
|
#endif
|
|
|
|
|
2022-08-06 16:46:40 -04:00
|
|
|
#include "fla/IDaccess.h"
|
|
|
|
#include "imgui/imgui.h"
|
2021-09-20 08:41:40 -04:00
|
|
|
|
2022-06-15 06:45:43 -04:00
|
|
|
#include "defines.h"
|
2022-08-06 16:46:40 -04:00
|
|
|
#include "utils/log.h"
|
|
|
|
#include "utils/datastore.h"
|
|
|
|
#include "utils/hotkeys.h"
|
|
|
|
#include "utils/resourcestore.h"
|
|
|
|
#include "utils/fontmgr.h"
|
|
|
|
#include "utils/locale.h"
|
|
|
|
#include "utils/util.h"
|
2020-12-02 16:19:16 -05:00
|
|
|
|
2022-05-17 06:51:59 -04:00
|
|
|
#define TEXT(x) Locale::GetText(x).c_str()
|
|
|
|
#define TEXT_S(x) Locale::GetText(x)
|
2022-02-11 16:35:08 -05:00
|
|
|
|
2020-12-02 16:19:16 -05:00
|
|
|
using namespace plugin;
|
|
|
|
|
2022-08-19 22:56:05 -04:00
|
|
|
enum class eRenderer
|
2020-12-02 16:19:16 -05:00
|
|
|
{
|
2022-08-19 22:56:05 -04:00
|
|
|
DirectX9,
|
|
|
|
DirectX11,
|
|
|
|
Unknown
|
2020-12-02 16:19:16 -05:00
|
|
|
};
|
|
|
|
|
2022-02-11 01:38:14 -05:00
|
|
|
extern eRenderer gRenderer;
|
2022-06-16 06:40:46 -04:00
|
|
|
extern DataStore gConfig;
|
2021-06-17 09:00:32 -04:00
|
|
|
|
2022-08-19 22:56:05 -04:00
|
|
|
using str = std::string;
|
|
|
|
using fArgNone_t = std::function<void()>;
|
|
|
|
using fArg1_t = std::function<void(str&)>;
|
|
|
|
using fArg3_t = std::function<void(str&, str&, str&)>;
|
|
|
|
using fRtnArg1_t = std::function<std::string(str&)>;
|
|
|
|
using fRtnBoolArg1_t = std::function<bool(str&)>;
|
2022-08-11 22:17:48 -04:00
|
|
|
|
|
|
|
#define fArg3Wrapper(x) [](str& a, str& b, str& c){x(a, b, c);}
|
|
|
|
#define fArgWrapper(x) [](str& a){x(a);}
|
2022-08-19 22:56:05 -04:00
|
|
|
#define fRtnArgWrapper(x) [](str& a){return x(a);}
|
2022-08-11 22:17:48 -04:00
|
|
|
#define fArgNoneWrapper(x) [](){x();}
|
2022-06-29 19:56:53 -04:00
|
|
|
|
2022-07-30 17:57:09 -04:00
|
|
|
#ifdef GTASA
|
|
|
|
extern const char* taskNames[1802];
|
2021-08-17 01:46:41 -04:00
|
|
|
#endif
|
2022-01-13 08:57:08 -05:00
|
|
|
extern Hotkey aimSkinChanger;
|
|
|
|
extern Hotkey freeCam;
|
2022-06-05 17:18:41 -04:00
|
|
|
extern Hotkey freeCamForward;
|
|
|
|
extern Hotkey freeCamBackward;
|
|
|
|
extern Hotkey freeCamLeft;
|
|
|
|
extern Hotkey freeCamRight;
|
2022-06-12 14:01:43 -04:00
|
|
|
extern Hotkey freeCamTeleport;
|
2022-01-13 08:57:08 -05:00
|
|
|
extern Hotkey commandWindow;
|
|
|
|
extern Hotkey fixVeh;
|
2022-07-16 14:29:32 -04:00
|
|
|
extern Hotkey unflipVeh;
|
2022-01-13 08:57:08 -05:00
|
|
|
extern Hotkey godMode;
|
|
|
|
extern Hotkey menuOpen;
|
|
|
|
extern Hotkey quickSceenShot;
|
|
|
|
extern Hotkey quickTeleport;
|
2022-07-06 15:11:53 -04:00
|
|
|
extern Hotkey teleportMarker;
|
2022-01-13 08:57:08 -05:00
|
|
|
extern Hotkey vehEngine;
|
|
|
|
extern Hotkey vehInstantStart;
|
2022-07-06 15:11:53 -04:00
|
|
|
extern Hotkey vehInstantStop;
|
|
|
|
extern ResourceStore gTextureList;
|