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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -20,6 +20,31 @@
}
#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
{
enum gamemode