[Command] Add openLink command

This commit is contained in:
momo5502 2016-12-18 17:42:25 +01:00
parent 241915d37b
commit 2b226dbcdb

View File

@ -253,6 +253,14 @@ namespace Components
//Logger::Print("Successfully teleported player!\n");
//Toast::Show("cardicon_abduction", "Success", "You have been teleported!", 3000);
});
Command::Add("openLink", [](Command::Params* params)
{
if (params->length() > 1)
{
ShellExecuteA(NULL, "open", params->get(1), 0, 0, SW_SHOWNORMAL);
}
});
}
Command::~Command()