mirror of
https://github.com/fedddddd/iw5-gsc-utils.git
synced 2025-07-03 09:41:51 +00:00
Compare commits
41 Commits
Author | SHA1 | Date | |
---|---|---|---|
ad27dcb098 | |||
96acf0718e | |||
72f936e82a | |||
9a11ac82b3 | |||
8f36c271fd | |||
e952b8a0f7 | |||
f6d78fd815 | |||
cadcca22f9 | |||
c04a0a0d8c | |||
61706336ce | |||
eb08109392 | |||
b23cb2014b | |||
4d979bf659 | |||
206d06dc7d | |||
4d8af4bd45 | |||
46ab288488 | |||
dd8c1ff71e | |||
ed1ac62153 | |||
7f7fd016cf | |||
6c093888b5 | |||
1440760aa5 | |||
105c11a8b2 | |||
795f8ac162 | |||
6dd4d2651a | |||
b2f030f349 | |||
2690eeeece | |||
098bd21008 | |||
2f474e979f | |||
2ab4da0ad9 | |||
28c5594094 | |||
6525bbb8bf | |||
1a9e3dfb15 | |||
c62f1995e7 | |||
883e38ae58 | |||
1b2d4dbc46 | |||
7dfb35233e | |||
d842022056 | |||
0a8ebc3058 | |||
8ccae5ddec | |||
cfb143f0fd | |||
0281b5bef6 |
2
deps/GSL
vendored
2
deps/GSL
vendored
Submodule deps/GSL updated: c31a9ad5e8...e64c97fc2c
2
deps/gsc-tool
vendored
2
deps/gsc-tool
vendored
Submodule deps/gsc-tool updated: a8a62c2667...0e6238a6ab
2
deps/json
vendored
2
deps/json
vendored
Submodule deps/json updated: e4643d1f1b...3780b41dd0
2
deps/minhook
vendored
2
deps/minhook
vendored
Submodule deps/minhook updated: 423d1e45af...f5485b8454
2
deps/zlib
vendored
2
deps/zlib
vendored
Submodule deps/zlib updated: 04f42ceca4...643e17b749
@ -1,4 +1,3 @@
|
|||||||
@echo off
|
@echo off
|
||||||
call git submodule update --init --recursive
|
call git submodule update --init --recursive
|
||||||
tools\windows\premake5.exe vs2022
|
tools\premake5.exe vs2022
|
||||||
pause
|
|
||||||
|
@ -63,13 +63,15 @@ namespace signatures
|
|||||||
|
|
||||||
bool process_gsc_ctx()
|
bool process_gsc_ctx()
|
||||||
{
|
{
|
||||||
const auto string_ref = find_string_ref("in call to builtin %s");
|
const auto string_ref = find_string_ref("in call to builtin %s \"%s\"");
|
||||||
if (!string_ref)
|
if (!string_ref)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
const auto gsc_ctx_ptr = *reinterpret_cast<size_t*>(string_ref - 0x8C);
|
const auto gsc_ctx_ptr = *reinterpret_cast<size_t*>(string_ref - 0xAD);
|
||||||
|
OutputDebugString(utils::string::va("string_ref: %p\n", string_ref));
|
||||||
|
OutputDebugString(utils::string::va("gsc_ctx_ptr: %p\n", gsc_ctx_ptr));
|
||||||
game::plutonium::gsc_ctx.set(gsc_ctx_ptr);
|
game::plutonium::gsc_ctx.set(gsc_ctx_ptr);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -83,7 +85,9 @@ namespace signatures
|
|||||||
}
|
}
|
||||||
|
|
||||||
const auto offset = *reinterpret_cast<size_t*>(string_ref + 5);
|
const auto offset = *reinterpret_cast<size_t*>(string_ref + 5);
|
||||||
game::plutonium::printf.set(string_ref + 4 + 5 + offset);
|
const auto printf_ptr = string_ref + 4 + 5 + offset;
|
||||||
|
OutputDebugString(utils::string::va("printf_ptr: %p\n", printf_ptr));
|
||||||
|
game::plutonium::printf.set(printf_ptr);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
BIN
tools/premake5.exe
Normal file
BIN
tools/premake5.exe
Normal file
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user