Skip to content

Commit f3acdf0

Browse files
committed
Removed mem debug header inclusion, its not needed
1 parent 82b603c commit f3acdf0

6 files changed

Lines changed: 3 additions & 18 deletions

File tree

discordrpc.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
#include <iostream>
1717
#include <thread>
1818

19-
// memdbgon must be the last include file in a .cpp file!!!
20-
#include "tier0/memdbgon.h"
19+
2120

2221
/**
2322
* @brief Log Discord GameSDK logs to the console.

globals.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
#include "sdk.hpp"
1010
#include "p2mm.hpp"
1111

12-
// memdbgon must be the last include file in a .cpp file!!!
13-
#include "tier0/memdbgon.h"
12+
1413

1514
//---------------------------------------------------------------------------------
1615
// Purpose: Logging for the plugin by adding a prefix and line break.
@@ -516,7 +515,7 @@ const std::vector<MapParams> APERTURE_TAG_CAMPAIGN_MAPS =
516515
{.mapFile= "gg_all_puzzle2", .mapName= "Portals 2", .chapter= 3, .chapterName= "No More Recycling Tests"},
517516
{.mapFile= "gg_all2_puzzle1", .mapName= "Future Starter", .chapter= 3, .chapterName= "No More Recycling Tests"},
518517
{.mapFile= "gg_all_puzzle1", .mapName= "Final Qualification", .chapter= 3, .chapterName= "No More Recycling Tests"},
519-
{.mapFile= "gg_all2_escape1", .mapName= "ALSSER/Escape", .chapter= 3, .chapterName= "No More Recycling Tests"},
518+
{.mapFile= "gg_all2_escape", .mapName= "ALSSER/Escape", .chapter= 3, .chapterName= "No More Recycling Tests"},
520519
{.mapFile= "gg_stage_reveal", .mapName= "Reveal", .chapter= 4, .chapterName= "The Stage"},
521520
{.mapFile= "gg_stage_bridgebounce_2", .mapName= "Bridge Bounce", .chapter= 4, .chapterName= "The Stage"},
522521
{.mapFile= "gg_stage_redfirst", .mapName= "Red First", .chapter= 4, .chapterName= "The Stage"},

p2mm.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616

1717
#include <Windows.h>
1818

19-
// memdbgon must be the last include file in a .cpp file!!!
20-
#include "tier0/memdbgon.h"
21-
2219
extern ConVar p2mm_discord_rpc;
2320
extern ConVar p2mm_discord_webhooks;
2421

@@ -438,7 +435,6 @@ bool CP2MMServerPlugin::Load(CreateInterfaceFn interfaceFactory, const CreateInt
438435
Memory::Scanner::Scan<void*>(ENGINEDLL, "55 8B EC 83 EC 08 53 56 57 8B F1 E8 ?? ?? ?? ?? 8B"),
439436
&CSteam3Server__OnGSClientDenyHelper_hook, reinterpret_cast<void**>(&CSteam3Server__OnGSClientDenyHelper_orig)
440437
);
441-
442438

443439
if (!this->m_bP2SMPluginLoaded)
444440
{

scanner.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@
2020

2121
#include "globals.hpp"
2222

23-
// memdbgon must be the last include file in a .cpp file!!!
24-
#include "tier0/memdbgon.h"
25-
2623
namespace Memory {
2724
#ifndef _WIN32
2825
inline void __cpuidex(int cpuid[4], int function, int subleaf) {

sdk.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010
#include "p2mm.hpp"
1111
#include "commands.hpp"
1212

13-
// memdbgon must be the last include file in a .cpp file!!!
14-
#include "tier0/memdbgon.h"
15-
1613
// NoSteamLogon stop hook.
1714
void (__fastcall* CSteam3Server__OnGSClientDenyHelper_orig)(CSteam3Server* thisptr, void* edx, CBaseClient* cl, void* eDenyReason, const char* pchOptionalText);
1815
void __fastcall CSteam3Server__OnGSClientDenyHelper_hook(CSteam3Server* thisptr, void* edx, CBaseClient* cl, void* eDenyReason, const char* pchOptionalText)

vscript.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99
#include "commands.hpp"
1010
#include "p2mm.hpp"
1111

12-
// memdbgon must be the last include file in a .cpp file!!!
13-
#include "tier0/memdbgon.h"
14-
1512
//---------------------------------------------------------------------------------
1613
// Purpose: Logging for the P2MM VScript. The log message must be passed as a string or it will error.
1714
//---------------------------------------------------------------------------------

0 commit comments

Comments
 (0)