[nostalgia/toos/pack] Cleanup
This commit is contained in:
@@ -58,11 +58,10 @@ static ox::Error run(const ox::ClArgs &args) noexcept {
|
||||
}
|
||||
ox::Buffer dstBuff(32 * ox::units::MB);
|
||||
oxReturnError(ox::FileSystem32::format(dstBuff.data(), dstBuff.size()));
|
||||
auto src = ox::make_unique<ox::PassThroughFS>(argSrc);
|
||||
ox::FileSystem32 dst(ox::FileStore32(dstBuff.data(), dstBuff.size()));
|
||||
core::TypeStore ts(src.get());
|
||||
auto ctx = foundation::init(std::move(src), "nost-pack");
|
||||
oxReturnError(pack(ctx.get(), &ts, ctx->rom.get(), &dst));
|
||||
const auto ctx = foundation::init(ox::make_unique<ox::PassThroughFS>(argSrc), "nost-pack");
|
||||
core::TypeStore ts(ctx->rom.get());
|
||||
oxReturnError(pack(ctx.get(), &ts, &dst));
|
||||
oxRequireM(pl, GbaPreloader::make());
|
||||
oxReturnError(preload(&ts, &dst, pl.get()));
|
||||
oxReturnError(dst.resize());
|
||||
|
||||
Reference in New Issue
Block a user