[nostalgia/tools/pack] Remove using namespaces
This commit is contained in:
parent
8037bc9535
commit
a2c8df83c6
@ -17,9 +17,6 @@
|
|||||||
|
|
||||||
#include "pack/pack.hpp"
|
#include "pack/pack.hpp"
|
||||||
|
|
||||||
using namespace std;
|
|
||||||
using namespace ox;
|
|
||||||
|
|
||||||
static void writeFileBuff(const std::string &path, std::vector<uint8_t> &buff) {
|
static void writeFileBuff(const std::string &path, std::vector<uint8_t> &buff) {
|
||||||
try {
|
try {
|
||||||
std::ofstream f(path, std::ios::binary);
|
std::ofstream f(path, std::ios::binary);
|
||||||
@ -29,7 +26,7 @@ static void writeFileBuff(const std::string &path, std::vector<uint8_t> &buff) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void run(ClArgs args) {
|
void run(ox::ClArgs args) {
|
||||||
std::string argSrc = args.getString("src").c_str();
|
std::string argSrc = args.getString("src").c_str();
|
||||||
std::string argDst = args.getString("dst").c_str();
|
std::string argDst = args.getString("dst").c_str();
|
||||||
if (argSrc == "") {
|
if (argSrc == "") {
|
||||||
@ -55,7 +52,7 @@ void run(ClArgs args) {
|
|||||||
|
|
||||||
int main(int argc, const char **args) {
|
int main(int argc, const char **args) {
|
||||||
try {
|
try {
|
||||||
run(ClArgs(argc, args));
|
run(ox::ClArgs(argc, args));
|
||||||
} catch (const ox::Error &err) {
|
} catch (const ox::Error &err) {
|
||||||
oxAssert(err, "pack failed");
|
oxAssert(err, "pack failed");
|
||||||
std::cerr << "pack failed...\n";
|
std::cerr << "pack failed...\n";
|
||||||
|
Loading…
Reference in New Issue
Block a user