ASAPCabinetFE
 
Loading...
Searching...
No Matches
main.cpp File Reference

Entry point for ASAPCabinetFE. More...

#include "version.h"
#include "core/app.h"
#include "core/first_run.h"
#include <curl/curl.h>
#include "log/logging.h"
#include "log/logger.h"
#include <SDL2/SDL.h>
#include <SDL2/SDL_ttf.h>
#include <SDL2/SDL_image.h>
#include <iostream>
#include <string>
#include <filesystem>
+ Include dependency graph for main.cpp:

Classes

struct  SDLBootstrap
 RAII struct for initializing and cleaning up SDL subsystems. More...
 

Functions

int main (int argc, char *argv[])
 Main entry point for ASAPCabinetFE.
 

Detailed Description

Entry point for ASAPCabinetFE.

This file contains the main entry point for the ASAPCabinetFE application. It initializes SDL subsystems, handles command-line arguments, and launches the App class to run the frontend. The SDLBootstrap struct manages SDL initialization and cleanup using RAII principles.

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

Main entry point for ASAPCabinetFE.

Handles command-line arguments to display version information or launch the application. Initializes SDL subsystems via SDLBootstrap, creates an App instance with the configuration file path, and runs the application.

Parameters
argcNumber of command-line arguments.
argvArray of command-line argument strings.
Returns
0 on successful execution or version display, non-zero on failure.
+ Here is the call graph for this function: