diff --git a/explorer/CMakeLists.txt b/explorer/CMakeLists.txt index afb78a0..46f0ce2 100644 --- a/explorer/CMakeLists.txt +++ b/explorer/CMakeLists.txt @@ -3,18 +3,17 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON) -add_executable(explorer +add_executable(novus-sagasu src/main.cpp src/mainwindow.cpp src/filetreewindow.cpp src/filepropertieswindow.cpp) -target_include_directories(explorer +target_include_directories(novus-sagasu PUBLIC include) -target_link_libraries(explorer PUBLIC physis z ${LIBRARIES} Qt6::Core Qt6::Widgets novus-common) +target_link_libraries(novus-sagasu PUBLIC physis z ${LIBRARIES} Qt6::Core Qt6::Widgets novus-common) -install(TARGETS explorer - DESTINATION "${INSTALL_BIN_PATH}") +install(TARGETS novus-sagasu ${KF${QT_MAJOR_VERSION}_INSTALL_TARGETS_DEFAULT_ARGS}) if(WIN32) get_target_property(QMAKE_EXE Qt5::qmake IMPORTED_LOCATION) @@ -24,8 +23,8 @@ if(WIN32) find_program(WINDEPLOYQT_EXECUTABLE windeployqt HINTS "${QT_BIN_DIR}") # Run windeployqt immediately after build - add_custom_command(TARGET explorer + add_custom_command(TARGET novus-sagasu POST_BUILD - COMMAND "${WINDEPLOYQT_ENV_SETUP}" && "${WINDEPLOYQT_EXECUTABLE}" \"$\" + COMMAND "${WINDEPLOYQT_ENV_SETUP}" && "${WINDEPLOYQT_EXECUTABLE}" \"$\" ) endif() diff --git a/explorer/README.md b/explorer/README.md index f658623..2bab8e4 100644 --- a/explorer/README.md +++ b/explorer/README.md @@ -1,11 +1,3 @@ -# explorer +# Sagasu -This tool can list known files by libxiv, such as excel sheets. - -## Usage - -You must pass the path to your `sqpack` directory as the first argument. - -```bash -$ explorer "C:\Program Files (x86)\SquareEnix\Final Fantasy XIV\game\sqpack" -``` +Useful for exploring all known files in FFXIV data archives. It can view models and excel sheets within the program, without having to boot up Karuku or Armoury. diff --git a/explorer/src/filetreewindow.cpp b/explorer/src/filetreewindow.cpp index a58b78a..088eef4 100644 --- a/explorer/src/filetreewindow.cpp +++ b/explorer/src/filetreewindow.cpp @@ -22,7 +22,7 @@ FileTreeWindow::FileTreeWindow(GameData* data, QWidget* parent) : QWidget(parent addPath(QStringLiteral("exd/root.exl")); - auto sheetNames = physis_gamedata_get_all_sheet_names(data); + /*auto sheetNames = physis_gamedata_get_all_sheet_names(data); for(int i = 0; i < sheetNames.name_count; i++) { auto sheetName = sheetNames.names[i]; @@ -38,7 +38,7 @@ FileTreeWindow::FileTreeWindow(GameData* data, QWidget* parent) : QWidget(parent addPath(QStringLiteral("exd/") + QString::fromStdString(path)); } } - } + }*/ treeWidget->setContextMenuPolicy(Qt::CustomContextMenu); connect(treeWidget, &QTreeWidget::customContextMenuRequested, this, [this, treeWidget](const QPoint& pos) { diff --git a/explorer/src/main.cpp b/explorer/src/main.cpp index 019400e..a59ba2d 100644 --- a/explorer/src/main.cpp +++ b/explorer/src/main.cpp @@ -13,8 +13,7 @@ int main(int argc, char* argv[]) { QApplication app(argc, argv); - customizeAboutData( - QStringLiteral("explorer"), QStringLiteral("Explorer"), QStringLiteral("Program to explore FFXIV dat files.")); + customizeAboutData(QStringLiteral("sagasu"), QStringLiteral("Sagasu"), QStringLiteral("Program to explore FFXIV data archives.")); physis_initialize_logging(); diff --git a/explorer/src/mainwindow.cpp b/explorer/src/mainwindow.cpp index f030ab6..d8e392c 100644 --- a/explorer/src/mainwindow.cpp +++ b/explorer/src/mainwindow.cpp @@ -19,7 +19,7 @@ #include "filetreewindow.h" MainWindow::MainWindow(GameData* data) : data(data) { - setWindowTitle(QStringLiteral("explorer")); + setWindowTitle(QStringLiteral("Sagasu")); auto fileMenu = menuBar()->addMenu(QStringLiteral("File")); @@ -37,7 +37,7 @@ MainWindow::MainWindow(GameData* data) : data(data) { helpMenu->addSeparator(); - auto aboutNovusAction = helpMenu->addAction(QStringLiteral("About explorer")); + auto aboutNovusAction = helpMenu->addAction(QStringLiteral("About Sagasu")); aboutNovusAction->setIcon(QIcon::fromTheme(QStringLiteral("help-about"))); connect(aboutNovusAction, &QAction::triggered, this, [this] { auto window = new KAboutApplicationDialog(KAboutData::applicationData(), this);