[keel] Cleanup
This commit is contained in:
parent
0cc6757c57
commit
a7af6c6660
@ -11,7 +11,9 @@
|
|||||||
namespace keel {
|
namespace keel {
|
||||||
|
|
||||||
static ox::Error pathToInode(
|
static ox::Error pathToInode(
|
||||||
keel::Context &ctx, ox::FileSystem &dest, ox::ModelObject &obj) noexcept {
|
keel::Context &ctx,
|
||||||
|
ox::FileSystem &dest,
|
||||||
|
ox::ModelObject &obj) noexcept {
|
||||||
auto &o = obj;
|
auto &o = obj;
|
||||||
auto type = static_cast<ox::FileAddressType>(o.at("type").unwrap()->get<int8_t>());
|
auto type = static_cast<ox::FileAddressType>(o.at("type").unwrap()->get<int8_t>());
|
||||||
auto &data = o.at("data").unwrap()->get<ox::ModelUnion>();
|
auto &data = o.at("data").unwrap()->get<ox::ModelUnion>();
|
||||||
@ -84,7 +86,10 @@ static ox::Error transformFileAddressesObj(
|
|||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
static ox::Error performPackTransforms(ManifestEntry &entry, Context &ctx, ox::Buffer &clawData) noexcept {
|
static ox::Error performPackTransforms(
|
||||||
|
ManifestEntry &entry,
|
||||||
|
Context &ctx,
|
||||||
|
ox::Buffer &clawData) noexcept {
|
||||||
oxRequireM(typeId, readAssetTypeId(clawData));
|
oxRequireM(typeId, readAssetTypeId(clawData));
|
||||||
for (auto const tr : packTransforms(ctx)) {
|
for (auto const tr : packTransforms(ctx)) {
|
||||||
bool changed{};
|
bool changed{};
|
||||||
@ -186,7 +191,11 @@ static ox::Error copy(
|
|||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
ox::Error pack(Manifest &manifest, keel::Context &ctx, ox::TypeStore &ts, ox::FileSystem &dest) noexcept {
|
ox::Error pack(
|
||||||
|
Manifest &manifest,
|
||||||
|
keel::Context &ctx,
|
||||||
|
ox::TypeStore &ts,
|
||||||
|
ox::FileSystem &dest) noexcept {
|
||||||
oxReturnError(copy(manifest, *ctx.rom, dest, "/"));
|
oxReturnError(copy(manifest, *ctx.rom, dest, "/"));
|
||||||
oxOut("Doing transforms\n");
|
oxOut("Doing transforms\n");
|
||||||
oxReturnError(transformClaw(manifest, ctx, ts, dest, "/"));
|
oxReturnError(transformClaw(manifest, ctx, ts, dest, "/"));
|
||||||
|
Loading…
Reference in New Issue
Block a user