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 {