This commit is contained in:
ineed bots 2023-09-08 15:15:17 -06:00
parent b99a335d96
commit af697a4460
12 changed files with 55 additions and 30 deletions

View File

@ -3,8 +3,7 @@
#include "utils/hook.hpp" #include "utils/hook.hpp"
//#include "codsrc/clientscript/cscr_animtree.hpp" //#include "codsrc/clientscript/cscr_animtree.hpp"
#define RE_CSCR_ANIMTREE_USE_WRAPPERS #ifndef DISABLE_RE_CSCR_YACC
namespace re_cscr_animtree namespace re_cscr_animtree
{ {
utils::hook::detour AnimTreeCompileError_hook; utils::hook::detour AnimTreeCompileError_hook;
@ -398,3 +397,4 @@ namespace re_cscr_animtree
}; };
} }
REGISTER_COMPONENT(re_cscr_animtree::component) REGISTER_COMPONENT(re_cscr_animtree::component)
#endif

View File

@ -3,8 +3,7 @@
#include "utils/hook.hpp" #include "utils/hook.hpp"
//#include "codsrc/clientscript/cscr_compiler.hpp" //#include "codsrc/clientscript/cscr_compiler.hpp"
#define RE_CSCR_COMPILER_USE_WRAPPERS #ifndef DISABLE_RE_CSCR_COMPILER
namespace re_cscr_compiler namespace re_cscr_compiler
{ {
utils::hook::detour RemoveRefToValue_hook; utils::hook::detour RemoveRefToValue_hook;
@ -3327,3 +3326,4 @@ namespace re_cscr_compiler
}; };
} }
REGISTER_COMPONENT(re_cscr_compiler::component) REGISTER_COMPONENT(re_cscr_compiler::component)
#endif

View File

@ -3,8 +3,7 @@
#include "utils/hook.hpp" #include "utils/hook.hpp"
#include "codsrc/clientscript/cscr_main.hpp" #include "codsrc/clientscript/cscr_main.hpp"
//#define RE_CSCR_MAIN_USE_WRAPPERS #ifndef DISABLE_RE_CSCR_MAIN
namespace re_cscr_main namespace re_cscr_main
{ {
utils::hook::detour Scr_IsIdentifier_hook; utils::hook::detour Scr_IsIdentifier_hook;
@ -307,3 +306,4 @@ namespace re_cscr_main
}; };
} }
REGISTER_COMPONENT(re_cscr_main::component) REGISTER_COMPONENT(re_cscr_main::component)
#endif

View File

@ -3,8 +3,7 @@
#include "utils/hook.hpp" #include "utils/hook.hpp"
#include "codsrc/clientscript/cscr_memorytree.hpp" #include "codsrc/clientscript/cscr_memorytree.hpp"
//#define RE_CSCR_MEMORYTREE_USE_WRAPPERS #ifndef DISABLE_RE_CSCR_MEMORYTREE
namespace re_cscr_memorytree namespace re_cscr_memorytree
{ {
utils::hook::detour MT_GetSubTreeSize_hook; utils::hook::detour MT_GetSubTreeSize_hook;
@ -306,3 +305,4 @@ namespace re_cscr_memorytree
}; };
} }
REGISTER_COMPONENT(re_cscr_memorytree::component) REGISTER_COMPONENT(re_cscr_memorytree::component)
#endif

View File

@ -3,8 +3,7 @@
#include "utils/hook.hpp" #include "utils/hook.hpp"
#include "codsrc/clientscript/cscr_parser.hpp" #include "codsrc/clientscript/cscr_parser.hpp"
//#define RE_CSCR_PARSER_USE_WRAPPERS #ifndef DISABLE_RE_CSCR_PARSER
namespace re_cscr_parser namespace re_cscr_parser
{ {
utils::hook::detour Scr_InitOpcodeLookup_hook; utils::hook::detour Scr_InitOpcodeLookup_hook;
@ -588,3 +587,4 @@ namespace re_cscr_parser
}; };
} }
REGISTER_COMPONENT(re_cscr_parser::component) REGISTER_COMPONENT(re_cscr_parser::component)
#endif

View File

@ -3,8 +3,7 @@
#include "utils/hook.hpp" #include "utils/hook.hpp"
#include "codsrc/clientscript/cscr_parsetree.hpp" #include "codsrc/clientscript/cscr_parsetree.hpp"
//#define RE_CSCR_PARSETREE_USE_WRAPPERS #ifndef DISABLE_RE_CSCR_PARSETREE
namespace re_cscr_parsetree namespace re_cscr_parsetree
{ {
utils::hook::detour Scr_InitAllocNode_hook; utils::hook::detour Scr_InitAllocNode_hook;
@ -195,3 +194,4 @@ namespace re_cscr_parsetree
}; };
} }
REGISTER_COMPONENT(re_cscr_parsetree::component) REGISTER_COMPONENT(re_cscr_parsetree::component)
#endif

View File

@ -3,8 +3,7 @@
#include "utils/hook.hpp" #include "utils/hook.hpp"
#include "codsrc/clientscript/cscr_readwrite.hpp" #include "codsrc/clientscript/cscr_readwrite.hpp"
//#define RE_CSCR_READWRITE_USE_WRAPPERS #ifndef DISABLE_RE_CSCR_READWRITE
namespace re_cscr_readwrite namespace re_cscr_readwrite
{ {
utils::hook::detour FindVariableIndexInternal2_hook; utils::hook::detour FindVariableIndexInternal2_hook;
@ -77,3 +76,4 @@ namespace re_cscr_readwrite
}; };
} }
REGISTER_COMPONENT(re_cscr_readwrite::component) REGISTER_COMPONENT(re_cscr_readwrite::component)
#endif

View File

@ -3,8 +3,7 @@
#include "utils/hook.hpp" #include "utils/hook.hpp"
#include "codsrc/clientscript/cscr_stringlist.hpp" #include "codsrc/clientscript/cscr_stringlist.hpp"
//#define RE_CSCR_STRINGLIST_USE_WRAPPERS #ifndef DISABLE_RE_CSCR_STRINGLIST
namespace re_cscr_stringlist namespace re_cscr_stringlist
{ {
utils::hook::detour SL_ConvertToString_hook; utils::hook::detour SL_ConvertToString_hook;
@ -650,3 +649,4 @@ namespace re_cscr_stringlist
}; };
} }
REGISTER_COMPONENT(re_cscr_stringlist::component) REGISTER_COMPONENT(re_cscr_stringlist::component)
#endif

View File

@ -3,8 +3,7 @@
#include "utils/hook.hpp" #include "utils/hook.hpp"
#include "codsrc/clientscript/cscr_variable.hpp" #include "codsrc/clientscript/cscr_variable.hpp"
//#define RE_CSCR_VARIABLE_USE_WRAPPERS #ifndef DISABLE_RE_CSCR_VARIABLE
namespace re_cscr_variable namespace re_cscr_variable
{ {
utils::hook::detour ThreadInfoCompare_hook; utils::hook::detour ThreadInfoCompare_hook;
@ -2507,3 +2506,4 @@ namespace re_cscr_variable
}; };
} }
REGISTER_COMPONENT(re_cscr_variable::component) REGISTER_COMPONENT(re_cscr_variable::component)
#endif

View File

@ -3,8 +3,7 @@
#include "utils/hook.hpp" #include "utils/hook.hpp"
#include "codsrc/clientscript/cscr_vm.hpp" #include "codsrc/clientscript/cscr_vm.hpp"
//#define RE_CSCR_VM_USE_WRAPPERS #ifndef DISABLE_RE_CSCR_VM
namespace re_cscr_vm namespace re_cscr_vm
{ {
utils::hook::detour Scr_VM_Init_hook; utils::hook::detour Scr_VM_Init_hook;
@ -1677,3 +1676,4 @@ namespace re_cscr_vm
}; };
} }
REGISTER_COMPONENT(re_cscr_vm::component) REGISTER_COMPONENT(re_cscr_vm::component)
#endif

View File

@ -3,8 +3,7 @@
#include "utils/hook.hpp" #include "utils/hook.hpp"
//#include "codsrc/clientscript/cscr_yacc.hpp" //#include "codsrc/clientscript/cscr_yacc.hpp"
#define RE_CSCR_YACC_USE_WRAPPERS #ifndef DISABLE_RE_CSCR_YACC
namespace re_cscr_yacc namespace re_cscr_yacc
{ {
utils::hook::detour LowerCase_hook; utils::hook::detour LowerCase_hook;
@ -230,3 +229,4 @@ namespace re_cscr_yacc
}; };
} }
REGISTER_COMPONENT(re_cscr_yacc::component) REGISTER_COMPONENT(re_cscr_yacc::component)
#endif

View File

@ -20,6 +20,31 @@
} }
#endif #endif
#define RE_CSCR_ANIMTREE_USE_WRAPPERS
#define RE_CSCR_COMPILER_USE_WRAPPERS
//#define RE_CSCR_MAIN_USE_WRAPPERS
//#define RE_CSCR_MEMORYTREE_USE_WRAPPERS
//#define RE_CSCR_PARSER_USE_WRAPPERS
//#define RE_CSCR_PARSETREE_USE_WRAPPERS
//#define RE_CSCR_READWRITE_USE_WRAPPERS
//#define RE_CSCR_STRINGLIST_USE_WRAPPERS
//#define RE_CSCR_VARIABLE_USE_WRAPPERS
//#define RE_CSCR_VM_USE_WRAPPERS
#define RE_CSCR_YACC_USE_WRAPPERS
//#define DISABLE_RE_CSCR_YACC
//#define DISABLE_RE_CSCR_COMPILER
//#define DISABLE_RE_CSCR_MAIN
//#define DISABLE_RE_CSCR_MEMORYTREE
//#define DISABLE_RE_CSCR_PARSER
//#define DISABLE_RE_CSCR_PARSETREE
//#define DISABLE_RE_CSCR_READWRITE
//#define DISABLE_RE_CSCR_STRINGLIST
//#define DISABLE_RE_CSCR_VM
//#define DISABLE_RE_CSCR_YACC
namespace game namespace game
{ {
enum gamemode enum gamemode