Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int geturl(lua_State *Ls) {
- std::string content = WebClient.DownloadString(lua_tostring(Ls, -1));
- pushstring(content);
- return 0;
- }
- getglobal(L, "game");
- pushcclosure(L, geturl);
- setfield(Ls, -2, "HttpGet");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement