commit 3d218a98efc3aa2a64ede37b3c66f5b2c808e439 Author: Joshua Goins Date: Tue Mar 15 15:34:38 2022 -0400 Add initial files diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..68f4f5c --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*-build-*/ +build/* +.idea/ \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..6010aeb --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,12 @@ +project(Novus) + +add_subdirectory(libxiv) + +find_package(fmt) + +add_executable(novus + src/main.cpp) +target_include_directories(novus + PUBLIC + include) +target_link_libraries(novus PUBLIC libxiv fmt::fmt z) \ No newline at end of file diff --git a/libxiv b/libxiv new file mode 160000 index 0000000..610c515 --- /dev/null +++ b/libxiv @@ -0,0 +1 @@ +Subproject commit 610c515256a76f252f906644506767047a2a6894 diff --git a/src/main.cpp b/src/main.cpp new file mode 100644 index 0000000..f211523 --- /dev/null +++ b/src/main.cpp @@ -0,0 +1,16 @@ +#include + +#include "gamedata.h" + +int main(int argc, char* argv[]) { + if(argc < 3) { + fmt::print("novus [sqpack directory] [game path] [out path]"); + return -1; + } + + GameData data(argv[1]); + + data.extractFile(argv[2], argv[3]); + + return 0; +} \ No newline at end of file