unsloppify comments

This commit is contained in:
DubbleClick
2026-06-08 17:44:00 +07:00
parent 17c7d5bdfc
commit b34da98139
5 changed files with 7 additions and 27 deletions
-9
View File
@@ -2,17 +2,8 @@
#include <d3d9.h>
// Hooks the IDirect3D9(Ex) CreateDevice slot on the real object returned by
// Direct3DCreate9(Ex); `is_ex` also hooks CreateDeviceEx. Requires a prior
// MH_Initialize() (done in dll_main).
void InstallD3D9Hooks(IDirect3D9* d3d9, bool is_ex);
// Reverts every gMod hook, leaving the host process as it was. Safe if nothing
// was hooked.
void RemoveAllD3D9Hooks();
// Registers a device that already existed when gMod was injected, so the
// CreateDevice hook never ran: hooks its vtable and stands up a TextureClient.
// Textures created from here on are modded; pre-existing ones stay unknown.
// Returns false if the device is null or already registered.
bool RegisterExistingDevice(IDirect3DDevice9* device);
+2 -3
View File
@@ -3,9 +3,8 @@
#include <d3d9.h>
#include "Defines.h"
// Per-texture side-state, kept in lookups keyed by the real texture pointer (see
// D3D9Hooks.h). Holding it out-of-band leaves the game's own objects untouched,
// so reverting the vtable hooks fully detaches gMod.
// Per-texture side-state, keyed by the real texture pointer (see D3D9Hooks.h).
// Held out-of-band so reverting the vtable hooks fully detaches gMod.
enum class TexType {
Tex2D,
-2
View File
@@ -17,8 +17,6 @@
#include "Defines.h"
#include "Error.h"
// gMod no longer subclasses the D3D9 interfaces; it hooks their vtable slots and
// keeps per-object side-state in lookups (see D3D9State.h / D3D9Hooks.h).
#include "D3D9State.h"
#pragma warning(disable : 4477)