From 032aadafdf6673d5d809c3276d145651b49dcd60 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Tue, 6 Jul 2021 20:22:09 -0500 Subject: [PATCH] [nostalgia/tools/pack] Replace ox::Vector with ox::Buffer --- src/nostalgia/tools/pack.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nostalgia/tools/pack.cpp b/src/nostalgia/tools/pack.cpp index 79e0b4a5..73f3a93e 100644 --- a/src/nostalgia/tools/pack.cpp +++ b/src/nostalgia/tools/pack.cpp @@ -13,7 +13,7 @@ #include "pack/pack.hpp" -static ox::Error writeFileBuff(const ox::String &path, const ox::Vector &buff) noexcept { +static ox::Error writeFileBuff(const ox::String &path, const ox::Buffer &buff) noexcept { try { std::ofstream f(path.c_str(), std::ios::binary); f.write(buff.data(), static_cast(buff.size())); @@ -35,7 +35,7 @@ static ox::Error run(const ox::ClArgs &args) noexcept { oxErr("\033[31;1;1merror:\033[0m must specify a destination ROM file\n"); return OxError(1, "must specify a destination ROM file"); } - ox::Vector buff(32 * ox::units::MB); + ox::Buffer buff(32 * ox::units::MB); oxReturnError(ox::FileSystem32::format(buff.data(), buff.size())); ox::PassThroughFS src(argSrc.c_str()); ox::FileSystem32 dst(ox::FileStore32(buff.data(), buff.size()));