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 12a645a..dbfe6cc 100644 Binary files a/game_payload/blob/tp6c.o and b/game_payload/blob/core.o differ 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");