From e7efd5935a4daad6465547ae78e018bb0603a0a9 Mon Sep 17 00:00:00 2001 From: Pelayori Date: Thu, 8 Apr 2021 23:36:34 +0200 Subject: [PATCH] Add project files. --- Crasher.cpp | 46 +++++++++++ Crasher.sln | 31 ++++++++ Crasher.vcxproj | 164 ++++++++++++++++++++++++++++++++++++++++ Crasher.vcxproj.filters | 22 ++++++ 4 files changed, 263 insertions(+) create mode 100644 Crasher.cpp create mode 100644 Crasher.sln create mode 100644 Crasher.vcxproj create mode 100644 Crasher.vcxproj.filters diff --git a/Crasher.cpp b/Crasher.cpp new file mode 100644 index 0000000..494149e --- /dev/null +++ b/Crasher.cpp @@ -0,0 +1,46 @@ +#include "API/ARK/Ark.h" + +#pragma comment(lib, "ArkApi.lib") + +void Rampage(APlayerController*, FString*, bool) +{ + TArray dummy; + + if (dummy[1].IsNumeric()) + LOG->info("There is something weird here..."); +} + +void RconRampage(RCONClientConnection*, RCONPacket*, UWorld*) +{ + Rampage(nullptr, nullptr, false); +} + +void Load() +{ + ArkApi::GetCommands().AddConsoleCommand("crasher.crash", &Rampage); + ArkApi::GetCommands().AddRconCommand("crasher.crash", &RconRampage); +} + +void Unload() +{ + ArkApi::GetCommands().RemoveConsoleCommand("crasher.crash"); + ArkApi::GetCommands().RemoveRconCommand("crasher.crash"); +} + +BOOL APIENTRY DllMain( HMODULE hModule, + DWORD ul_reason_for_call, + LPVOID lpReserved + ) +{ + switch (ul_reason_for_call) + { + case DLL_PROCESS_ATTACH: + Load(); + break; + case DLL_PROCESS_DETACH: + Unload(); + break; + } + return TRUE; +} + diff --git a/Crasher.sln b/Crasher.sln new file mode 100644 index 0000000..705260a --- /dev/null +++ b/Crasher.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30413.136 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Crasher", "Crasher.vcxproj", "{B58987FE-1BEB-4794-8CF8-EB0E070B5021}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {B58987FE-1BEB-4794-8CF8-EB0E070B5021}.Debug|x64.ActiveCfg = Debug|x64 + {B58987FE-1BEB-4794-8CF8-EB0E070B5021}.Debug|x64.Build.0 = Debug|x64 + {B58987FE-1BEB-4794-8CF8-EB0E070B5021}.Debug|x86.ActiveCfg = Debug|Win32 + {B58987FE-1BEB-4794-8CF8-EB0E070B5021}.Debug|x86.Build.0 = Debug|Win32 + {B58987FE-1BEB-4794-8CF8-EB0E070B5021}.Release|x64.ActiveCfg = Release|x64 + {B58987FE-1BEB-4794-8CF8-EB0E070B5021}.Release|x64.Build.0 = Release|x64 + {B58987FE-1BEB-4794-8CF8-EB0E070B5021}.Release|x86.ActiveCfg = Release|Win32 + {B58987FE-1BEB-4794-8CF8-EB0E070B5021}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {8FA28C05-7875-4E95-B412-151FA7F3DB5E} + EndGlobalSection +EndGlobal diff --git a/Crasher.vcxproj b/Crasher.vcxproj new file mode 100644 index 0000000..11d0469 --- /dev/null +++ b/Crasher.vcxproj @@ -0,0 +1,164 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {b58987fe-1beb-4794-8cf8-eb0e070b5021} + Crasher + 10.0 + + + + DynamicLibrary + true + v142 + Unicode + + + DynamicLibrary + false + v142 + true + Unicode + + + DynamicLibrary + true + v142 + Unicode + + + DynamicLibrary + false + v142 + true + Unicode + + + + + + + + + + + + + + + + + + + + + true + + + false + + + true + + + false + + + + Level3 + true + WIN32;_DEBUG;CRASHER_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) + true + Use + pch.h + + + Windows + true + false + + + + + Level3 + true + true + true + WIN32;NDEBUG;CRASHER_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) + true + Use + pch.h + + + Windows + true + true + true + false + + + + + Level3 + true + _DEBUG;CRASHER_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) + true + Use + pch.h + + + Windows + true + false + + + + + Level3 + true + true + true + NDEBUG;CRASHER_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) + true + Use + pch.h + stdcpp17 + J:\ARK-Server-API-master\1 My Plugins\Crasher;J:\ARK-Server-API-master\ARK-Server-API\version\Core\Public;%(AdditionalIncludeDirectories) + + + Windows + true + true + true + false + J:\ARK-Server-API-master\ARK-Server-API\out_lib;%(AdditionalLibraryDirectories) + + + + + NotUsing + + + + + + \ No newline at end of file diff --git a/Crasher.vcxproj.filters b/Crasher.vcxproj.filters new file mode 100644 index 0000000..972e4c8 --- /dev/null +++ b/Crasher.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + Source Files + + + \ No newline at end of file