#include "mxvk/mxvk.hpp"
#include "mxvk/mxvk_cfg.hpp"
#include <cstdlib>
#include <iostream>
#include <string>
Go to the source code of this file.
◆ main()
Definition at line 7 of file main.cpp.
7 {
8 try {
10 auto it = config.itemAtKey("global", "key", "0");
11 auto int_value = std::strtol(it.value.c_str(), 0, 0);
12 int_value += 1;
13 std::cout << "You ran this program: " << int_value << " times.\n";
14 config.setItem("global", "key", std::to_string(int_value));
16 std::cerr << std::format(
"Exception: {}\n", e.
text());
17 return EXIT_FAILURE;
18 }
19 return EXIT_SUCCESS;
20}
Parses and manages an INI-style configuration file.