Skip to content

Commit

Permalink
fix building
Browse files Browse the repository at this point in the history
  • Loading branch information
rafradek committed Oct 26, 2024
1 parent 36d4aa6 commit cd2ee71
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 0 additions & 2 deletions AMBuilder
Original file line number Diff line number Diff line change
Expand Up @@ -505,8 +505,6 @@ for sdk_name in Extension.sdks:
if builder.options.optimize_mods_only:
binary.compiler.defines += ['OPTIMIZE_MODS_ONLY']

binary.sources += ['/fdf']

## build libstrcompat
#if builder.target.platform == 'linux':
# _, libstrcompat = builder.AddCommand(
Expand Down
2 changes: 2 additions & 0 deletions src/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ class IDedicatedExports;

class IMDLCache;

class IScriptManager;

namespace SourceMod {
class IExtensionManager;
}
Expand Down
4 changes: 4 additions & 0 deletions src/extension.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
#endif
#include "version.h"
#include "convar_restore.h"
#ifdef SE_IS_TF2
#include "vscript/ivscript.h"
#endif
//#include "entity.h"

CExtSigsegv g_Ext;
Expand Down Expand Up @@ -236,9 +238,11 @@ bool CExtSigsegv::SDK_OnMetamodLoad(ISmmAPI *ismm, char *error, size_t maxlength
GET_IFACE_OPTIONAL(Engine, debugoverlay, VDEBUG_OVERLAY_INTERFACE_VERSION);
GET_IFACE_OPTIONAL(Engine, enginetools, VENGINETOOL_INTERFACE_VERSION);

#ifdef VSCRIPT_INTERFACE_VERSION
if (VScriptManagerFactory() != nullptr) {
GET_IFACE_OPTIONAL(VScriptManager, scriptManager, VSCRIPT_INTERFACE_VERSION);
}
#endif

if (SoundEmitterSystemFactory() != nullptr) {
GET_IFACE_OPTIONAL(SoundEmitterSystem, soundemitterbase, SOUNDEMITTERSYSTEM_INTERFACE_VERSION);
Expand Down
2 changes: 2 additions & 0 deletions src/mod/perf/func_optimize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -682,6 +682,7 @@ namespace Mod::Perf::Func_Optimize
DETOUR_MEMBER_CALL(whoFired, weapon);
}

#ifdef SE_IS_TF2
DETOUR_DECL_MEMBER(bool, CTFPlayer_WantsLagCompensationOnEntity, const CBasePlayer *target, const CUserCmd *pCmd, const CBitVec<MAX_EDICTS> *pEntityTransmitBits)
{
auto player = reinterpret_cast<CTFPlayer *>(this);
Expand Down Expand Up @@ -736,6 +737,7 @@ namespace Mod::Perf::Func_Optimize
DETOUR_MEMBER_CALL();
coneOfAttack = -1.0f;
}
#endif

class CMod : public IMod, public IModCallbackListener
{
Expand Down

0 comments on commit cd2ee71

Please sign in to comment.