Skip to content

Commit 38956a8

Browse files
committed
Remove redundant code in GPUCrusher which actually doesn't do much crushing
1 parent 503aaec commit 38956a8

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

LE1GPUCrusher/LE1GPUCrusher.cpp

+3-10
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,26 @@
11
#include "../Interface.h"
22
#include "../Common.h"
33

4-
54
SPI_PLUGINSIDE_SUPPORT(L"LE1GPUCrusher", L"0.1.0", L"d00telemental", SPI_GAME_LE1, SPI_VERSION_ANY);
65
SPI_PLUGINSIDE_POSTLOAD;
76
SPI_PLUGINSIDE_ASYNCATTACH;
87

98
#define writeln(frmt, ...) fwprintf_s(stdout, L"LE1GPUCrusher - " frmt "\n", __VA_ARGS__);
109

11-
1210
#define REFLECTIONUPDATEREQUIRED_PATTERN "48 89 5C 24 10 48 89 6C 24 18 48 89 74 24 20 57 41 54 41 55 41 56 41 57 48 83 EC 40 48 8B 01 48 8B F2 4C 8B F9 FF 50 48"
1311
using tReflectionUpdateRequired = unsigned long (*)(void*, void*);
1412
tReflectionUpdateRequired ReflectionUpdateRequired = nullptr;
1513
tReflectionUpdateRequired ReflectionUpdateRequired_orig = nullptr;
1614
unsigned long ReflectionUpdateRequired_hook(void* a, void* b)
1715
{
18-
const auto value = ReflectionUpdateRequired_orig(a, b);
19-
2016
// !!! DANGER !!!
2117
return TRUE;
22-
// !!! DANGER !!!
2318

24-
writeln(L"ReflectionUpdateRequired_orig => %d", value);
25-
return value;
19+
//const auto value = ReflectionUpdateRequired_orig(a, b);
20+
//writeln(L"ReflectionUpdateRequired_orig => %d", value);
21+
//return value;
2622
}
2723

28-
29-
// --------------------------------------------------
3024
SPI_IMPLEMENT_ATTACH
3125
{
3226
Common::OpenConsole();
@@ -48,7 +42,6 @@ SPI_IMPLEMENT_ATTACH
4842
}
4943

5044
Sleep(15 * 1000);
51-
5245
MessageBoxW(nullptr, L"DO NOT USE IF YOU AREN'T WILLING TO REPLACE YOUR GPU", L"DANGER", MB_OK | MB_ICONERROR);
5346

5447
return true;

0 commit comments

Comments
 (0)