- Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathmain.cpp
More file actions
Latest commit
28 lines (23 loc) · 440 Bytes
/
Copy pathmain.cpp
File metadata and controls
28 lines (23 loc) · 440 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include<windows.h>
#include<cstdio>
#include"DebugLoop.h"
intmain()
{
printf("UnrealKey v0.2.0 - " __DATE__ "\n");
printf("https://github.com/devinacker/UnrealKey\n\n");
int rc = 0;
int argc = 0;
LPWSTR *argv = CommandLineToArgvW(GetCommandLineW(), &argc);
if (argc < 2)
{
if (argv)
printf("usage: %ws path_to_game_exe\n", argv[0]);
rc = 1;
}
else
{
rc = DebugLoop(argv[1]);
}
LocalFree(argv);
return rc;
}