1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-04-25 21:27:45 +00:00

Add initial files

This commit is contained in:
Joshua Goins 2022-03-15 15:34:38 -04:00
commit 3d218a98ef
4 changed files with 32 additions and 0 deletions

3
.gitignore vendored Normal file
View file

@ -0,0 +1,3 @@
*-build-*/
build/*
.idea/

12
CMakeLists.txt Normal file
View file

@ -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)

1
libxiv Submodule

@ -0,0 +1 @@
Subproject commit 610c515256a76f252f906644506767047a2a6894

16
src/main.cpp Normal file
View file

@ -0,0 +1,16 @@
#include <fmt/format.h>
#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;
}