Skip to content

Commit

Permalink
Add proper submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
Headline committed May 21, 2024
1 parent a8afba6 commit 73742f5
Show file tree
Hide file tree
Showing 48 changed files with 10 additions and 8,531 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@
[submodule "hl2sdk-manifests"]
path = hl2sdk-manifests
url = https://github.com/alliedmodders/hl2sdk-manifests.git
[submodule "public/safetyhook"]
path = public/safetyhook
url = https://github.com/alliedmodders/safetyhook
9 changes: 5 additions & 4 deletions AMBuildScript
Original file line number Diff line number Diff line change
Expand Up @@ -524,11 +524,12 @@ class SMConfig(object):
public_path = os.path.join(builder.sourcePath, 'public')
binary.sources += [
os.path.join(public_path, 'CDetour', 'detours.cpp'),
os.path.join(public_path, 'safetyhook', 'safetyhook.cpp'),
os.path.join(public_path, 'safetyhook', 'Zydis.c')
os.path.join(public_path, 'safetyhook', 'amalgamated-dist', 'safetyhook.cpp'),
os.path.join(public_path, 'safetyhook', 'zydis', 'Zydis.c')
]
binary.compiler.cxxincludes += [ os.path.join(public_path, 'safetyhook') ]
binary.compiler.includes += [ os.path.join(public_path, 'safetyhook') ]
binary.compiler.cxxincludes += [ os.path.join(public_path, 'safetyhook', 'include') ]
binary.compiler.includes += [ os.path.join(public_path, 'safetyhook', 'amalgamated-dist') ]
binary.compiler.includes += [ os.path.join(public_path, 'safetyhook', 'zydis') ]

def HL2Library(self, context, compiler, name, sdk):
binary = self.Library(context, compiler, name)
Expand Down
2 changes: 1 addition & 1 deletion public/CDetour/detours.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#ifndef _INCLUDE_SOURCEMOD_DETOURS_H_
#define _INCLUDE_SOURCEMOD_DETOURS_H_

#include "../safetyhook/safetyhook.hpp"
#include "safetyhook.hpp"
#include <smsdk_ext.h>

#define DETOUR_MEMBER_CALL(name) (this->*name##_Actual)
Expand Down
1 change: 1 addition & 0 deletions public/safetyhook
Submodule safetyhook added at 0c3a4c
14 changes: 0 additions & 14 deletions public/safetyhook/.clang-format

This file was deleted.

10 changes: 0 additions & 10 deletions public/safetyhook/.gitignore

This file was deleted.

Loading

0 comments on commit 73742f5

Please sign in to comment.