Compare commits

..

No commits in common. "43a87b606e7f22327f0aea01170cb078f978f5da" and "89fab5cc208729a9ef6564d6b4172a0c9e0cd3bb" have entirely different histories.

4 changed files with 4 additions and 17 deletions

View File

@ -74,10 +74,7 @@ Result<Buffer> stripClawHeader(const ox::Buffer &buff) noexcept {
Result<ModelObject> readClaw(TypeStore &ts, const char *buff, std::size_t buffSz) noexcept { Result<ModelObject> readClaw(TypeStore &ts, const char *buff, std::size_t buffSz) noexcept {
oxRequire(header, readClawHeader(buff, buffSz)); oxRequire(header, readClawHeader(buff, buffSz));
auto const [t, tdErr] = ts.getLoad(header.typeName, header.typeVersion, header.typeParams); oxRequire(t, ts.getLoad(header.typeName, header.typeVersion, header.typeParams));
if (tdErr) {
return OxError(3, "Could not load type descriptor");
}
ModelObject obj; ModelObject obj;
oxReturnError(obj.setType(t)); oxReturnError(obj.setType(t));
switch (header.fmt) { switch (header.fmt) {

View File

@ -18,10 +18,8 @@ arch = platform.machine()
host_env = f'{os}-{arch}' host_env = f'{os}-{arch}'
# get current build type # get current build type
with open(".current_build", "r") as f: with open(".current_build","r") as f:
current_build = f.readlines()[0] current_build = f.readlines()[0]
if current_build[len(current_build) - 1] == '\n':
current_build = current_build[:len(current_build) - 1]
project_dir = sys.argv[1] project_dir = sys.argv[1]
project_name = sys.argv[2] project_name = sys.argv[2]

View File

@ -125,11 +125,7 @@ ox::Error preloadDir(
auto const dir = ox::sfmt("{}{}/", path, name); auto const dir = ox::sfmt("{}{}/", path, name);
oxReturnError(preloadDir(ts, romFs, pl, dir)); oxReturnError(preloadDir(ts, romFs, pl, dir));
} else { } else {
auto const err = preloadObj(ts, romFs, pl, filePath); oxReturnError(preloadObj(ts, romFs, pl, filePath));
if (err) {
oxErrf("\033[31;1;1mCould not preload {}:\n\t{}\n", filePath, toStr(err));
return err;
}
} }
} }
return {}; return {};

View File

@ -120,11 +120,7 @@ static ox::Error transformClaw(
auto const dir = ox::sfmt("{}{}/", path, name); auto const dir = ox::sfmt("{}{}/", path, name);
oxReturnError(transformClaw(ctx, ts, dest, dir)); oxReturnError(transformClaw(ctx, ts, dest, dir));
} else { } else {
auto const err = doTransformations(ctx, ts, dest, filePath); oxReturnError(doTransformations(ctx, ts, dest, filePath));
if (err) {
oxErrf("\033[31;1;1mCould not do transformations for {}:\n\t{}\n", filePath, toStr(err));
return err;
}
} }
} }
return {}; return {};