Skip to content

Commit a26c082

Browse files
committed
fix: Added Valve color file to loggingsystem header and moved version macro
1 parent 2b8361d commit a26c082

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

src/globals.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ class CBaseEntity;
2626
class CWorkshopManager;
2727
class CEnvProjectedTexture;
2828

29-
// Color macros for console printing.
30-
#define P2SMPLUSPLUS_PLUGIN_VERSION "1.2.0 PREVIEW" // Update this when a new version of the plugin is released.
31-
3229
#define CUR_MAPFILE_NAME STRING(g_pGlobals->mapname)
3330
#define MAX_PLAYERS g_pGlobals->maxClients
3431

src/p2sm.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ bool CP2SMPlusPlusPlugin::Load(CreateInterfaceFn interfaceFactory, CreateInterfa
158158
Memory::ReplacePattern("engine", "0F 85 47 0C 00 00 80 BF 10 02 00 00 00 0F 84 3A 0C 00 00", "0F 84 47 0C 00 00 80 BF 10 02 00 00 00 0F 85 3A 0C 00 00"); // Make volumetrics work for projected textures.
159159

160160

161-
#else // Linux Hooking. Due to the way this plugin is structured, it's currently not possible to compile this for Linux. Literally 1984 I know, but I don't have enough time or experience to figure it out by myself. One day.
161+
#else // Linux Patching. Due to the way this plugin is structured, it's currently not possible to compile this for Linux. Literally 1984 I know, but I don't have enough time or experience to figure it out by myself. One day.
162162
#endif
163163

164164
#if _WIN32

src/p2sm.hpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,13 @@
77

88
#pragma once
99

10+
#ifndef P2SM_HPP
11+
#define P2SM_HPP
12+
1013
#include "engine/iserverplugin.h"
1114

15+
#define P2SMPLUSPLUS_PLUGIN_VERSION "1.2.0 PREVIEW" // Update this when a new version of the plugin is released.
16+
1217
//---------------------------------------------------------------------------------
1318
// Purpose: P2SourceModPlusPlus server plugin class
1419
//---------------------------------------------------------------------------------
@@ -50,4 +55,6 @@ class CP2SMPlusPlusPlugin : public IServerPluginCallbacks
5055
bool m_bNoUnload;
5156
};
5257

53-
static CP2SMPlusPlusPlugin g_P2SMPlusPlusPlugin;
58+
static CP2SMPlusPlusPlugin g_P2SMPlusPlusPlugin;
59+
60+
#endif

src/utils/loggingsystem.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
#ifndef LOGGING_HPP
1111
#define LOGGING_HPP
1212

13+
#include <color.h>
14+
15+
// Move this color to a LoggingSystem channel.
1316
#define P2SMPLUSPLUS_PLUGIN_CONSOLE_COLOR Color(100, 192, 252, 255) // Light Blue
1417

1518
#undef ERROR // ERROR is a Windows header defined macro that is interfering with the enum below

0 commit comments

Comments
 (0)