diff --git a/src/cheatmenu.cpp b/src/cheatmenu.cpp index e7337d0..121e975 100644 --- a/src/cheatmenu.cpp +++ b/src/cheatmenu.cpp @@ -1,21 +1,20 @@ #include "pch.h" -#include "widget.h" -#include "updater.h" -#include "d3dhook.h" -#include "../depend/imgui/imgui_internal.h" -#include "util.h" - -#include "animation.h" #include "cheatmenu.h" -#include "game.h" -#include "menu.h" -#include "ped.h" -#include "player.h" -#include "teleport.h" -#include "vehicle.h" -#include "visual.h" -#include "weapon.h" -#include "overlay.h" +#include "imgui/imgui_internal.h" +#include "utils/widget.h" +#include "utils/updater.h" +#include "utils/d3dhook.h" +#include "utils/util.h" +#include "utils/overlay.h" +#include "pages/animation.h" +#include "pages/game.h" +#include "pages/menu.h" +#include "pages/ped.h" +#include "pages/player.h" +#include "pages/teleport.h" +#include "pages/vehicle.h" +#include "pages/visual.h" +#include "pages/weapon.h" static bool DrawTitleBar() { diff --git a/src/filehandler.cpp b/src/custom/filehandler.cpp similarity index 100% rename from src/filehandler.cpp rename to src/custom/filehandler.cpp diff --git a/src/filehandler.h b/src/custom/filehandler.h similarity index 96% rename from src/filehandler.h rename to src/custom/filehandler.h index 5be0e21..543d088 100644 --- a/src/filehandler.h +++ b/src/custom/filehandler.h @@ -1,4 +1,5 @@ #pragma once +#include #include #include diff --git a/src/neon.cpp b/src/custom/neon.cpp similarity index 99% rename from src/neon.cpp rename to src/custom/neon.cpp index bb7b2e5..6846d8e 100644 --- a/src/neon.cpp +++ b/src/custom/neon.cpp @@ -1,4 +1,6 @@ #include "pch.h" + +#ifdef GTASA #include "neon.h" // Neon sprite @@ -275,5 +277,4 @@ void Neon::Remove(CVehicle* pVeh) { m_VehNeon.Get(pVeh).m_bNeonInstalled = false; } - - +#endif \ No newline at end of file diff --git a/src/neon.h b/src/custom/neon.h similarity index 95% rename from src/neon.h rename to src/custom/neon.h index b6783c3..4543aac 100644 --- a/src/neon.h +++ b/src/custom/neon.h @@ -1,5 +1,6 @@ #pragma once -#include "extender/VehicleExtender.h" +#ifdef GTASA +#include /* Vehicle Neon implementation class for GTA: San Andreas @@ -56,3 +57,4 @@ public: // Removes neon from vehicle static void Remove(CVehicle* veh); }; +#endif \ No newline at end of file diff --git a/src/paint.cpp b/src/custom/paint.cpp similarity index 99% rename from src/paint.cpp rename to src/custom/paint.cpp index 0fc60bc..b59c307 100644 --- a/src/paint.cpp +++ b/src/custom/paint.cpp @@ -23,9 +23,10 @@ // SOFTWARE. #include "pch.h" +#ifdef GTASA #include "paint.h" -#include "NodeName.h" -#include "util.h" +#include "utils/util.h" +#include void Paint::InjectHooks() { @@ -319,3 +320,4 @@ void Paint::ResetNodeTexture(CVehicle* pVeh, std::string node_name) } }); } +#endif \ No newline at end of file diff --git a/src/paint.h b/src/custom/paint.h similarity index 99% rename from src/paint.h rename to src/custom/paint.h index 065309b..b9aa3c2 100644 --- a/src/paint.h +++ b/src/custom/paint.h @@ -23,6 +23,7 @@ // SOFTWARE. #pragma once +#ifdef GTASA #include class Paint @@ -83,3 +84,4 @@ public: static void ResetNodeColor(CVehicle* veh, std::string node_name); static void ResetNodeTexture(CVehicle* pVeh, std::string node_name); }; +#endif diff --git a/src/dllmain.cpp b/src/dllmain.cpp index 6fc1334..6df4539 100644 --- a/src/dllmain.cpp +++ b/src/dllmain.cpp @@ -1,8 +1,8 @@ #include "pch.h" #include "cheatmenu.h" -#include "updater.h" -#include "rpc.h" -#include "menu.h" +#include "utils/updater.h" +#include "utils/rpc.h" +#include "pages/menu.h" void MenuThread(void* param) { diff --git a/src/animation.cpp b/src/pages/animation.cpp similarity index 99% rename from src/animation.cpp rename to src/pages/animation.cpp index 0f35348..cdd80f3 100644 --- a/src/animation.cpp +++ b/src/pages/animation.cpp @@ -1,7 +1,7 @@ #include "pch.h" #include "animation.h" -#include "widget.h" -#include "util.h" +#include "utils/widget.h" +#include "utils/util.h" #ifdef GTA3 #include @@ -10,7 +10,7 @@ #include "eAnimations.h" #include #elif GTAVC -#include "../depend/kiero/minhook/MinHook.h" +#include "kiero/minhook/MinHook.h" #include #include #include "eAnimations.h" @@ -18,7 +18,7 @@ #endif #ifdef GTASA -#include "overlay.h" +#include "utils/overlay.h" void Cutscene::Init() { diff --git a/src/animation.h b/src/pages/animation.h similarity index 100% rename from src/animation.h rename to src/pages/animation.h diff --git a/src/game.cpp b/src/pages/game.cpp similarity index 99% rename from src/game.cpp rename to src/pages/game.cpp index a2fea55..debefc5 100644 --- a/src/game.cpp +++ b/src/pages/game.cpp @@ -1,8 +1,9 @@ #include "pch.h" #include "menu.h" #include "game.h" -#include "widget.h" -#include "util.h" +#include "utils/widget.h" +#include "utils/util.h" + #ifdef GTASA #include #include diff --git a/src/game.h b/src/pages/game.h similarity index 100% rename from src/game.h rename to src/pages/game.h diff --git a/src/menu.cpp b/src/pages/menu.cpp similarity index 99% rename from src/menu.cpp rename to src/pages/menu.cpp index fb1b72d..af7a19e 100644 --- a/src/menu.cpp +++ b/src/pages/menu.cpp @@ -1,11 +1,11 @@ #include "pch.h" #include "menu.h" -#include "widget.h" -#include "util.h" -#include "updater.h" #include "cheatmenu.h" -#include "rpc.h" -#include "overlay.h" +#include "utils/widget.h" +#include "utils/util.h" +#include "utils/updater.h" +#include "utils/rpc.h" +#include "utils/overlay.h" void Menu::Init() { diff --git a/src/menu.h b/src/pages/menu.h similarity index 100% rename from src/menu.h rename to src/pages/menu.h diff --git a/src/ped.cpp b/src/pages/ped.cpp similarity index 99% rename from src/ped.cpp rename to src/pages/ped.cpp index defbedb..c984657 100644 --- a/src/ped.cpp +++ b/src/pages/ped.cpp @@ -1,9 +1,9 @@ #include "pch.h" #include "ped.h" -#include "widget.h" -#include "util.h" -#include "weapon.h" #include +#include "weapon.h" +#include "utils/widget.h" +#include "utils/util.h" #ifdef GTASA #include diff --git a/src/ped.h b/src/pages/ped.h similarity index 100% rename from src/ped.h rename to src/pages/ped.h diff --git a/src/player.cpp b/src/pages/player.cpp similarity index 99% rename from src/player.cpp rename to src/pages/player.cpp index 4565be3..c660463 100644 --- a/src/player.cpp +++ b/src/pages/player.cpp @@ -1,8 +1,8 @@ #include "pch.h" #include "player.h" #include "menu.h" -#include "widget.h" -#include "util.h" +#include "utils/widget.h" +#include "utils/util.h" #ifdef GTASA #include "ped.h" diff --git a/src/player.h b/src/pages/player.h similarity index 100% rename from src/player.h rename to src/pages/player.h diff --git a/src/teleport.cpp b/src/pages/teleport.cpp similarity index 99% rename from src/teleport.cpp rename to src/pages/teleport.cpp index 3ac9e0b..8823239 100644 --- a/src/teleport.cpp +++ b/src/pages/teleport.cpp @@ -1,8 +1,8 @@ #include "pch.h" #include "teleport.h" #include "menu.h" -#include "widget.h" -#include "util.h" +#include "utils/widget.h" +#include "utils/util.h" #ifdef GTASA // FlA diff --git a/src/teleport.h b/src/pages/teleport.h similarity index 100% rename from src/teleport.h rename to src/pages/teleport.h diff --git a/src/vehicle.cpp b/src/pages/vehicle.cpp similarity index 99% rename from src/vehicle.cpp rename to src/pages/vehicle.cpp index 431365a..d357a49 100644 --- a/src/vehicle.cpp +++ b/src/pages/vehicle.cpp @@ -1,17 +1,17 @@ #include "pch.h" #include "vehicle.h" -#include "menu.h" -#include "widget.h" -#include "util.h" -#include "teleport.h" -#include "filehandler.h" #include #include +#include "menu.h" +#include "teleport.h" +#include "utils/widget.h" +#include "utils/util.h" +#include "custom/filehandler.h" #ifdef GTASA -#include "tHandlingData.h" -#include "neon.h" -#include "paint.h" +#include +#include "custom/neon.h" +#include "custom/paint.h" #endif void Vehicle::Init() @@ -750,8 +750,7 @@ void Vehicle::ShowPage() pPlayer->m_nPedFlags.CantBeKnockedOffBike = 1; #elif GTAVC - patch::SetRaw(0x614C4E, (void*)"\x8B\x8D\x00\x00\x00\x00", 6); - patch::SetRaw(0x614CC5, (void*)"\x8B\x85\x00\x00\x00\x00", 6); + patch::PutRetn(0x613920, 0x10); #endif } else @@ -760,8 +759,7 @@ void Vehicle::ShowPage() pPlayer->m_nPedFlags.CantBeKnockedOffBike = 2; #elif GTAVC - patch::SetRaw(0x614C4E, (void*)"\x8B\x8D\xA8\x01\x00\x00", 6); - patch::SetRaw(0x614CC5, (void*)"\x8B\x85\xAC\x01\x00\x00", 6); + patch::SetRaw(0x613920, (void*)"\x53\x56\x57\x55", 4); #endif } } diff --git a/src/vehicle.h b/src/pages/vehicle.h similarity index 100% rename from src/vehicle.h rename to src/pages/vehicle.h diff --git a/src/visual.cpp b/src/pages/visual.cpp similarity index 99% rename from src/visual.cpp rename to src/pages/visual.cpp index be2ec41..f703f8c 100644 --- a/src/visual.cpp +++ b/src/pages/visual.cpp @@ -1,14 +1,14 @@ #include "pch.h" #include "visual.h" -#include "widget.h" -#include "util.h" #include "game.h" -#include "timecycle.h" -#include "CWorld.h" #include "vehicle.h" +#include "utils/widget.h" +#include "utils/util.h" +#include "utils/timecycle.h" +#include #ifdef GTASA -#include "CHudColours.h" +#include #endif #ifdef GTASA diff --git a/src/visual.h b/src/pages/visual.h similarity index 100% rename from src/visual.h rename to src/pages/visual.h diff --git a/src/weapon.cpp b/src/pages/weapon.cpp similarity index 99% rename from src/weapon.cpp rename to src/pages/weapon.cpp index 91a882b..d5d9869 100644 --- a/src/weapon.cpp +++ b/src/pages/weapon.cpp @@ -1,8 +1,8 @@ #include "pch.h" #include "weapon.h" -#include "widget.h" -#include "util.h" -#include "CWeaponInfo.h" +#include "utils/widget.h" +#include "utils/util.h" +#include void Weapon::Init() { diff --git a/src/weapon.h b/src/pages/weapon.h similarity index 100% rename from src/weapon.h rename to src/pages/weapon.h diff --git a/src/pch.h b/src/pch.h index 605be08..a7a711b 100644 --- a/src/pch.h +++ b/src/pch.h @@ -51,17 +51,17 @@ #include #endif -#include "../depend/fla/IDaccess.h" -#include "../depend/imgui/imgui.h" +#include "fla/IDaccess.h" +#include "imgui/imgui.h" #include "defines.h" -#include "log.h" -#include "datastore.h" -#include "hotkeys.h" -#include "resourcestore.h" -#include "fontmgr.h" -#include "locale.h" -#include "util.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) diff --git a/src/d3dhook.cpp b/src/utils/d3dhook.cpp similarity index 97% rename from src/d3dhook.cpp rename to src/utils/d3dhook.cpp index d626147..ab142b2 100644 --- a/src/d3dhook.cpp +++ b/src/utils/d3dhook.cpp @@ -1,10 +1,10 @@ #include "pch.h" #include "d3dhook.h" -#include "../depend/kiero/kiero.h" -#include "../depend/kiero/minhook/MinHook.h" -#include "../depend/imgui/imgui_impl_dx9.h" -#include "../depend/imgui/imgui_impl_dx11.h" -#include "../depend/imgui/imgui_impl_win32.h" +#include "kiero/kiero.h" +#include "kiero/minhook/MinHook.h" +#include "imgui/imgui_impl_dx9.h" +#include "imgui/imgui_impl_dx11.h" +#include "imgui/imgui_impl_win32.h" #include #define DIMOUSE ((LPDIRECTINPUTDEVICE8)(RsGlobal.ps->diMouse)) diff --git a/src/d3dhook.h b/src/utils/d3dhook.h similarity index 100% rename from src/d3dhook.h rename to src/utils/d3dhook.h diff --git a/src/datastore.cpp b/src/utils/datastore.cpp similarity index 99% rename from src/datastore.cpp rename to src/utils/datastore.cpp index 77b9b14..9991fc3 100644 --- a/src/datastore.cpp +++ b/src/utils/datastore.cpp @@ -1,5 +1,5 @@ -#include "datastore.h" #include "pch.h" +#include "datastore.h" DataStore::DataStore(const char* fileName, bool isPathPredefined) noexcept { diff --git a/src/datastore.h b/src/utils/datastore.h similarity index 98% rename from src/datastore.h rename to src/utils/datastore.h index eb4ae99..5bd88e4 100644 --- a/src/datastore.h +++ b/src/utils/datastore.h @@ -1,6 +1,6 @@ #pragma once #define TOML_EXCEPTIONS 0 -#include "../depend/toml_addon.hpp" +#include "toml_addon.hpp" #include diff --git a/src/fontmgr.cpp b/src/utils/fontmgr.cpp similarity index 99% rename from src/fontmgr.cpp rename to src/utils/fontmgr.cpp index 5a6b996..6586d36 100644 --- a/src/fontmgr.cpp +++ b/src/utils/fontmgr.cpp @@ -1,5 +1,5 @@ -#include "fontmgr.h" #include "pch.h" +#include "fontmgr.h" ImFont* FontMgr::Get(const char* fontID) { diff --git a/src/fontmgr.h b/src/utils/fontmgr.h similarity index 100% rename from src/fontmgr.h rename to src/utils/fontmgr.h diff --git a/src/hotkeys.cpp b/src/utils/hotkeys.cpp similarity index 100% rename from src/hotkeys.cpp rename to src/utils/hotkeys.cpp diff --git a/src/hotkeys.h b/src/utils/hotkeys.h similarity index 100% rename from src/hotkeys.h rename to src/utils/hotkeys.h diff --git a/src/locale.cpp b/src/utils/locale.cpp similarity index 100% rename from src/locale.cpp rename to src/utils/locale.cpp diff --git a/src/locale.h b/src/utils/locale.h similarity index 100% rename from src/locale.h rename to src/utils/locale.h diff --git a/src/log.cpp b/src/utils/log.cpp similarity index 100% rename from src/log.cpp rename to src/utils/log.cpp diff --git a/src/log.h b/src/utils/log.h similarity index 98% rename from src/log.h rename to src/utils/log.h index 739354f..7c21105 100644 --- a/src/log.h +++ b/src/utils/log.h @@ -2,7 +2,6 @@ #include #include #include -#include "defines.h" enum class eLogLevel { diff --git a/src/overlay.cpp b/src/utils/overlay.cpp similarity index 99% rename from src/overlay.cpp rename to src/utils/overlay.cpp index bfe4029..bf3cd33 100644 --- a/src/overlay.cpp +++ b/src/utils/overlay.cpp @@ -1,12 +1,11 @@ #include "pch.h" -#include "vehicle.h" #include -#include "overlay.h" +#include "utils/overlay.h" #ifdef GTASA -#include "teleport.h" -#include "weapon.h" -#include "vehicle.h" +#include "pages/teleport.h" +#include "pages/weapon.h" +#include "pages/vehicle.h" #endif void Overlay::Init() diff --git a/src/overlay.h b/src/utils/overlay.h similarity index 100% rename from src/overlay.h rename to src/utils/overlay.h diff --git a/src/resourcestore.cpp b/src/utils/resourcestore.cpp similarity index 98% rename from src/resourcestore.cpp rename to src/utils/resourcestore.cpp index ca4fc9e..7ac3dfb 100644 --- a/src/resourcestore.cpp +++ b/src/utils/resourcestore.cpp @@ -1,5 +1,6 @@ -#include "extensions/Paths.h" #include "pch.h" +#include "resourcestore.h" +#include ResourceStore::ResourceStore(const char* text, eResourceType type, ImVec2 imageSize) : m_ImageSize(imageSize), m_Type(type), m_FileName(text) diff --git a/src/resourcestore.h b/src/utils/resourcestore.h similarity index 95% rename from src/resourcestore.h rename to src/utils/resourcestore.h index 57259f2..5d81b04 100644 --- a/src/resourcestore.h +++ b/src/utils/resourcestore.h @@ -1,9 +1,9 @@ #pragma once #include +#include #include -#include "datastore.h" -#include "../depend/imgui/imgui.h" -#include "d3d9.h" +#include "imgui/imgui.h" +#include "utils/datastore.h" struct RwD3D9Raster { diff --git a/src/rpc.cpp b/src/utils/rpc.cpp similarity index 98% rename from src/rpc.cpp rename to src/utils/rpc.cpp index 26c3f94..3df41ca 100644 --- a/src/rpc.cpp +++ b/src/utils/rpc.cpp @@ -1,8 +1,8 @@ #include "pch.h" #include "rpc.h" -#include "util.h" -#include "menu.h" -#include "vehicle.h" +#include "utils/util.h" +#include "pages/menu.h" +#include "pages/vehicle.h" #include "cheatmenu.h" // discord server ids diff --git a/src/rpc.h b/src/utils/rpc.h similarity index 100% rename from src/rpc.h rename to src/utils/rpc.h diff --git a/src/tasknames.cpp b/src/utils/tasknames.cpp similarity index 100% rename from src/tasknames.cpp rename to src/utils/tasknames.cpp diff --git a/src/timecycle.h b/src/utils/timecycle.h similarity index 100% rename from src/timecycle.h rename to src/utils/timecycle.h diff --git a/src/updater.cpp b/src/utils/updater.cpp similarity index 100% rename from src/updater.cpp rename to src/utils/updater.cpp diff --git a/src/updater.h b/src/utils/updater.h similarity index 100% rename from src/updater.h rename to src/utils/updater.h diff --git a/src/util.cpp b/src/utils/util.cpp similarity index 99% rename from src/util.cpp rename to src/utils/util.cpp index dd43913..10204da 100644 --- a/src/util.cpp +++ b/src/utils/util.cpp @@ -1,7 +1,7 @@ #include "pch.h" -#include "util.h" -#include "psapi.h" #include +#include +#include "util.h" void Util::SetMessage(const char *message, bool b1, bool b2, bool b3) { diff --git a/src/util.h b/src/utils/util.h similarity index 96% rename from src/util.h rename to src/utils/util.h index 7cb6e63..57f17c0 100644 --- a/src/util.h +++ b/src/utils/util.h @@ -1,6 +1,6 @@ #pragma once -#include "tchar.h" -#include "pdh.h" +#include +#include /* * Contains utility functions diff --git a/src/widget.cpp b/src/utils/widget.cpp similarity index 99% rename from src/widget.cpp rename to src/utils/widget.cpp index d6e2389..e920da8 100644 --- a/src/widget.cpp +++ b/src/utils/widget.cpp @@ -1,6 +1,6 @@ #include "pch.h" #include "widget.h" -#include "menu.h" +#include "pages/menu.h" static struct { diff --git a/src/widget.h b/src/utils/widget.h similarity index 100% rename from src/widget.h rename to src/utils/widget.h diff --git a/tools/premake5.lua b/tools/premake5.lua index 0033049..7e1724d 100644 --- a/tools/premake5.lua +++ b/tools/premake5.lua @@ -19,6 +19,68 @@ end ---------------------------- +function createProject(projectID) + upperID = string.upper(projectID) + pathExt = "" + if (projectID ~= "sa") then + pathExt = "_" .. projectID + end + + project ("CheatMenu" .. upperID) + kind "SharedLib" + targetextension ".asi" + + + includedirs { + PSDK_DIR .. "/plugin_" .. projectID .. "/", + PSDK_DIR .. "/plugin_" .. projectID .. "/game_" .. projectID .. "/", + PSDK_DIR .. "/shared/", + PSDK_DIR .. "/shared/game/" + } + + libdirs { + PSDK_DIR .. "/output/lib", + "lib" + } + + files { + "../src/**.h", + "../src/**.hpp", + "../src/**.c", + "../src/**.cpp" + } + + if upperID == "III" then + upperID = "3" + + linkoptions { + "/FORCE:MULTIPLE" + } + end + defines { + "GTA" .. upperID, + } + + pchheader "pch.h" + pchsource "../src/pch.cpp" + filter "files:..src/utils/**.cpp" + flags {"NoPCH"} + + filter "configurations:Debug" + symbols "On" + links { + "depend", + "plugin" .. pathExt .. "_d.lib", + } + + filter "configurations:Release" + optimize "On" + links { + "depend", + "plugin" .. pathExt.. ".lib", + } +end + workspace "CheatMenu" configurations { "Debug", "Release" } architecture "x86" @@ -41,6 +103,20 @@ workspace "CheatMenu" "urlmon" } + defines { + "IS_PLATFORM_WIN" , + "_CRT_SECURE_NO_WARNINGS", + "_CRT_NON_CONFORMING_SWPRINTFS", + "_DX9_SDK_INSTALLED", + "PLUGIN_SGV_10US", + "_GTA_" + } + + includedirs { + "../depend/", + "../src/", + } + project "depend" kind "StaticLib" @@ -52,241 +128,14 @@ project "depend" } filter "configurations:Debug" - defines { "DEBUG", "IS_PLATFORM_WIN" } + defines { "DEBUG" } symbols "On" filter "configurations:Release" - defines { "NDEBUG", "IS_PLATFORM_WIN" } + defines { "NDEBUG" } optimize "On" -project "CheatMenuIII" - kind "SharedLib" - targetextension ".asi" - - files { - "../src/cheatmenu.h", - "../src/cheatmenu.cpp", - "../src/pch.h", - "../src/pch.cpp", - "../src/d3dhook.h", - "../src/d3dhook.cpp", - "../src/updater.h", - "../src/updater.cpp", - "../src/datastore.h", - "../src/datastore.cpp", - "../src/widget.h", - "../src/widget.cpp", - "../src/log.h", - "../src/log.cpp", - "../src/util.h", - "../src/util.cpp", - "../src/menu.h", - "../src/menu.cpp", - "../src/player.h", - "../src/player.cpp", - "../src/animation.h", - "../src/animation.cpp", - "../src/teleport.h", - "../src/teleport.cpp", - "../src/ped.h", - "../src/ped.cpp", - "../src/resourcestore.h", - "../src/resourcestore.cpp", - "../src/fontmgr.h", - "../src/fontmgr.cpp", - "../src/hotkeys.h", - "../src/hotkeys.cpp", - "../src/vehicle.h", - "../src/vehicle.cpp", - "../src/weapon.h", - "../src/weapon.cpp", - "../src/game.h", - "../src/game.cpp", - "../src/timecyc.h", - "../src/visual.h", - "../src/visual.cpp", - "../src/filehandler.h", - "../src/filehandler.cpp", - "../src/dllmain.cpp", - "../src/locale.h", - "../src/locale.cpp", - "../src/rpc.h", - "../src/rpc.cpp", - "../src/overlay.h", - "../src/overlay.cpp", - "../src/tasknames.cpp" - } - includedirs { - PSDK_DIR .. "/plugin_III/", - PSDK_DIR .. "/plugin_III/game_III/", - PSDK_DIR .. "/shared/", - PSDK_DIR .. "/shared/game/" - } - libdirs (PSDK_DIR .. "/output/lib") - - defines { - "IS_PLATFORM_WIN" , - "_CRT_SECURE_NO_WARNINGS", - "_CRT_NON_CONFORMING_SWPRINTFS", - "GTA3", - "_DX9_SDK_INSTALLED", - "PLUGIN_SGV_10US" - } - - linkoptions { - "/FORCE:MULTIPLE" - } - - pchheader "pch.h" - pchsource "../src/pch.cpp" - - filter "configurations:Debug" - symbols "On" - links { - "depend", - "plugin_III_d.lib" - } - - filter "configurations:Release" - optimize "On" - links { - "depend", - "plugin_III.lib" - } - -project "CheatMenuVC" - kind "SharedLib" - targetextension ".asi" - - files { - "../src/cheatmenu.h", - "../src/cheatmenu.cpp", - "../src/pch.h", - "../src/pch.cpp", - "../src/d3dhook.h", - "../src/d3dhook.cpp", - "../src/updater.h", - "../src/updater.cpp", - "../src/datastore.h", - "../src/datastore.cpp", - "../src/animation.h", - "../src/animation.cpp", - "../src/teleport.h", - "../src/teleport.cpp", - "../src/player.h", - "../src/player.cpp", - "../src/ped.h", - "../src/ped.cpp", - "../src/widget.h", - "../src/widget.cpp", - "../src/log.h", - "../src/log.cpp", - "../src/vehicle.h", - "../src/vehicle.cpp", - "../src/util.h", - "../src/util.cpp", - "../src/menu.h", - "../src/menu.cpp", - "../src/weapon.h", - "../src/weapon.cpp", - "../src/game.h", - "../src/game.cpp", - "../src/visual.h", - "../src/visual.cpp", - "../src/resourcestore.h", - "../src/resourcestore.cpp", - "../src/fontmgr.h", - "../src/fontmgr.cpp", - "../src/filehandler.h", - "../src/filehandler.cpp", - "../src/hotkeys.h", - "../src/hotkeys.cpp", - "../src/dllmain.cpp", - "../src/locale.h", - "../src/locale.cpp", - "../src/rpc.h", - "../src/rpc.cpp", - "../src/overlay.h", - "../src/overlay.cpp", - "../src/tasknames.cpp" - } - includedirs { - PSDK_DIR .. "/plugin_vc/", - PSDK_DIR .. "/plugin_vc/game_vc/", - PSDK_DIR .. "/shared/", - PSDK_DIR .. "/shared/game/" - } - libdirs (PSDK_DIR .. "/output/lib") - - defines { - "IS_PLATFORM_WIN" , - "_CRT_SECURE_NO_WARNINGS", - "_CRT_NON_CONFORMING_SWPRINTFS", - "GTAVC", - "_DX9_SDK_INSTALLED", - "PLUGIN_SGV_10US" - } - - pchheader "pch.h" - pchsource "../src/pch.cpp" - - filter "configurations:Debug" - symbols "On" - links { - "depend", - "plugin_vc_d.lib" - } - - filter "configurations:Release" - optimize "On" - links { - "depend", - "plugin_vc.lib" - } - -project "CheatMenuSA" - kind "SharedLib" - targetextension ".asi" - - files { - "../src/**.h", - "../src/**.hpp", - "../src/**.cpp" - } - includedirs { - PSDK_DIR .. "/plugin_sa/", - PSDK_DIR .. "/plugin_sa/game_sa/", - PSDK_DIR .. "/shared/", - PSDK_DIR .. "/shared/game/" - } - libdirs { - PSDK_DIR .. "/output/lib", - "../depend/lib" - } - - defines { - "IS_PLATFORM_WIN" , - "_CRT_SECURE_NO_WARNINGS", - "_CRT_NON_CONFORMING_SWPRINTFS", - "GTASA", - "_DX9_SDK_INSTALLED", - "PLUGIN_SGV_10US" - } - - pchheader "pch.h" - pchsource "../src/pch.cpp" - - filter "configurations:Debug" - symbols "On" - links { - "depend", - "plugin_d.lib", - } - - filter "configurations:Release" - optimize "On" - links { - "depend", - "plugin.lib", - } - \ No newline at end of file +createProject("III") +createProject("sa") +createProject("vc") + \ No newline at end of file