OpenUT99-Plus
Unreal Engine 1, rebuilt from scratch
Loading...
Searching...
No Matches
vfs.h
Go to the documentation of this file.
1// Package lookup: [Core.System] Paths, then the download cache (cache.ini). Reference: tools/uini.py package_paths
2#pragma once
3#include <map>
4#include <string>
5
6#include "config.h"
7
8namespace ut {
9
10class Vfs {
11public:
12 Vfs(const std::string& root, const Ini& ini); // root = install directory (holds System/)
13 std::string find(const std::string& package) const; // case-insensitive; "" if not found
14 const std::map<std::string, std::string>& packages() const { return paths_; }
15
16private:
17 std::map<std::string, std::string> paths_; // lower-case name -> path
18};
19
20} // namespace ut
const std::map< std::string, std::string > & packages() const
Definition vfs.h:14
Vfs(const std::string &root, const Ini &ini)
Definition vfs.cpp:24
std::string find(const std::string &package) const
Definition vfs.cpp:50
Definition collision.cpp:7
std::map< std::string, std::map< std::string, std::vector< std::string > > > Ini
Definition config.h:10