#pragma once #pragma warning(disable:4503 4244 4005) #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #ifndef GTA3 #include #include #endif #ifdef GTASA #include #include #include #include #include #include #include #include #include #endif #include "fla/IDaccess.h" #include "imgui/imgui.h" #include "defines.h" #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" #define TEXT(x) Locale::GetText(x).c_str() #define TEXT_S(x) Locale::GetText(x) using namespace plugin; enum class eRenderer { DirectX9, DirectX11, Unknown }; extern eRenderer gRenderer; extern DataStore gConfig; using str = std::string; using fArgNone_t = std::function; using fArg1_t = std::function; using fArg3_t = std::function; using fRtnArg1_t = std::function; using fRtnBoolArg1_t = std::function; #define fArg3Wrapper(x) [](str& a, str& b, str& c){x(a, b, c);} #define fArgWrapper(x) [](str& a){x(a);} #define fRtnArgWrapper(x) [](str& a){return x(a);} #define fArgNoneWrapper(x) [](){x();} #ifdef GTASA extern const char* taskNames[1802]; #endif extern Hotkey aimSkinChanger; extern Hotkey freeCam; extern Hotkey freeCamForward; extern Hotkey freeCamBackward; extern Hotkey freeCamLeft; extern Hotkey freeCamRight; extern Hotkey freeCamTeleport; extern Hotkey commandWindow; extern Hotkey fixVeh; extern Hotkey unflipVeh; extern Hotkey godMode; extern Hotkey menuOpen; extern Hotkey quickSceenShot; extern Hotkey quickTeleport; extern Hotkey teleportMarker; extern Hotkey vehEngine; extern Hotkey vehInstantStart; extern Hotkey vehInstantStop; extern ResourceStore gTextureList;