OpenUT99-Plus
Unreal Engine 1, rebuilt from scratch
Loading...
Searching...
No Matches
config.h
Go to the documentation of this file.
1// UT .ini / .int files. Spec: docs/formats/ini.md; reference: tools/uini.py
2#pragma once
3#include <map>
4#include <string>
5#include <vector>
6
7namespace ut {
8
9// section -> key -> values in file order (keys like Paths repeat).
10using Ini = std::map<std::string, std::map<std::string, std::vector<std::string>>>;
11
12Ini parse_ini(const std::string& text);
13Ini read_ini(const std::string& path); // throws std::runtime_error if the file cannot be opened
14
15} // namespace ut
Definition collision.cpp:7
std::map< std::string, std::map< std::string, std::vector< std::string > > > Ini
Definition config.h:10
Ini parse_ini(const std::string &text)
Definition config.cpp:14
Ini read_ini(const std::string &path)
Definition config.cpp:31