mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-10-14 21:09:41 -07:00
move entry point name redirection helper to MSCRT layer
This commit is contained in:
1 parent
e1b7168605
commit
b0db2b19f8
2 files changed
+20
No files matched your search
@@ -1,6 +1,22 @@
|
||||
// Copyright (c) Epic Games Tools
|
||||
// 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
|
||||
mscrt_delay_load_helper_name_from_machine(COFF_MachineType machine)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user