| 10 | safetyhook::InlineHook CopyStringFromSave; |
| 11 | |
| 12 | static int __fastcall LoadSaveFileList_Hook(int thisPtr, int, const wchar_t* Source, int a3, int a4) |
| 13 | { |
| 14 | // Replace wildcard with two-char pattern for save slots |
| 15 | if (wcscmp(Source, L"ds_slot_*.deadspacesaved") == 0) |
| 16 | { |
| 17 | Source = L"ds_slot_??.deadspacesaved"; |
| 18 | } |
| 19 | else if (wcscmp(Source, L"ds_slot_*.deadspace2saved") == 0) |
| 20 | { |
| 21 | Source = L"ds_slot_??.deadspace2saved"; |
| 22 | } |
| 23 | |
| 24 | return LoadSaveFileList.thiscall<int>(thisPtr, Source, a3, a4); |
| 25 | } |
| 26 | |
| 27 | static errno_t __cdecl CopyStringFromSave_Hook(wchar_t* Destination, wchar_t* Source) |
| 28 | { |
nothing calls this directly
no outgoing calls
no test coverage detected