diff --git a/src/sly_packer.cpp b/src/sly_packer.cpp index 8540d9d..ace1942 100644 --- a/src/sly_packer.cpp +++ b/src/sly_packer.cpp @@ -30,7 +30,7 @@ int main(int argc, char *argv[]) { stream_write(wac_ofs, (u32) 0); #ifdef NDEBUG - printf("Reading files"); + printf("Packing files"); #endif for (auto &p : std::filesystem::recursive_directory_iterator(input_dir_path)) { diff --git a/src/sly_unpacker.cpp b/src/sly_unpacker.cpp index a350c51..a472717 100644 --- a/src/sly_unpacker.cpp +++ b/src/sly_unpacker.cpp @@ -46,10 +46,10 @@ WACEntries parse_wac(std::istream &wac_data) { int main(int argc, char *argv[]) { try { if (argc <= 2) - throw std::runtime_error(std::string(argv[0]) + " "); + throw std::runtime_error(std::string(argv[0]) + " []"); const std::string wac_path = argv[1]; - const std::string output_path = argv[2]; + const std::string output_path = (argc == 3) ? argv[2] : wac_path + "/extracted"; std::string wal_path = wac_path; wal_path.back() = 'L';