From d82ec27296cdb56bd5d35d6fe50d11a0423c65bd Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Wed, 30 Nov 2022 20:51:39 -0600 Subject: [PATCH] [nostalgia/tools/pack] Update for BufferWriter::buff() change --- src/nostalgia/tools/pack/pack.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nostalgia/tools/pack/pack.cpp b/src/nostalgia/tools/pack/pack.cpp index 06d0e04c..8d21536f 100644 --- a/src/nostalgia/tools/pack/pack.cpp +++ b/src/nostalgia/tools/pack/pack.cpp @@ -122,7 +122,7 @@ static ox::Error copy(ox::FileSystem *src, ox::FileSystem *dest, ox::CRString pa if (currentFile == "/.nostalgia") { continue; } - oxOutf("reading {}\n", name); + oxOutf("reading {}\n", currentFile); oxRequire(stat, src->stat(currentFile.c_str())); if (stat.fileType == ox::FileType::Directory) { oxReturnError(dest->mkdir(currentFile.c_str(), true)); @@ -182,7 +182,7 @@ static ox::Error preload(core::TypeStore *ts, ox::FileSystem *romFs, Preloader * } static ox::Error padbin(ox::BufferWriter *w, unsigned factor) noexcept { - return w->write(nullptr, factor - w->data()->size() % factor); + return w->write(nullptr, factor - w->buff().size() % factor); } ox::Error appendBinary(ox::Buffer *binBuff, ox::Buffer *fsBuff, GbaPreloader *pl) noexcept {