Last active
January 16, 2024 15:15
-
-
Save x4fx77x4f/4fb3f974cd4936c12af1ba017441dc23 to your computer and use it in GitHub Desktop.
Analytics disabler for Teardown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define NULL ((void*) 0) | |
__declspec(dllexport) int hydra5_client_connect_developer(void* _1, void* _2) { | |
return 1; | |
} | |
__declspec(dllexport) int hydra5_client_connect_steam(void* _1, void* _2) { | |
return 1; | |
} | |
__declspec(dllexport) void* hydra5_client_create(void* _1) { | |
return NULL; | |
} | |
__declspec(dllexport) void* hydra5_client_get_kernel_session_id_visual_alias(void* _1) { | |
return NULL; | |
} | |
__declspec(dllexport) void hydra5_disconnect_everything(void) {} | |
__declspec(dllexport) char* hydra5_get_error_message(int error_code) { | |
return "cauterizer"; | |
} | |
__declspec(dllexport) int hydra5_init(void* _1, void* _2, void* _3, void* _4, void* _5, void* _6) { | |
return 1; | |
} | |
__declspec(dllexport) char hydra5_is_executing_requests(void) { | |
return 0; | |
} | |
__declspec(dllexport) void hydra5_telemetry_typed_event(void* _1, void* _2) {} | |
__declspec(dllexport) void hydra5_term(void) {} | |
__declspec(dllexport) void hydra5_update(void) {} | |
void main(void) {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
cc=x86_64-w64-mingw32-gcc-win32 | |
game="$HOME/.steam/steam/steamapps/common/Teardown" | |
$cc -c hydra5-x64.c | |
$cc -shared -o hydra5-x64.dll hydra5-x64.o | |
rm "$game/hydra5-x64.dll" || : | |
cp hydra5-x64.dll "$game/hydra5-x64.dll" | |
chmod -w "$game/hydra5-x64.dll" |
Updated version for PROS SDK:
https://gist.github.com/TTFH/fd44baac312c8e0ed3795224c6a4174d
clingi!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Windows Instructions:
Install your favorite linux CLI (like MSYS2)
pacman -S mingw-w64-ucrt-x86_64-gcc
(whatever your CLI's package manager is, minespacman
) and press YChange directory to the folder you created with the same 2 files in it.
Modify
make.sh
to match the current preferences on your computer. If you we're lucky and got thewin32
version of the GCC executable, then you don't have to change thecc
variable, but if you're like me and you we're unable to find it, all you have to do is to change it tocc=x86_64-w64-mingw32-gcc
. changegame
to where Teardown is installed, and make sure to change the back slashes (\) to a forward slash (/) or else it wont work!./make.sh
(If you find this inaccurate or want this taken down, let me know!)