You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
372 B
23 lines
372 B
|
8 years ago
|
#include <string>
|
||
|
|
|
||
|
|
#include "../types.h"
|
||
|
|
#include "stubs.h"
|
||
|
|
|
||
|
|
static std::string build_cmdline(int argc, char **argv)
|
||
|
|
{
|
||
|
|
std::string str;
|
||
|
|
for (int i = 1; i < argc; i++) {
|
||
|
|
if (i != 1) {
|
||
|
|
str += ' ';
|
||
|
|
}
|
||
|
|
str += argv[i];
|
||
|
|
}
|
||
|
|
return str;
|
||
|
|
}
|
||
|
|
|
||
|
|
int main(int argc, char **argv)
|
||
|
8 years ago
|
{
|
||
|
8 years ago
|
auto cmdline = build_cmdline(argc, argv);
|
||
|
|
return WinMain(NULL, NULL, cmdline.c_str(), 0);
|
||
|
|
}
|