mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-04 04:48:40 +00:00
move entry point name redirection helper to MSCRT layer
This commit is contained in:
committed by
Ryan Fleury
parent
e1b7168605
commit
b0db2b19f8
@@ -1,6 +1,22 @@
|
|||||||
// Copyright (c) Epic Games Tools
|
// Copyright (c) Epic Games Tools
|
||||||
// Licensed under the MIT license (https://opensource.org/license/mit/)
|
// Licensed under the MIT license (https://opensource.org/license/mit/)
|
||||||
|
|
||||||
|
internal String8
|
||||||
|
msvcrt_ctr_entry_from_user_entry(String8 user_entry)
|
||||||
|
{
|
||||||
|
String8 crt_entry = {0};
|
||||||
|
if (str8_match_lit("wmain", user_entry, 0)) {
|
||||||
|
crt_entry = str8_lit("wmainCRTStartup");
|
||||||
|
} else if (str8_match_lit("main", user_entry, 0)) {
|
||||||
|
crt_entry = str8_lit("mainCRTStartup");
|
||||||
|
} else if (str8_match_lit("WinMain", user_entry, 0)) {
|
||||||
|
crt_entry = str8_lit("WinMainCRTStartup");
|
||||||
|
} else if (str8_match_lit("wWinMain", user_entry, 0)) {
|
||||||
|
crt_entry = str8_lit("wWinMainCRTStartup");
|
||||||
|
}
|
||||||
|
return crt_entry;
|
||||||
|
}
|
||||||
|
|
||||||
internal String8
|
internal String8
|
||||||
mscrt_delay_load_helper_name_from_machine(COFF_MachineType machine)
|
mscrt_delay_load_helper_name_from_machine(COFF_MachineType machine)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -343,6 +343,10 @@ typedef struct MSCRT_ParsedFuncInfoV4
|
|||||||
MSCRT_IP2State32V4 ip2state_map;
|
MSCRT_IP2State32V4 ip2state_map;
|
||||||
} MSCRT_ParsedFuncInfoV4;
|
} MSCRT_ParsedFuncInfoV4;
|
||||||
|
|
||||||
|
//- Entry Point
|
||||||
|
|
||||||
|
internal String8 msvcrt_ctr_entry_from_user_entry(String8 user_entry_point);
|
||||||
|
|
||||||
//- Delay Load Helper
|
//- Delay Load Helper
|
||||||
|
|
||||||
internal String8 mscrt_delay_load_helper_name_from_machine(COFF_MachineType machine);
|
internal String8 mscrt_delay_load_helper_name_from_machine(COFF_MachineType machine);
|
||||||
|
|||||||
Reference in New Issue
Block a user