ASAPCabinetFE
 
Loading...
Searching...
No Matches
first_run.h File Reference

Declares the runInitialConfig function for initial configuration in ASAPCabinetFE. More...

#include "config/iconfig_service.h"
#include "config/ui/config_ui.h"
#include "ui/imgui_manager.h"
#include <SDL2/SDL.h>
+ Include dependency graph for first_run.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool runInitialConfig (IConfigService *configService, IKeybindProvider *keybindProvider, const std::string &configPath)
 Executes the initial configuration setup.
 

Detailed Description

Declares the runInitialConfig function for initial configuration in ASAPCabinetFE.

This header provides the runInitialConfig function, which executes the initial configuration setup using a configuration service and a specified configuration file path. It integrates with ImGuiManager and ConfigUI to render the configuration UI during the first run of the application.

Function Documentation

◆ runInitialConfig()

bool runInitialConfig ( IConfigService configService,
IKeybindProvider keybindProvider,
const std::string &  configPath 
)

Executes the initial configuration setup.

This function initializes and runs the configuration UI using the provided configuration service and configuration file path. It sets up an SDL window and renderer, uses ImGuiManager for ImGui rendering, and applies settings via ConfigUI.

Parameters
configServiceThe configuration service for managing settings.
configPathThe file path to the configuration file.
Returns
True if the configuration was successfully applied, false otherwise.
+ Here is the call graph for this function: