1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2024-12-14 02:23:53 +01:00
Commit Graph

52 Commits

Author SHA1 Message Date
Pavol Marko
0a47015744 correct ISO for scoping
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40512
2007-10-14 12:28:28 +00:00
Pavol Marko
b64eb781d8 Removed "trust the prototype" model which could lead to problems. Instead, every CVfnPtr now has a list of hook managers.
-> Removed CHookManagerContainer
Also removed listcat (unnecessary since "V2" interface)

--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40510
2007-10-14 11:59:13 +00:00
Pavol Marko
93ead5a2e0 Backwards compat with outdated sourcehook.h
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40506
2007-10-12 20:14:10 +00:00
Pavol Marko
bf7ebed87d Fixed a problem where sourcehook ignored references in prototypes (could result in stack corruptions in some conditions)
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40503
2007-10-12 19:17:52 +00:00
Pavol Marko
ddb9047904 Changed misleading variable name
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40485
2007-10-08 20:12:06 +00:00
David Anderson
addabb4c0d theoretical fix for reconfigure crash bug
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40478
2007-10-08 17:23:23 +00:00
Pavol Marko
d0e26565dd Subtle bug fixed + tests now more resistant against compiler
optimizations

--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40472
2007-10-08 14:20:51 +00:00
Pavol Marko
53b48bab94 Added SH_GET_ORIG_VFNPTR_ENTRY
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40471
2007-10-07 23:00:38 +00:00
Pavol Marko
47984a6cb3 New auto-hookfunc-gen friendly interface
! breaks binary compatibility !

--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40465
2007-10-07 22:10:07 +00:00
Pavol Marko
f6c428a56d Added SH_GET_ORIG_VFNPTR_ENTRY macro
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40394
2007-05-12 19:48:31 +00:00
Pavol Marko
ac92e7ff05 Better treatement of deprecated callclasses
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40393
2007-05-12 19:05:16 +00:00
Pavol Marko
cdead2f8fc no comment
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40392
2007-05-12 09:03:57 +00:00
Pavol Marko
50926ce4e6 Direct VP hooks, new SH_CALL
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40389
2007-05-12 08:08:01 +00:00
Pavol Marko
8e446b28c3 Added hook ids
Added VP hooks and VP Hook test
New macro syntax (SH_ADD_HOOK + SH_STATIC/SH_MEMBER)

--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40385
2007-05-07 18:35:59 +00:00
Scott Ehlert
45bb183759 The most incredibly pointless commit ever
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40346
2007-03-02 02:43:22 +00:00
Pavol Marko
f7172629fb Fixed explicit qualification in sourcehook.cpp, updated Makefile for new shworker ( =P ), generated new sourcehook.h
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40252
2006-08-09 07:42:16 +00:00
Pavol Marko
c6c4c28db3 Fixed SourceHook::CVector::resize, hopefully fixed callclass crashbug, add vector test to TestList
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40205
2006-05-19 13:57:04 +00:00
David Anderson
50fe3e72d9 fixed bug where cproto pointers could be stale from removed plugins
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40182
2006-02-09 08:34:31 +00:00
Pavol Marko
3ea2f023e1 h-hello? new feature: RETURN_META_(VALUE_)NEWPARAMS now also works in post handlers!
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40180
2006-02-05 20:24:58 +00:00
David Anderson
b6f713be5f experimental patch for unhook exclusivity bug
added multi-hook single-remove test cases (crummy but works)

--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40178
2006-01-24 20:02:19 +00:00
Pavol Marko
27de459d8f Added insert(iterator where, const T &what) to sh_list and simplified it on the occasion, hook managers now have (optional) version numbers, everything somehow works! Also changed _NEWPARAMS macro syntax a bit
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40164
2005-12-23 23:00:55 +00:00
Pavol Marko
9eb35c8830 One bugfix, addition of META_RETURN_(VALUE_)NEWPARAMS (implemented using recalls), tests now support compiling against an older version of sourcehook.h (through the sourcehook_test.h file) while main.cpp which now also acts as a CSourceHookImpl factory compiles against the new version.
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40163
2005-12-23 11:58:11 +00:00
Pavol Marko
8cc68b35fb Added manual hooks. I hope that I haven't broken binary compatibility - someone might want to test it.
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40158
2005-12-10 22:37:53 +00:00
David Anderson
386eef09d3 Fixed various memory leaks
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40152
2005-12-06 06:01:16 +00:00
Pavol Marko
17aa1b4c3f Untested reentrancy support; TODO: Test sh_stack and reentrancy extensively!
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40129
2005-10-12 20:25:15 +00:00
Pavol Marko
a4299bd097 It seems to work, but it's not reentrant yet.
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40124
2005-10-06 20:46:49 +00:00
Pavol Marko
36dda69d9d Partial fix
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40122
2005-10-05 21:51:02 +00:00
Pavol Marko
2790931701 CHANGES!
sh_memory.h: Added ModuleInMemory; first checks /proc/self/maps OR /proc/curproc/map; if not available tries DS's sigsegv trapping method
sh_tinyhash: Added simple erase function(s)
test/Makefile: New makefile
Changed internal interface: sourcehook.hxx now doesn't need to know about implementation details like vectors etc.

--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40118
2005-10-03 17:20:22 +00:00
David Anderson
bae2c00808 stdint is gnuc only
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40109
2005-09-13 20:24:58 +00:00
David Anderson
4b048ff0b2 GCC compatibility
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40108
2005-09-13 20:21:58 +00:00
David Anderson
62133463ac Added comparison functions
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40104
2005-09-13 18:20:37 +00:00
David Anderson
3391d62146 No more STL! Imported TinyHash
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40102
2005-09-13 16:47:42 +00:00
David Anderson
ead774778f std::vector -> SourceHook::CVector
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40100
2005-09-11 23:24:18 +00:00
David Anderson
f73ef50b79 Initial step towards no STL - added replacement for std::list
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%4097
2005-08-12 17:33:31 +00:00
Scott Ehlert
151efb135a Moved g_BadReadCalled and g_BadReadJmpBuf to sourcehook.cpp to prevent linking errors when including sourcehook_impl.h
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%4094
2005-07-09 20:49:25 +00:00
Scott Ehlert
63bda51111 argh
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%4092
2005-07-07 21:12:00 +00:00
Scott Ehlert
641667bbb9 Removed IsBadReadPtr and BadReadHandler from CSourceHookImpl to fix Linux compile bug
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%4091
2005-07-07 21:07:43 +00:00
Scott Ehlert
542dfc5eec One last oops. I really need to install Linux again SOON :(
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%4089
2005-07-07 18:41:08 +00:00
Scott Ehlert
b45d02fd59 Oops
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%4088
2005-07-07 18:24:08 +00:00
Scott Ehlert
c8d4189477 Yay, the nasty SourceHook bug is finally fixed!
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%4087
2005-07-07 18:21:32 +00:00
Pavol Marko
f5076fa43d Truly gone fishing... It's fixed!
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%4084
2005-07-02 10:09:40 +00:00
Pavol Marko
4dc4ed7a2b Added code for proper handling of thisptr adjustors, added new test, version info, more options for GetFuncInfo
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%4059
2005-05-05 10:40:47 +00:00
Pavol Marko
e175a7db5c Fixes
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%4051
2005-05-01 18:04:18 +00:00
Pavol Marko
9fb8a3e891 linux/gcc/32bit compatibility
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%4049
2005-05-01 12:36:48 +00:00
Pavol Marko
211535d433 Fixed RemoveHook + minor changes
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%4048
2005-05-01 09:55:51 +00:00
Pavol Marko
2a777754e6 Some fixes, new test system
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%4043
2005-04-30 15:48:46 +00:00
Pavol Marko
bb2cb311ad Completly redone templates, added "vfnptrs"
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%4042
2005-04-29 20:29:46 +00:00
David Anderson
b6a543bbc1 Cleaned up files for linux
Disabled SH_CCC_Makegate call for linux builds

--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%4035
2005-04-22 14:29:25 +00:00
David Anderson
38c0cb36b4 Added license/author tags to files
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%4011
2005-04-16 23:33:57 +00:00
Pavol Marko
aed73ffa76 Added plugin pausing, the Plugin typedef is now an int, SH_GLOB_PLUGPTR is now g_PLID by default
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%409
2005-04-16 20:26:33 +00:00