Turn the VFS into a class, to be able to reuse it for other purposes.

This commit is contained in:
Henrik Rydgård committed 2023-03-06 16:42:47 +01:00
1 parent ebd8a63914
commit 3b39e9e068
29 files changed
+106 -95

No files matched your search

+1 -1
View File
@@ -8,7 +8,7 @@ namespace json {
JsonReader::JsonReader(const std::string &filename) {
size_t buf_size;
buffer_ = (char *)VFSReadFile(filename.c_str(), &buf_size);
buffer_ = (char *)g_VFS.ReadFile(filename.c_str(), &buf_size);
if (buffer_) {
parse();
} else {