[nostalgia/tools/pack] Make Pack lib operate on generic ox::FileSystems

This commit is contained in:
2021-04-17 17:24:37 -05:00
parent 9822a6ec47
commit 304a43a4b4
3 changed files with 17 additions and 14 deletions
+2 -2
View File
@@ -13,7 +13,7 @@
#include "pack/pack.hpp"
static ox::Error writeFileBuff(const ox::String &path, ox::Vector<char> &buff) {
static ox::Error writeFileBuff(const ox::String &path, ox::Vector<char> &buff) noexcept {
try {
std::ofstream f(path.c_str(), std::ios::binary);
f.write(buff.data(), static_cast<intptr_t>(buff.size()));
@@ -23,7 +23,7 @@ static ox::Error writeFileBuff(const ox::String &path, ox::Vector<char> &buff) {
return OxError(0);
}
static ox::Error run(const ox::ClArgs &args) {
static ox::Error run(const ox::ClArgs &args) noexcept {
auto argSrc = args.getString("src", "");
auto argDst = args.getString("dst", "");
if (argSrc == "") {