[C++] How open App with game?

Moderator: andrewmac

2 posts Page 1 of 1
GoldNotch
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) { #ifdef TORQUE_DEBUG LIBRARY_HANDLE hGame = openLibrary("Torque6_DEBUG"); #else LIBRARY_HANDLE hGame = openLibrary("Torque6"); #endif 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
Timmy
Posts: 352
Joined: Thu Feb 05, 2015 3:20 am
by Timmy » Mon Aug 14, 2017 12:56 am
2 posts Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest