Some bug fixes and change in pattern

This commit is contained in:
msqr1
2024-01-17 08:11:36 -08:00
parent 0b49fd7eca
commit 97ba7ee1b8
10 changed files with 52 additions and 91 deletions

View File

@@ -34,12 +34,15 @@ bool genericModel::loadModel() {
fireEv("error", "Unable to fetch model");
return false;
}
if(!extractModel(".")) {
if(!extractModel()) {
fireEv("error", "Unable to extract model");
return false;
}
fs::remove("opfs/model.tzst");
if(!checkModel()) {
fireEv("error", "Model URL contains invalid model files");
fs::remove_all(".");
return false;
}
std::ofstream idFile("id");
if(!idFile.is_open()) {