Change base structure to use errors instead

This commit is contained in:
msqr1
2024-01-20 00:41:38 -08:00
parent 91a21271d5
commit 2a426b983c
19 changed files with 147 additions and 198 deletions

View File

@@ -15,12 +15,12 @@
namespace fs = std::filesystem;
struct genericModel : genericObj {
struct genericModel {
const std::string url{};
const std::string id{};
static bool extractModel(char *name);
static bool checkId(const std::string& id);
virtual bool checkModel() = 0;
bool loadModel(const std::string& storepath);
genericModel(const std::string &url, const std::string &storepath, const std::string &id, int index);
genericModel(const std::string &url, const std::string &storepath, const std::string &id);
};