Commit Graph

269 Commits

Author SHA1 Message Date
GAMMACASE
0807f197cc Fix search paths cleanup 2023-09-27 16:56:39 +00:00
GAMMACASE
f6a8c7b482 Add missing cpp files to the compilation step 2023-09-27 16:56:39 +00:00
GAMMACASE
3b5d72df1d Obsolete KVLoadFromFile
Current implementation isn't used anywhere in the s2 provider and due to the removal of MemAllocScratch & MemFreeScratch I guess this could be obsoleted
2023-09-27 16:56:39 +00:00
Nick Hastings
c3f0c4c7b6 Revert "Fix build regression from #102"
This reverts commit df3d2e7aa5.
2023-09-24 13:46:41 -04:00
Nick Hastings
df3d2e7aa5 Fix build regression from #102 2023-09-24 13:37:25 -04:00
Benoist
2261ff4f9c
Fix sourcehook compilation warning (#106)
Fix sourcehook compilation warning.

Co-authored-by: Kenzzer <kenzzer@users.noreply.github.com>
2023-07-30 21:36:23 -07:00
Nick Hastings
ee9243c82f Replace hardcoded "ServerGameDLL" part of iface name in meta game output 2023-05-21 15:27:46 -04:00
Nick Hastings
817b5f940e Iterate on ConCommands, ClientCommands, and the split S1/S2 compat 2023-05-21 12:13:17 -04:00
Nick Hastings
e1a81e3c06 Improve CS2 support and S2 game detection 2023-05-21 12:07:05 -04:00
Nick Hastings
d62379244c Add and use META_IS_SOURCE2 define 2023-05-16 14:31:31 -04:00
Nick Hastings
acd8644688 Fix provider reaching calling directly outside for "meta" ConCommand 2023-04-02 12:08:28 -04:00
Nick Hastings
15c84495cb Don't compile in VSP bridge on s2. 2023-04-02 11:01:22 -04:00
Nick Hastings
6a1a79df42 Missed part of ClientCommand s2 hack removal outside of provider 2023-04-02 10:44:11 -04:00
Nick Hastings
8f619851df Remove ProvidedHooks enum. No longer used 2023-04-02 10:30:26 -04:00
Nick Hastings
088e2d80c7 Do s1/s2 split on GetCommandLineValue 2023-04-02 10:15:58 -04:00
Nick Hastings
b727c5455e Remove ClientCommand Source 2 hacks from outside of provider 2023-04-02 10:13:21 -04:00
Nick Hastings
ebf79cf73d Remove exporting of var accessor from provider. It's not used outside
(and shouldn't stay that way)
2023-04-02 09:31:12 -04:00
Nick Hastings
b336c9c30d Make ConVars opaque outside of providers 2023-04-02 09:30:08 -04:00
Nick Hastings
522d8f2034 Tie ConVar accessor to Source 1 provider. Stub out for Source 2 provider. 2023-04-02 09:11:53 -04:00
Nick Hastings
c0bd8e3b87 Remove unused IsRemotePrintingAvailable function 2023-04-01 23:00:03 -04:00
Nick Hastings
e5f5a8ce6f Round 1 of base provider split. (Only compilation has been tested) 2023-04-01 22:59:39 -04:00
Nick Hastings
3704e2f3c1 Add SOURCE_ENGINE_CS2 2023-04-01 10:34:52 -04:00
Nick Hastings
0c426d9bf3 Make provider overrides explicit 2023-04-01 00:20:46 -04:00
Nick Hastings
82cd23bc10 Add cs2 build. (No targets for now) 2023-04-01 00:19:42 -04:00
Nick Hastings
f9f7513399 Create initial provider split between Source and Source 2. 2023-04-01 00:02:45 -04:00
Nick Hastings
6bbcc152c3 Rename provider_ep2 -> provider_base 2023-03-31 23:49:24 -04:00
Nick Hastings
b19e5333f1 Remove unmaintained build files. 2023-03-31 23:22:01 -04:00
David Anderson
86b5917309 Only load plugins that have executable extensions.
Bug: issue #102
Test: meta load crab.yam with hl2sdk-mock
2023-02-20 11:08:01 -08:00
Nicholas Hastings
63c5c15a9f
Add support for Military Conflict: Vietnam (#100) 2022-12-20 01:27:03 +00:00
Spirrwell
437feb57bd
Split PVKII into its own engine branch (#97)
* Initial PVKII branch support

* Fix compiler error

* Add missing SE_PVKII check

* Update checkout-deps with 'pvkii'

* Change PVKII code to 10 and bump others by 1, including recommended change in provider_ep2.cpp:135
2022-10-24 16:57:18 +00:00
David Anderson
4f1721e9e4 Add support for hl2sdk-mock.
This also fixes UTIL_Relatize basically being completely bogus. For
backwards compat it's wrapped in a helper though.
2021-09-22 12:05:15 -07:00
David Anderson
acea12f29b Upgrade to AMBuild 2.2. 2020-08-19 14:41:55 -07:00
peace-maker
b267567e50
Fix detection of Blade Symphony on Windows x64 (#67)
* Fix detection of Blade Symphony on Windows x64

Port finding the module base address on x64 builds from SourceMod.
Fix a bunch of truncation warnings on x64 while at it too.

* Fix mm_TrimComments stripping last char before comment

```c
char test[] = "hi this is a a test!// comment";
mm_TrimComments(test);
puts(test); // prints "hi this is a test" without the !
```

* Fix unsigned comparison warnings

* Fix truncation warnings in SourceHook::String

* Fix unsigned comparison warnings

clang does have some nice analysis.
2020-06-25 00:04:36 +00:00
Asher Baker
1b449d20b8 Changes required for upcoming Blade Symphony update 2020-03-10 23:54:57 +00:00
Nick Hastings
462babab06 Disable Dota 2 search path fixups until newer IFileSystem changes can be
better reversed.
2019-03-17 11:56:01 -04:00
David Anderson
7efa054b82
Merge pull request #52 from alliedmodders/warnings
Prevent some warnings for SM builds
2018-07-31 21:23:52 -07:00
Headline
d5030d0612 Re-add dummy, cast to void 2018-07-31 21:14:08 -07:00
Michael Flaherty
37738022ee dvander foxes 2018-07-31 13:17:48 -07:00
Kyle Sanderson
625c59dad5
Disable de-virtualization in sh-tests for gcc-4.9+ (#53)
* Update AMBuilder
* Re-add gcc6 to .travis.yml
* right; 🐍
* where Travis-CI?
* fix whitespace problems w/ travis.yml
2018-07-31 11:02:13 -07:00
Headline
b9b150e638 Fix warnings for SM builds 2018-07-29 04:09:18 -07:00
Kyle Sanderson
e573602f81
Add additional test coverage to Travis-CI. (#50)
* NPOTB: clang clang clang goes the trolly, gcc7 goes the bell.

* Update AMBuildScript

* Initialize engine_path when abspath fails.

* Fix lptr being uninitialized when getcwd fails.

* Remove GCC6; deeper issues than this PR will cover
2018-07-27 22:03:33 -07:00
Nick Hastings
ad00df3864 Fix Dota build for hl2sdk-dota updates. 2018-07-07 14:06:14 -04:00
Nick Hastings
1b83816c7e Crank up SourceHook param count support from 17 to 20. 2018-07-07 08:45:23 -04:00
Scott Ehlert
79435093d9
64-bit support for CSGO on Linux and macOS (#35) 2017-12-20 01:11:57 -06:00
Nicholas Hastings
1f0124d499
Split Day of Infamy to separate engine build (#36) 2017-11-03 14:52:37 -04:00
Nicholas Hastings
e770220590 Fix linking errors with some compilers when MM:S plugins call function in tier1 interface.h. (#34) 2017-09-07 12:39:27 -04:00
Nicholas Hastings
7079862139 Exclude hookgen on non-x86 instead of non-Windows Dota. 2017-04-22 21:25:27 -04:00
Nicholas Hastings
565a184994 Msg -> DevMsg for S2 GameInit/LevelInit/LevelShutdown messages. 2017-04-16 16:21:02 -04:00
Nicholas Hastings
16a270764c Use new SDK compat shim instead of ifdef for missing Error() in S2. 2017-04-15 10:06:52 -04:00
Nicholas Hastings
a8110f530b Merge 'master' into S2. 2017-04-15 09:43:39 -04:00
Nicholas Hastings
ba7b123f87 Remove unintended change that snuck in with last commit. 2017-02-18 14:15:07 -05:00
Nicholas Hastings
b070ac2f6b [Dota] Fix for getting INetworkGameServer after factory removal. 2017-02-18 10:23:59 -05:00
Nicholas Hastings
3eb98bd1c3 [Dota] Fix for new param added in INetworkGameServer::StartChangeLevel. 2017-02-18 10:23:20 -05:00
Nicholas Hastings
760126ea8c Fix more issues compiling on GCC 5+. 2016-11-09 18:08:42 -05:00
Nicholas Hastings
937b4016ff Nuke core-legacy - MM:S v1.4 API. (#29) 2016-10-11 13:29:37 -04:00
Nicholas Hastings
9a8ebe74ff Update for StartChangeLevel prototype change, again. 2016-10-10 14:54:54 -04:00
Nicholas Hastings
2785cd2573 Update for StartChangeLevel prototype change. 2016-08-29 19:13:07 -04:00
David Anderson
0eaf14f9ec Update configure.py and buildscripts to AMBuild API v2.1. 2016-07-23 19:25:54 -07:00
Nicholas Hastings
878f7531fb Fix a few unrelated compile warnings. 2016-07-22 14:04:02 -04:00
Nicholas Hastings
a2400e3681 Change AllowDedicatedServer hook to be Windows-only.
It's not needed elsewhere right now.
2016-07-22 14:02:37 -04:00
Nicholas Hastings
a88de796a3 Build Dota core and loader + versionlib as 64-bit.
TODO: we need both x86 and x64 of versionlib and loader.
2016-07-22 14:01:34 -04:00
Nicholas Hastings
4007ae8310 Disable dynamic hooking iface on non-Windows Dota.
This should really be disabled on x64 (or ported to work on it), but
not sure how to best check that in the AMBuilder file.
2016-07-22 13:59:58 -04:00
Nicholas Hastings
366a27e10c Ditch "source2" naming, restoring "dota". 2016-07-22 13:57:54 -04:00
Nicholas Hastings
f17a958c66 Merge branch 'master' into S2
Conflicts:
	configure.py
	core/sourcehook/test/main.cpp
2015-11-23 15:12:55 -05:00
David Anderson
270c8714e3 Add variadic versions of the SH_DECL_MANUALEXTERN macro family, and wrap the hardcoded macros around these. 2015-10-25 13:47:33 -07:00
David Anderson
4918d4ff4c Add variadic versions of the SH_DECL_EXTERN macro family, and wrap the hardcoded macros around these. 2015-10-25 13:03:02 -07:00
David Anderson
fdd571fc06 Use C++11 variadic templates for sh_memfuncinfo.h. 2015-10-24 19:36:33 -07:00
David Anderson
196d28a45a Remove extra, unused copies of sh_memfuncinfo.h. 2015-10-24 19:31:49 -07:00
David Anderson
2ce09bfa70 Use C++11 variadic templates for core FastDelegate. 2015-10-24 18:52:31 -07:00
David Anderson
ef43db47b2 Regenerate sourcehook.h. 2015-10-24 18:22:40 -07:00
David Anderson
edba55f4a8 Remove extra, unused copies of FastDelegate.h/sourcehook.h from the tree. 2015-10-24 18:22:01 -07:00
Nicholas Hastings
1045cdb98e Remove MM:S dir from search paths. 2015-10-08 12:57:56 -04:00
Nicholas Hastings
508f39ae1b Re-enable plugin loading from VDF. 2015-10-08 12:55:34 -04:00
David Anderson
4a652ceea6 Use variadic templates for ExecutableClass (core changes). 2015-09-25 17:53:45 -07:00
David Anderson
60f878f132 Merge pull request #22 from alliedmodders/tl
Replace SetOverrideResult/GetRecallIface with variadic templates.
2015-09-25 17:19:00 -07:00
David Anderson
4477448924 Replace SetOverrideResult/GetRecallIface with variadic templates. 2015-09-24 21:16:29 -07:00
David Anderson
219cd7203f Fix testvphooks. 2015-09-24 21:03:49 -07:00
David Anderson
5f44dd2d22 Enable SourceHook tests on Travis. 2015-09-24 20:40:05 -07:00
Nicholas Hastings
81d2973129 Disable VDF plugin loading on Source2 until KV issues are worked out. 2015-09-22 07:33:50 -04:00
Nicholas Hastings
112cbcaa3a Revert "Remove hook on AllowDedicatedServer - no longer necessary."
This reverts commit 4461b5e1b8.
2015-09-21 13:29:01 -04:00
Nicholas Hastings
030706fdcd Fix recent regression with finding engine ptr on CS:S, DoD:S, HL2:DM.
They are still only have engine v21, not yet v22 (let alone v23).
2015-09-14 09:54:46 -04:00
Nicholas Hastings
e4cfea7227 Shim for TF2-branch games to find latest, non-shimmed engine iface. 2015-09-10 20:41:27 -04:00
Nicholas Hastings
e29ff511ff Fix failing to load as VSP is GameDLL iface version >= 10. 2015-09-10 18:50:00 -04:00
Nicholas Hastings
4461b5e1b8 Remove hook on AllowDedicatedServer - no longer necessary. 2015-08-31 14:05:09 -04:00
Nicholas Hastings
a73b63cb51 Initial version of GameInit, LevelInit, LevelShutdown hookup; removed cmds to manually trigger them. 2015-07-11 13:59:51 -04:00
Nicholas Hastings
1c7fb146ff Fix breakage from iserverplugin.h removal. 2015-07-11 13:58:53 -04:00
Nicholas Hastings
ff2e763b99 Fix server exiting on map change. 2015-07-10 09:30:51 -04:00
Nicholas Hastings
36cb59aada Fix temporary meta_level_init, etc. commands not working. 2015-07-10 09:30:28 -04:00
Scott Ehlert
77e74a5eeb Partial 64-bit support for SourceHook on Windows 2015-07-09 15:12:16 -05:00
Scott Ehlert
1f1aca02f3 Fix build of SourceHook tests 2015-07-09 14:24:18 -05:00
Nicholas Hastings
30b7be46a8 Merge loader, loader2. Rename env var HL2SDKS2 -> HL2SDKSOURCE2. 2015-07-09 14:09:56 -04:00
Nicholas Hastings
cb8b0fd8d5 Remove some testing crap. 2015-07-09 06:54:44 -04:00
Nicholas Hastings
fcb4849b3c S2 WiP 2015-07-08 21:39:28 -04:00
Nicholas Hastings
5d54a0abb7 Improve "meta version" output and remove version code duplication.
Version output improvements:
* Added more consistent indentation. (Matches SM's version output formatting now).
* Added missing newline after compile date.
* Added Build ID.
* Removed duplicated compile time.
* Re-ordered lines to have version numbers before compile/build information. (Again, to be formatted similar to SM's and more readable).

Refactored to have version and credits output logic not duplicated between server command and client command.

In core, moved engine names to near top of file instead of having huge list right in the middle of command output.
2015-05-12 15:29:23 -04:00
Nicholas Hastings
269555d2fb Update MM:S to support Black Mesa.
Uses new bms branch in our hl2sdk repo.
2015-05-06 17:51:54 -04:00
Nicholas Hastings
2800d66712 Convert compile-time checks to use static_assert.
Fixes unused-local-typedefs warnings when checks pass.
2015-04-15 08:16:16 -07:00
Nicholas Hastings
8cfab6c637 Merge new versioning logic from SourceMod, fixes manual builds and --gen=vs. 2015-04-11 10:25:06 -04:00
Kyle Sanderson
d3bfaa302d Don't use engine specific IFACE status enum in MM:S. 2015-01-20 16:30:13 -08:00
Kyle Sanderson
37b6268cff Relocate META_IFACE enum to ISmmPlugin.h 2015-01-20 16:24:52 -08:00
Nicholas Hastings
5667763019 Revert "Branch fixes."
This reverts commit ed081f045e.
2014-09-11 19:15:41 -04:00