diff --git a/.gitignore b/.gitignore index 336c182..71587c1 100644 --- a/.gitignore +++ b/.gitignore @@ -34,3 +34,62 @@ tools/CheatMenu.sln tools/Depend.vcxproj tools/CheatMenu.vcxproj tools/Depend.vcxproj.filters +build/CheatMenu.sln +build/CheatMenu.vcxproj +build/Depend.vcxproj +build/Depend.vcxproj.filters +build/bin/Depend.lib +build/bin/Depend.pdb +build/obj/Win32/Release/CheatMenu/Animation.obj +build/obj/Win32/Release/CheatMenu/CheatMenu.asi.recipe +build/obj/Win32/Release/CheatMenu/CheatMenu.obj +build/obj/Win32/Release/CheatMenu/CheatMenu.pch +build/obj/Win32/Release/CheatMenu/Game.obj +build/obj/Win32/Release/CheatMenu/Hook.obj +build/obj/Win32/Release/CheatMenu/Json.obj +build/obj/Win32/Release/CheatMenu/Menu.obj +build/obj/Win32/Release/CheatMenu/MoreEvents.obj +build/obj/Win32/Release/CheatMenu/Neon.obj +build/obj/Win32/Release/CheatMenu/Paint.obj +build/obj/Win32/Release/CheatMenu/pch.obj +build/obj/Win32/Release/CheatMenu/Ped.obj +build/obj/Win32/Release/CheatMenu/Player.obj +build/obj/Win32/Release/CheatMenu/Teleport.obj +build/obj/Win32/Release/CheatMenu/Ui.obj +build/obj/Win32/Release/CheatMenu/Updater.obj +build/obj/Win32/Release/CheatMenu/Util.obj +build/obj/Win32/Release/CheatMenu/vc142.pdb +build/obj/Win32/Release/CheatMenu/Vehicle.obj +build/obj/Win32/Release/CheatMenu/Visual.obj +build/obj/Win32/Release/CheatMenu/Weapon.obj +build/obj/Win32/Release/CheatMenu/CheatMenu.tlog/CheatMenu.lastbuildstate +build/obj/Win32/Release/CheatMenu/CheatMenu.tlog/CL.command.1.tlog +build/obj/Win32/Release/CheatMenu/CheatMenu.tlog/CL.read.1.tlog +build/obj/Win32/Release/CheatMenu/CheatMenu.tlog/CL.write.1.tlog +build/obj/Win32/Release/CheatMenu/CheatMenu.tlog/link.command.1.tlog +build/obj/Win32/Release/CheatMenu/CheatMenu.tlog/link.read.1.tlog +build/obj/Win32/Release/CheatMenu/CheatMenu.tlog/link.write.1.tlog +build/obj/Win32/Release/Depend/buffer.obj +build/obj/Win32/Release/Depend/Depend.lib.recipe +build/obj/Win32/Release/Depend/hde32.obj +build/obj/Win32/Release/Depend/hook.obj +build/obj/Win32/Release/Depend/IDaccess.obj +build/obj/Win32/Release/Depend/imgui_demo.obj +build/obj/Win32/Release/Depend/imgui_draw.obj +build/obj/Win32/Release/Depend/imgui_impl_dx9.obj +build/obj/Win32/Release/Depend/imgui_impl_dx11.obj +build/obj/Win32/Release/Depend/imgui_impl_win32.obj +build/obj/Win32/Release/Depend/imgui_tables.obj +build/obj/Win32/Release/Depend/imgui_widgets.obj +build/obj/Win32/Release/Depend/imgui.obj +build/obj/Win32/Release/Depend/kiero.obj +build/obj/Win32/Release/Depend/Library.obj +build/obj/Win32/Release/Depend/Main.obj +build/obj/Win32/Release/Depend/trampoline.obj +build/obj/Win32/Release/Depend/Depend.tlog/CL.command.1.tlog +build/obj/Win32/Release/Depend/Depend.tlog/CL.read.1.tlog +build/obj/Win32/Release/Depend/Depend.tlog/CL.write.1.tlog +build/obj/Win32/Release/Depend/Depend.tlog/Depend.lastbuildstate +build/obj/Win32/Release/Depend/Depend.tlog/Lib-link.read.1.tlog +build/obj/Win32/Release/Depend/Depend.tlog/Lib-link.write.1.tlog +build/obj/Win32/Release/Depend/Depend.tlog/Lib.command.1.tlog diff --git a/tools/Release.bat b/Build.bat similarity index 92% rename from tools/Release.bat rename to Build.bat index 28a6891..ae28769 100644 --- a/tools/Release.bat +++ b/Build.bat @@ -1,4 +1,6 @@ @echo off premake5.exe vs2019 +cd build call "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\Common7\Tools\VsDevCmd.bat" MsBuild CheatMenu.sln /property:Configuration=Release +cd .. diff --git a/tools/premake5.exe b/premake5.exe similarity index 100% rename from tools/premake5.exe rename to premake5.exe diff --git a/tools/premake5.lua b/premake5.lua similarity index 81% rename from tools/premake5.lua rename to premake5.lua index 24f6399..e0f2d3b 100644 --- a/tools/premake5.lua +++ b/premake5.lua @@ -17,23 +17,24 @@ end ---------------------------- workspace "CheatMenu" - configurations { "Debug", "Release" } - architecture "x86" - platforms "Win32" - language "C++" - cppdialect "C++20" - characterset "MBCS" - staticruntime "On" + configurations { "Debug", "Release" } + architecture "x86" + platforms "Win32" + language "C++" + cppdialect "C++20" + characterset "MBCS" + staticruntime "On" + location "build" project "Depend" kind "StaticLib" - targetdir "build" + targetdir "build/bin" files { - "../depned/**.h", - "../depend/**.hpp", - "../depend/**.c", - "../depend/**.cpp" + "depned/**.h", + "depend/**.hpp", + "depend/**.c", + "depend/**.cpp" } libdirs (PSDK_DIR .. "/output/lib") @@ -51,9 +52,9 @@ project "CheatMenu" targetextension ".asi" files { - "../src/**.h", - "../src/**.hpp", - "../src/**.cpp" + "src/**.h", + "src/**.hpp", + "src/**.cpp" } includedirs { PSDK_DIR .. "/plugin_sa/", @@ -74,7 +75,7 @@ project "CheatMenu" } pchheader "pch.h" - pchsource "../src/pch.cpp" + pchsource "src/pch.cpp" filter "configurations:Debug" symbols "On" diff --git a/src/Animation.h b/src/Animation.h index d083154..e342f75 100644 --- a/src/Animation.h +++ b/src/Animation.h @@ -1,4 +1,6 @@ #pragma once +#include "pch.h" + class Animation { private: diff --git a/tools/Debug.bat b/tools/Debug.bat deleted file mode 100644 index 210e583..0000000 --- a/tools/Debug.bat +++ /dev/null @@ -1,4 +0,0 @@ -@echo off -premake5.exe vs2019 -call "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\Common7\Tools\VsDevCmd.bat" -MsBuild CheatMenu.sln /property:Configuration=Debug \ No newline at end of file