Reads VPX INI files to extract window settings. More...
#include <vpinballx_ini_reader.h>
Public Member Functions | |
VPinballXIniReader (const std::string &iniPath) | |
Constructs a VPinballXIniReader instance. | |
std::optional< VPinballXIniSettings > | readIniSettings () const |
Reads settings from the VPX INI file. | |
Reads VPX INI files to extract window settings.
This class parses a VPX INI file to retrieve settings for playfield, backglass, and DMD windows, returning them as a VPinballXIniSettings struct. It is used to configure screenshot capture or other VPX-related operations.
|
explicit |
Constructs a VPinballXIniReader instance.
Initializes the reader with the path to the VPX INI file.
iniPath | The path to the VPX INI file. |
std::optional< VPinballXIniSettings > VPinballXIniReader::readIniSettings | ( | ) | const |
Reads settings from the VPX INI file.
Parses the INI file and returns the extracted settings as a VPinballXIniSettings struct, or an empty optional if parsing fails.