Skip to content

Commit 40c643e

Browse files
committed
hopefully fix crashing with cs# loaded
1 parent 6e32671 commit 40c643e

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

src/cleanercs2.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ const char *CleanerPlugin::GetLicense()
238238

239239
const char *CleanerPlugin::GetVersion()
240240
{
241-
return "1.0.0";
241+
return "1.0.1";
242242
}
243243

244244
const char *CleanerPlugin::GetDate()
@@ -248,17 +248,17 @@ const char *CleanerPlugin::GetDate()
248248

249249
const char *CleanerPlugin::GetLogTag()
250250
{
251-
return "SAMPLE";
251+
return "CLEANER";
252252
}
253253

254254
const char *CleanerPlugin::GetAuthor()
255255
{
256-
return "AlliedModders LLC";
256+
return "Poggu";
257257
}
258258

259259
const char *CleanerPlugin::GetDescription()
260260
{
261-
return "Sample basic plugin";
261+
return "Console regex filter";
262262
}
263263

264264
const char *CleanerPlugin::GetName()

xmake.lua

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,12 @@ target("CleanerCS2-Xmake")
99
set_kind("shared")
1010
add_files("src/*.cpp")
1111
add_packages("re2")
12+
add_cflags("-fvisibility=hidden")
13+
add_cxxflags("-fvisibility-inlines-hidden")
1214

1315
add_files({
14-
SDK_PATH.."/tier1/convar.cpp"
16+
SDK_PATH.."/tier1/convar.cpp",
17+
SDK_PATH.."/public/tier0/memoverride.cpp",
1518
})
1619

1720
if is_plat("windows") then
@@ -87,7 +90,8 @@ target("CleanerCS2-Xmake")
8790
"GNUC",
8891
"COMPILER_GCC",
8992
"PLATFORM_64BITS",
90-
"META_IS_SOURCE2"
93+
"META_IS_SOURCE2",
94+
"_GLIBCXX_USE_CXX11_ABI=0"
9195
})
9296
end
9397
set_languages("cxx20")

0 commit comments

Comments
 (0)