diff --git a/sagasu/CMakeLists.txt b/sagasu/CMakeLists.txt index 85c41a3..84884df 100644 --- a/sagasu/CMakeLists.txt +++ b/sagasu/CMakeLists.txt @@ -22,6 +22,6 @@ target_sources(novus-sagasu PRIVATE src/filepropertieswindow.cpp src/filetreemodel.cpp) target_include_directories(novus-sagasu PRIVATE include) -target_link_libraries(novus-sagasu PRIVATE Qt6::Concurrent hexpart exlpart mdlpart exdpart texpart novus-sagasu-static) +target_link_libraries(novus-sagasu PRIVATE Qt6::Concurrent shpkpart hexpart exlpart mdlpart exdpart texpart novus-sagasu-static) install(TARGETS novus-sagasu ${KF${QT_MAJOR_VERSION}_INSTALL_TARGETS_DEFAULT_ARGS}) diff --git a/sagasu/src/mainwindow.cpp b/sagasu/src/mainwindow.cpp index f47022a..205aed2 100644 --- a/sagasu/src/mainwindow.cpp +++ b/sagasu/src/mainwindow.cpp @@ -16,6 +16,7 @@ #include "filetreewindow.h" #include "hexpart.h" #include "mdlpart.h" +#include "shpkpart.h" #include "texpart.h" MainWindow::MainWindow(QString gamePath, GameData *data) @@ -92,6 +93,10 @@ void MainWindow::refreshParts(QString path) auto texWidget = new TexPart(data); texWidget->load(file); partHolder->addTab(texWidget, QStringLiteral("Texture")); + } else if (info.completeSuffix() == QStringLiteral("shpk")) { + auto shpkWidget = new SHPKPart(data); + shpkWidget->load(file); + partHolder->addTab(shpkWidget, QStringLiteral("Shader Package")); } auto hexWidget = new HexPart();