From 80c817cb6be21410a82a876cdbbab97b59c798a3 Mon Sep 17 00:00:00 2001 From: mkrsym1 Date: Fri, 28 Jul 2023 01:51:04 +0300 Subject: [PATCH] Renamed tp6.c to core.c --- .gitignore | 2 +- README.md | 2 +- game_payload/blob/{tp6c.o => core.o} | Bin 6328 -> 6329 bytes game_payload/{copy_tp6c.sh => copy_core.sh} | 0 game_payload/include/core.h | 7 ++++ game_payload/include/tp6.h | 7 ---- game_payload/meson.build | 34 ++++++++++---------- game_payload/src/{tp6.md => core.md} | 0 game_payload/src/main.c | 4 +-- 9 files changed, 28 insertions(+), 28 deletions(-) rename game_payload/blob/{tp6c.o => core.o} (69%) rename game_payload/{copy_tp6c.sh => copy_core.sh} (100%) create mode 100644 game_payload/include/core.h delete mode 100644 game_payload/include/tp6.h rename game_payload/src/{tp6.md => core.md} (100%) diff --git a/.gitignore b/.gitignore index 6731921..95ac198 100644 --- a/.gitignore +++ b/.gitignore @@ -3,7 +3,7 @@ .directory # File withheld to make abuse more difficult -game_payload/src/tp6.c +game_payload/src/core.c build out diff --git a/README.md b/README.md index da7ae33..1c2ef3a 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ This tool consists of three parts: the main injector (`injector/src/exe.c`), the I am very bad at explaining, so just take a look at the source code. Maybe I'll write a detailed explanation in the future. -A part of the source code is witheld (`game_payload/src/tp6.c`). This is a forced measure to make abuse more difficult. However, a precompiled blob is provided in the repo. `build.sh` will use it automatically. +A part of the source code is witheld (`game_payload/src/core.c`). This is a forced measure to make abuse more difficult. However, a precompiled blob is provided in the repo. `build.sh` will use it automatically. ### Guildelines 1. **Please don't share this project in public.** This might attract unnecessary attention from either the Game Company or the Anticheat Company diff --git a/game_payload/blob/tp6c.o b/game_payload/blob/core.o similarity index 69% rename from game_payload/blob/tp6c.o rename to game_payload/blob/core.o index 12a645a02fb31e9bef6459e3c70d9568dea655a0..dbfe6cca992a69cd591bd903536029e37723d40d 100644 GIT binary patch delta 580 zcmdmCxYKaMJ}$Q8{GwF7TJDgqRM>RN;$vIj%tBHQE%d=ZRKCcor!um1v8de delta 579 zcmdmKxWjP6J}$PB0yDj2hRsK~)-iIHvM_)F$7Dus@yU~T?l8`uoX@LVzX~eO1C(U~ ztGEso5rT`bvVtWT1mPm)P!UeJNDNej3ogTdDgqRM>RN~)vKvF>0^8&Xd=ZR~C%@!#um22}R)8A8#11kJ z1Yjb9a1od_rWhiT7$S8TBFiyE&eUTFeZ>%w0(lq;AYtQzA(Dk5(uyLo2*}ebN=Yn9 aRH>?}f-&`qHtPv^voHgb%;s7V8x{b!h%FHS diff --git a/game_payload/copy_tp6c.sh b/game_payload/copy_core.sh similarity index 100% rename from game_payload/copy_tp6c.sh rename to game_payload/copy_core.sh diff --git a/game_payload/include/core.h b/game_payload/include/core.h new file mode 100644 index 0000000..9389281 --- /dev/null +++ b/game_payload/include/core.h @@ -0,0 +1,7 @@ +#pragma once + +#include + +#include + +void core_setup_patcher(struct game_data *game, HMODULE baseModule); diff --git a/game_payload/include/tp6.h b/game_payload/include/tp6.h deleted file mode 100644 index c35b120..0000000 --- a/game_payload/include/tp6.h +++ /dev/null @@ -1,7 +0,0 @@ -#pragma once - -#include - -#include - -void tp6_setup_patcher(struct game_data *game, HMODULE baseModule); diff --git a/game_payload/meson.build b/game_payload/meson.build index 2493845..83c5dfc 100644 --- a/game_payload/meson.build +++ b/game_payload/meson.build @@ -38,34 +38,34 @@ res_object = custom_target( command: [ gen_res, '--object', meson.current_source_dir(), '@OUTPUT0@', '@INPUT@' ] ) -if fs.exists('src/tp6.c') +if fs.exists('src/core.c') # Compile the real file first (dirty hack) - tp6c_fake_exe = executable( - 'tp6c.o', - 'src/tp6.c', + core_fake_exe = executable( + 'core.o', + 'src/core.c', res_header, link_args: [ '-r' ], # Output an object file include_directories: include_dir ) # another dirty hack - copy_tp6c = find_program('copy_tp6c.sh') + copy_core = find_program('copy_core.sh') - tp6c_target = [custom_target( - 'copy_tp6c', - output: 'tp6c.o', - input: tp6c_fake_exe.extract_all_objects(recursive: false), + core_target = [custom_target( + 'copy_core', + output: 'core.o', + input: core_fake_exe.extract_all_objects(recursive: false), command: [ - copy_tp6c, + copy_core, '@INPUT0@', - '@OUTPUT0@', meson.current_source_dir() / 'blob/tp6c.o' + '@OUTPUT0@', meson.current_source_dir() / 'blob/core.o' ] )] - tp6c_blob = [] + core_blob = [] else - message('Using precompiled tp6c blob. Refer to the readme for more details') - tp6c_target = [] - tp6c_blob = [ 'blob/tp6c.o' ] + message('Using precompiled core blob. Refer to the readme for more details') + core_target = [] + core_blob = [ 'blob/core.o' ] endif shared_library( @@ -73,8 +73,8 @@ shared_library( sources, res_header, res_object, - tp6c_target, - objects: tp6c_blob, + core_target, + objects: core_blob, include_directories: include_dir, name_prefix: '' ) diff --git a/game_payload/src/tp6.md b/game_payload/src/core.md similarity index 100% rename from game_payload/src/tp6.md rename to game_payload/src/core.md diff --git a/game_payload/src/main.c b/game_payload/src/main.c index fbc8d7c..51804ff 100644 --- a/game_payload/src/main.c +++ b/game_payload/src/main.c @@ -3,7 +3,7 @@ #include #include #include -#include +#include #include #include @@ -46,7 +46,7 @@ BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, LPVOID reserved) { ace_load_driver_module(); // ...magic - tp6_setup_patcher(&game, baseModule); + core_setup_patcher(&game, baseModule); // Load the UnityPlayer module and invoke the callback HMODULE unityModule = LoadLibraryA("UnityPlayer.dll");