Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. int geturl(lua_State *Ls) {
  2. std::string content = WebClient.DownloadString(lua_tostring(Ls, -1));
  3. pushstring(content);
  4.  
  5. return 0;
  6. }
  7.  
  8. getglobal(L, "game");
  9. pushcclosure(L, geturl);
  10. setfield(Ls, -2, "HttpGet");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement