Changed path to Config.h

This commit is contained in:
Unknown 2024-08-09 23:55:30 +02:00
parent 8d474ffbac
commit 1eb372e8fc
2 changed files with 8 additions and 8 deletions

View File

@ -3,7 +3,7 @@
#include <unordered_map>
#include <format>
#include <functional>
#include "Config.h"
#include "Config/Config.h"
namespace Backend {
using EventHandler = std::function<void()>;
@ -393,7 +393,7 @@ namespace Settings {
bool BringAllItems = false; // Noch nichts
bool RevivePlayer = false;// Noch nichts
bool NoCams = false;
bool HideWalls = false;
bool HideDoors = false;
bool PlayerFly = false;
bool PeacefullMode = false;
bool Spawner_ = false;

View File

@ -6,7 +6,7 @@
#include "Out/IncludeFile.h"
#include "Cheat.h"
#include "Config.h"
#include "Config/Config.h"
FILE* ConsoleFile = nullptr;
@ -381,13 +381,13 @@ void ProcessEventHook(SDK::UObject* Obj, SDK::UFunction* Function, void* Parms)
std::wstring NewName = paramsServerChangeName->S.ToWString();
auto world = Cheat::Engine->GameViewport->World;
bool IsLocalHost = false;
bool IsLocalPlayer = false;
if (auto LocalPlayer = world->OwningGameInstance->LocalPlayers[0]; LocalPlayer && LocalPlayer->PlayerController) {
IsLocalHost = (CallingController == LocalPlayer->PlayerController);
IsLocalPlayer = (CallingController == LocalPlayer->PlayerController);
}
if (!IsLocalHost) {
if (!IsLocalPlayer) {
for (size_t i = 0; i < PlayerNameChanges.size(); i++)
{
if (PlayerNameChanges[i].first == CallingController) {
@ -610,7 +610,7 @@ void MainRender(SDK::UObject* object, SDK::UCanvas* Canvas) {
CWINGui::SliderFloat(L"Flyspeed (Boat & Player)", &Settings::PlayerFlySpeedY, 0.01f, 1000.0f);
if (CWINGui::Button(L"Hide Doors", SDK::FVector2D{ 110, 35 })) {
Settings::ActorEvent = true;
Settings::HideWalls = true;
Settings::HideDoors = true;
}
//if (CWINGui::Button(L"Force Admin", SDK::FVector2D{ 110, 35 })) {
// Settings::ForceAdmin = true;
@ -1365,7 +1365,7 @@ void ExitCheat() {
MH_Uninitialize();
//Not Working! Fix else keep massive memory leak!
//Not Working! Fix else keep massive memory leak! (like 1.2kb which is okay i think)
for (SDK::UTexture2D* texture : GifBackground->TextureArray)
{
//Mark Textures as Garbage then set to nullptr