|
Fray Engine
|
Go to the source code of this file.
Functions | |
| static F_err | launchElectron (const char *executable, F_ushort port) |
| Starts the Electron UI (npm run start in the Electron folder) without waiting for it. The Electron folder is located relative to the Engine executable (three directories up, then "Electron"). The UI is told the engine's TCP port through the FRAY_ENGINE_PORT environment variable. | |
| F_err | main (F_long argc, F_char *argv[]) |
| Engine entry point: builds the managers, starts the TCP server and message threads, then blocks until quit. Runs on the main thread. Pass --no-ui to skip launching Electron. Engine startup logs are buffered until managers are ready, and shutdown logs are stored until the application log worker stops. | |
Starts the Electron UI (npm run start in the Electron folder) without waiting for it. The Electron folder is located relative to the Engine executable (three directories up, then "Electron"). The UI is told the engine's TCP port through the FRAY_ENGINE_PORT environment variable.
| executable | Path of the running Engine executable (argv[0]). |
| port | TCP port the engine server is listening on. |
Engine entry point: builds the managers, starts the TCP server and message threads, then blocks until quit. Runs on the main thread. Pass --no-ui to skip launching Electron. Engine startup logs are buffered until managers are ready, and shutdown logs are stored until the application log worker stops.
| argc | Number of command-line arguments. |
| argv | Command-line arguments; argv[0] locates the logs folder and the Electron folder. |