Skip to content

Commit f5f36ee

Browse files
committed
New SDKs added
1 parent eaae833 commit f5f36ee

4 files changed

Lines changed: 72 additions & 24 deletions

File tree

.github/workflows/build.yml

Lines changed: 48 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -72,22 +72,22 @@ jobs:
7272
echo "CXX=clang++" >> $GITHUB_ENV
7373
7474
- name: Checking out SourceMod
75-
uses: actions/checkout@v6
75+
uses: actions/checkout@v7
7676
with:
7777
repository: alliedmodders/sourcemod
7878
ref: ${{ matrix.sm_branch }}
7979
path: sourcemod-${{ matrix.sm_version }}
8080
submodules: recursive
8181

8282
- name: Checking out MM:Source
83-
uses: actions/checkout@v6
83+
uses: actions/checkout@v7
8484
with:
8585
repository: alliedmodders/metamod-source
8686
ref: ${{ matrix.mm_branch }}
8787
path: metamod-${{ matrix.mm_version }}
8888

8989
- name: Setting up Python
90-
uses: actions/setup-python@v6
90+
uses: actions/setup-python@v7
9191
with:
9292
python-version: '3.12'
9393

@@ -97,55 +97,90 @@ jobs:
9797
pip install git+https://github.com/accelerator74/ambuild@nog3
9898
9999
- name: Checking out hl2sdk-l4d2
100-
uses: actions/checkout@v6
100+
uses: actions/checkout@v7
101101
with:
102102
repository: alliedmodders/hl2sdk
103103
ref: l4d2
104104
path: hl2sdk-l4d2
105105

106106
- name: Checking out hl2sdk-l4d
107-
uses: actions/checkout@v6
107+
uses: actions/checkout@v7
108108
with:
109109
repository: alliedmodders/hl2sdk
110110
ref: l4d
111111
path: hl2sdk-l4d
112112

113113
- name: Checking out hl2sdk-css
114-
uses: actions/checkout@v6
114+
uses: actions/checkout@v7
115115
with:
116116
repository: alliedmodders/hl2sdk
117117
ref: css
118118
path: hl2sdk-css
119119

120120
- name: Checking out hl2sdk-tf2
121-
uses: actions/checkout@v6
121+
uses: actions/checkout@v7
122122
with:
123123
repository: alliedmodders/hl2sdk
124124
ref: tf2
125125
path: hl2sdk-tf2
126126

127127
- name: Checking out hl2sdk-csgo
128-
uses: actions/checkout@v6
128+
uses: actions/checkout@v7
129129
with:
130130
repository: alliedmodders/hl2sdk
131131
ref: csgo
132132
path: hl2sdk-csgo
133133

134134
- name: Checking out hl2sdk-hl2dm
135-
uses: actions/checkout@v6
135+
uses: actions/checkout@v7
136136
with:
137137
repository: alliedmodders/hl2sdk
138138
ref: hl2dm
139139
path: hl2sdk-hl2dm
140140

141+
- name: Checking out hl2sdk-dods
142+
uses: actions/checkout@v7
143+
with:
144+
repository: alliedmodders/hl2sdk
145+
ref: dods
146+
path: hl2sdk-dods
147+
148+
- name: Checking out hl2sdk-sdk2013
149+
uses: actions/checkout@v7
150+
with:
151+
repository: alliedmodders/hl2sdk
152+
ref: sdk2013
153+
path: hl2sdk-sdk2013
154+
155+
- name: Checking out hl2sdk-bms
156+
uses: actions/checkout@v7
157+
with:
158+
repository: alliedmodders/hl2sdk
159+
ref: bms
160+
path: hl2sdk-bms
161+
162+
- name: Checking out hl2sdk-insurgency
163+
uses: actions/checkout@v7
164+
with:
165+
repository: alliedmodders/hl2sdk
166+
ref: insurgency
167+
path: hl2sdk-insurgency
168+
169+
- name: Checking out hl2sdk-gmod
170+
uses: actions/checkout@v7
171+
with:
172+
repository: alliedmodders/hl2sdk
173+
ref: gmod
174+
path: hl2sdk-gmod
175+
141176
- name: Checking out hl2sdk-manifests
142-
uses: actions/checkout@v6
177+
uses: actions/checkout@v7
143178
with:
144179
repository: alliedmodders/hl2sdk-manifests
145180
path: hl2sdk-manifests
146181

147182
- name: Checking out own repository
148-
uses: actions/checkout@v6
183+
uses: actions/checkout@v7
149184
with:
150185
path: src
151186

@@ -159,7 +194,7 @@ jobs:
159194
ambuild
160195
161196
- name: Uploading package
162-
uses: actions/upload-artifact@v5
197+
uses: actions/upload-artifact@v7
163198
with:
164199
name: ${{ github.event.repository.name }}-sm${{ matrix.sm_version }}-${{ matrix.os_short }}-${{ env.GITHUB_SHA_SHORT }}
165200
path: src/build/package
@@ -172,7 +207,7 @@ jobs:
172207

173208
steps:
174209
- name: Download artifacts
175-
uses: actions/download-artifact@v6
210+
uses: actions/download-artifact@v8
176211

177212
- name: Package
178213
run: |

extension.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ CDetour *g_pDetour = 0;
1212

1313
unordered_set<string> szStrings;
1414

15-
#if SOURCE_ENGINE >= SE_LEFT4DEAD2
15+
#if defined(SIG_LINUX) || defined(SIG_WINDOWS)
1616
DETOUR_DECL_MEMBER4(Detour_LogDirect, LoggingResponse_t, LoggingChannelID_t, channelID, LoggingSeverity_t, severity, Color, color, const tchar *, pMessage)
1717
{
1818
for (const auto& str : szStrings) {
@@ -85,7 +85,7 @@ bool Cleaner::SDK_OnLoad(char *error, size_t maxlength, bool late)
8585
cleanerConfig.close();
8686

8787
// init our detours
88-
#if SOURCE_ENGINE >= SE_LEFT4DEAD2
88+
#if defined(SIG_LINUX) || defined(SIG_WINDOWS)
8989
#ifdef PLATFORM_WINDOWS
9090
HMODULE tier0 = GetModuleHandle(TIER0_NAME);
9191
void * fn = memutils->FindPattern(tier0, SIG_WINDOWS, SIG_WIN_SIZE);

sigs.h

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,27 @@
22
#define _SIGS_H_
33

44
#if SOURCE_ENGINE == SE_CSGO
5-
#define SIG_WINDOWS "\x55\x8B\xEC\x83\xE4\xF8\x8B\x45\x08\x83\xEC\x14"
6-
#define SIG_WIN_SIZE 12
7-
#define SIG_LINUX "LoggingSystem_Log"
8-
#define SIG_LINUX_OFFSET 576
5+
6+
#define SIG_WINDOWS "\x55\x8B\xEC\x83\xE4\xF8\x8B\x45\x08\x83\xEC\x14"
7+
#define SIG_WIN_SIZE 12
8+
9+
#define SIG_LINUX "LoggingSystem_Log"
10+
#define SIG_LINUX_OFFSET 576
11+
912
#elif SOURCE_ENGINE == SE_LEFT4DEAD2
10-
#define SIG_WINDOWS "\x55\x8B\xEC\x83\xEC\x1C\xA1\x2A\x2A\x2A\x2A"
11-
#define SIG_WIN_SIZE 11
12-
#define SIG_LINUX "_ZN14CLoggingSystem9LogDirectEi17LoggingSeverity_t5ColorPKc"
13+
14+
#define SIG_WINDOWS "\x55\x8B\xEC\x83\xEC\x1C\xA1\x2A\x2A\x2A\x2A"
15+
#define SIG_WIN_SIZE 11
16+
17+
#define SIG_LINUX "_ZN14CLoggingSystem9LogDirectEi17LoggingSeverity_t5ColorPKc"
18+
19+
#elif SOURCE_ENGINE == SE_INSURGENCY
20+
21+
#define SIG_WINDOWS "\x55\x8B\xEC\x83\xEC\x14\x8B\x45\x08"
22+
#define SIG_WIN_SIZE 9
23+
24+
#define SIG_LINUX "_ZN14CLoggingSystem9LogDirectEi17LoggingSeverity_t5ColorPKc"
25+
1326
#endif
1427

1528
#endif // _SIGS_H_

smsdk_config.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@
4040
/* Basic information exposed publicly */
4141
#define SMEXT_CONF_NAME "Console Cleaner"
4242
#define SMEXT_CONF_DESCRIPTION "Console warning suppressor"
43-
#define SMEXT_CONF_VERSION "1.4.0"
43+
#define SMEXT_CONF_VERSION "1.5.0"
4444
#define SMEXT_CONF_AUTHOR "Accelerator, Zephyrus"
45-
#define SMEXT_CONF_URL "https://github.com/Accelerator74/Cleaner"
45+
#define SMEXT_CONF_URL "https://github.com/accelerator74/Cleaner"
4646
#define SMEXT_CONF_LOGTAG "Cleaner"
4747
#define SMEXT_CONF_LICENSE "GPLv3"
4848
#define SMEXT_CONF_DATESTRING __DATE__

0 commit comments

Comments
 (0)