Refactored Main::Loops into APalPlayerCharacter::Tick, so that it won't crash at the menu.

Added dying check to ReviveLocalPlayer, so that it actually revives them.
Added proper item list and searcher database that isn't a giant mess.
This commit is contained in:
gir489returns
2024-01-29 01:03:47 -05:00
parent 8fe0efa5e7
commit 53ce9959af
8 changed files with 701 additions and 11 deletions

View File

@ -7,14 +7,6 @@
#include "include/D3D11Window.hpp"
#include "include/Hooking.hpp"
using namespace DX11_Base;
void ClientBGThread()
{
while (g_Running) {
g_Menu->Loops();
std::this_thread::sleep_for(1ms);
std::this_thread::yield();
}
}
DWORD WINAPI MainThread_Initialize()
{
@ -37,7 +29,6 @@ DWORD WINAPI MainThread_Initialize()
g_Console->printdbg("Main::Initialized\nUWorld:\t0x%llX\n", Console::Colors::green, Config.gWorld);
#endif
std::thread WCMUpdate(ClientBGThread); // Initialize Loops Thread
/// RENDER LOOP
g_Running = TRUE;
while (g_Running)
@ -51,7 +42,6 @@ DWORD WINAPI MainThread_Initialize()
}
/// EXIT
WCMUpdate.join(); // Exit Loops Thread
FreeLibraryAndExitThread(g_hModule, EXIT_SUCCESS);
return EXIT_SUCCESS;
}