Minor refactor

This commit is contained in:
MihailRis
2023-12-20 21:21:59 +03:00
parent 3ad903449e
commit e0aee76f41
4 changed files with 36 additions and 9 deletions
+13
View File
@@ -3,10 +3,23 @@
#include <string>
#include <vector>
#include <stdexcept>
#include <filesystem>
class EnginePaths;
class contentpack_error : public std::runtime_error {
std::string packId;
std::filesystem::path folder;
public:
contentpack_error(std::string packId,
std::filesystem::path folder,
std::string message);
std::string getPackId() const;
std::filesystem::path getFolder() const;
};
struct ContentPack {
std::string id = "none";
std::string title = "untitled";