------------------------------------------------------------------------------
| 34 | |
| 35 | //------------------------------------------------------------------------------ |
| 36 | void Platform::init() |
| 37 | { |
| 38 | StdConsole::create(); |
| 39 | stdConsole->enable(true); |
| 40 | |
| 41 | // init process control stuff |
| 42 | ProcessControlInit(); |
| 43 | |
| 44 | Con::printf("Initializing platform..."); |
| 45 | |
| 46 | // Set the platform variable for the scripts |
| 47 | Con::setVariable( "$platform", "x86UNIX" ); |
| 48 | #if defined(__linux__) |
| 49 | Con::setVariable( "$platformUnixType", "Linux" ); |
| 50 | #elif defined(__OpenBSD__) |
| 51 | Con::setVariable( "$platformUnixType", "OpenBSD" ); |
| 52 | #else |
| 53 | Con::setVariable( "$platformUnixType", "Unknown" ); |
| 54 | #endif |
| 55 | |
| 56 | Input::init(); |
| 57 | |
| 58 | //installRedBookDevices(); |
| 59 | |
| 60 | #ifndef TORQUE_DEDICATED |
| 61 | // if we're not dedicated do more initialization |
| 62 | InitWindowingSystem(); |
| 63 | #endif |
| 64 | } |
| 65 | |
| 66 | //------------------------------------------------------------------------------ |
| 67 | void Platform::shutdown() |
nothing calls this directly
no test coverage detected