Exemplo n.º 1
0
	void ApplyRequired()
	{
		UnprotectMemory();
		Core::ApplyAll();
		Memory::ApplyAll();
		Mouse::ApplyAll();
		Network::ApplyAll();
		Scoreboard::ApplyAll();
		Ui::ApplyAll();
		VirtualKeyboard::ApplyAll();
		Armor::ApplyAll();
		RawInput::ApplyAll();
		ContentItems::ApplyAll();
		PlayerUid::ApplyAll();
		Input::ApplyAll();
		Forge::ApplyAll();
		CustomPackets::ApplyAll();
		Logging::ApplyAll();
		Events::ApplyAll();
		LoadingScreen::ApplyAll();
		
		//Since these patches are happening before ED gets initalized, we dont know if we are in dedi mode or not. 
		bool isdedicated = false;
		int numArgs = 0;
		LPWSTR* szArgList = CommandLineToArgvW(GetCommandLineW(), &numArgs);
		for (int i = 1; i < numArgs; i++)
		{
			std::wstring arg = std::wstring(szArgList[i]);
			if (arg.compare(L"-headless") == 0 || arg.compare(L"-dedicated") == 0)
				isdedicated = true;
		}

		if (!isdedicated)
			DirectXHook::applyPatches();
	}
Exemplo n.º 2
0
	void ApplyRequired()
	{
		UnprotectMemory();
		Core::ApplyAll();
		Mouse::ApplyAll();
		Network::ApplyAll();
		Scoreboard::ApplyAll();
		Ui::ApplyAll();
		VirtualKeyboard::ApplyAll();
		Armor::ApplyAll();
		RawInput::ApplyAll();
		ContentItems::ApplyAll();
		PlayerUid::ApplyAll();
		KeyboardInput::ApplyAll();
		Forge::ApplyAll();
	}
Exemplo n.º 3
0
	void ApplyRequired()
	{
		UnprotectMemory();
		Hf2pExperimental::ApplyAll();
		Core::ApplyAll();
		Audio::ApplyAll();
		Memory::ApplyAll();
		Mouse::ApplyAll();
		Network::ApplyAll();
		Scoreboard::ApplyAll();
		Ui::ApplyAll();
		VirtualKeyboard::ApplyAll();
		RawInput::ApplyAll();
		ContentItems::ApplyAll();
		PlayerUid::ApplyAll();
		Input::ApplyAll();
		Forge::ApplyAll();
		CustomPackets::ApplyAll();
		Logging::ApplyAll();
		Events::ApplyAll();
		LoadingScreen::ApplyAll();
		Equipment::ApplyAll();
		Weapon::ApplyAll();
		Spectate::ApplyAll();
		Medals::ApplyAll();
		Simulation::ApplyAll();
		Camera::ApplyAll();
		Maps::ApplyAll();

		Network::PlayerPropertiesExtender::Instance().Add(std::make_shared<Game::Armor::ArmorExtension>());

		PlayerRepresentation::ApplyAll();

		//Since these patches are happening before ED gets initalized, we dont know if we are in dedi mode or not.
		bool isdedicated = false;
		int numArgs = 0;
		LPWSTR* szArgList = CommandLineToArgvW(GetCommandLineW(), &numArgs);
		for (int i = 1; i < numArgs; i++)
		{
			std::wstring arg = std::wstring(szArgList[i]);
			if (arg.compare(L"-headless") == 0 || arg.compare(L"-dedicated") == 0)
				isdedicated = true;
		}

		if (!isdedicated)
			DirectXHook::ApplyAll();
	}
Exemplo n.º 4
0
 scoped_unprotect(memory_pointer_tr addr, size_t size)
 {
     if(size == 0) bUnprotected = false;
     else          bUnprotected = UnprotectMemory(this->addr = addr.get<void>(), this->size = size, dwOldProtect);
 }