lua filesystem access fix

This commit is contained in:
MihailRis
2024-02-15 11:19:51 +03:00
parent a5061a888c
commit e21b607f2d
3 changed files with 56 additions and 23 deletions
+6
View File
@@ -3,12 +3,18 @@
#include <string>
#include <vector>
#include <stdexcept>
#include <filesystem>
#include "../content/ContentPack.h"
namespace fs = std::filesystem;
class files_access_error : public std::runtime_error {
public:
files_access_error(const std::string& msg) : std::runtime_error(msg) {}
};
class EnginePaths {
fs::path userfiles {"."};
fs::path resources {"res"};