mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-24 19:43:33 +01:00
18 lines
473 B
C++
18 lines
473 B
C++
#include "metrics.h"
|
|
#include "vcpkg_Checks.h"
|
|
#include "vcpkg_Files.h"
|
|
#include <Windows.h>
|
|
|
|
using namespace vcpkg;
|
|
|
|
int WINAPI WinMain(_In_ HINSTANCE, _In_opt_ HINSTANCE, _In_ LPSTR, _In_ int)
|
|
{
|
|
LPWSTR* szArgList;
|
|
int argCount;
|
|
|
|
szArgList = CommandLineToArgvW(GetCommandLineW(), &argCount);
|
|
|
|
Checks::check_exit(argCount == 2, "Requires exactly one argument, the path to the payload file");
|
|
Upload(Files::read_contents(szArgList[1]).get_or_throw());
|
|
}
|