Page 1 of 1

[C++] How open App with game?

Posted: Sun Aug 13, 2017 7:27 am
by GoldNotch
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

Re: [C++] How open App with game?

Posted: Mon Aug 14, 2017 12:56 am
by Timmy