[C++] How open App with game?

Moderator: andrewmac

2 posts Page 1 of 1
Posts: 6
Joined: Mon Nov 16, 2015 4:05 pm
by GoldNotch » Sun Aug 13, 2017 7:27 am
Hi. Directory of engine has project: Torque6App. And in fact when I launch Torque6App, it should launch game. What I should write in code that game was started from project?

Code: Select all

int main(int argc, const char **argv)
   LIBRARY_HANDLE hGame = openLibrary("Torque6_DEBUG");
   LIBRARY_HANDLE hGame = openLibrary("Torque6");

   mainFunc enter = (mainFunc)getLibraryFunc(hGame, "winmain");
   if (enter != 0)
     //What I should write here?
      return enter(0, NULL);
   return 0;

Sorry for my english and thanks for attention
2 posts Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest