From 67b2764dc79e4f3a3a62b08d7b923870c7771714 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Mon, 17 Jun 2019 23:11:01 -0500 Subject: [PATCH] [nostalgia/tools/pack] Cleanup unnecessary use of Qt --- src/nostalgia/tools/pack.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/nostalgia/tools/pack.cpp b/src/nostalgia/tools/pack.cpp index bda989e1..d3b5d7ef 100644 --- a/src/nostalgia/tools/pack.cpp +++ b/src/nostalgia/tools/pack.cpp @@ -7,9 +7,7 @@ */ #include -#include -#include -#include +#include #include #include #include @@ -23,8 +21,8 @@ using namespace ox; using namespace nostalgia::core; using namespace nostalgia::common; -ox::ValErr> loadFileBuff(QString path, ::size_t *sizeOut = nullptr) { - auto file = fopen(path.toUtf8(), "rb"); +ox::ValErr> loadFileBuff(std::string path, ::size_t *sizeOut = nullptr) { + auto file = fopen(path.c_str(), "rb"); if (file) { fseek(file, 0, SEEK_END); const auto size = ftell(file);