From fb037761f653d1b6a99624ad657660fc5b07c025 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Tue, 10 Oct 2023 17:55:39 -0400 Subject: [PATCH] exdviewer: Rename to Karuku --- exdviewer/CMakeLists.txt | 15 ++++++++------- exdviewer/README.md | 15 +++------------ exdviewer/src/main.cpp | 3 +-- exdviewer/src/mainwindow.cpp | 4 ++-- 4 files changed, 14 insertions(+), 23 deletions(-) diff --git a/exdviewer/CMakeLists.txt b/exdviewer/CMakeLists.txt index 62025f9..cd858a2 100644 --- a/exdviewer/CMakeLists.txt +++ b/exdviewer/CMakeLists.txt @@ -1,16 +1,17 @@ # SPDX-FileCopyrightText: 2023 Joshua Goins # SPDX-License-Identifier: CC0-1.0 -add_executable(exdviewer +add_executable(novus-karuku src/main.cpp src/mainwindow.cpp) -target_include_directories(exdviewer +target_include_directories(novus-karuku PUBLIC include) -target_link_libraries(exdviewer PUBLIC physis z ${LIBRARIES} Qt6::Core Qt6::Widgets exdpart novus-common) -install(TARGETS exdviewer - DESTINATION "${INSTALL_BIN_PATH}") + +target_link_libraries(novus-karuku PUBLIC physis z ${LIBRARIES} Qt6::Core Qt6::Widgets exdpart novus-common) + +install(TARGETS novus-karuku ${KF${QT_MAJOR_VERSION}_INSTALL_TARGETS_DEFAULT_ARGS}) if(WIN32) get_target_property(QMAKE_EXE Qt5::qmake IMPORTED_LOCATION) @@ -20,8 +21,8 @@ if(WIN32) find_program(WINDEPLOYQT_EXECUTABLE windeployqt HINTS "${QT_BIN_DIR}") # Run windeployqt immediately after build - add_custom_command(TARGET exdviewer + add_custom_command(TARGET novus-karuku POST_BUILD - COMMAND "${WINDEPLOYQT_ENV_SETUP}" && "${WINDEPLOYQT_EXECUTABLE}" \"$\" + COMMAND "${WINDEPLOYQT_ENV_SETUP}" && "${WINDEPLOYQT_EXECUTABLE}" \"$\" ) endif() diff --git a/exdviewer/README.md b/exdviewer/README.md index 98345f1..0f8858a 100644 --- a/exdviewer/README.md +++ b/exdviewer/README.md @@ -1,14 +1,5 @@ -# EXD Viewer +# Karuku -EXD Viewer can view excel data from the game, and can decode well known sheets using Garlond Tools. - -![exdviewer screenshot](../misc/exdviewer-screenshot.png) - -## Usage - -You must pass the path to your `sqpack` directory as the first argument. - -```bash -$ exdviewer "C:\Program Files (x86)\SquareEnix\Final Fantasy XIV\game\sqpack" -``` +EXD Viewer can view excel data from the game, and can decode well known sheets using Garlond Tools if you have the definitions. +![Screenshot](../misc/exdviewer-screenshot.png) diff --git a/exdviewer/src/main.cpp b/exdviewer/src/main.cpp index ed2425e..0d5908c 100644 --- a/exdviewer/src/main.cpp +++ b/exdviewer/src/main.cpp @@ -11,8 +11,7 @@ int main(int argc, char* argv[]) { QApplication app(argc, argv); - customizeAboutData( - QStringLiteral("exdviewer"), QStringLiteral("EXDViewer"), QStringLiteral("Program to view FFXIV Excel files.")); + customizeAboutData(QStringLiteral("karuku"), QStringLiteral("Karuku"), QStringLiteral("Program to view FFXIV Excel files.")); const QString gameDir{getGameDirectory()}; const std::string gameDirStd{gameDir.toStdString()}; diff --git a/exdviewer/src/mainwindow.cpp b/exdviewer/src/mainwindow.cpp index 5471b4e..c5055ee 100644 --- a/exdviewer/src/mainwindow.cpp +++ b/exdviewer/src/mainwindow.cpp @@ -18,7 +18,7 @@ #include "exdpart.h" MainWindow::MainWindow(GameData* data) : data(data) { - setWindowTitle(QStringLiteral("exdviewer")); + setWindowTitle(QStringLiteral("Karuku")); setMinimumSize(1280, 720); auto fileMenu = menuBar()->addMenu(QStringLiteral("File")); @@ -37,7 +37,7 @@ MainWindow::MainWindow(GameData* data) : data(data) { helpMenu->addSeparator(); - auto aboutNovusAction = helpMenu->addAction(QStringLiteral("About exdviewer")); + auto aboutNovusAction = helpMenu->addAction(QStringLiteral("About Karuku")); aboutNovusAction->setIcon(QIcon::fromTheme(QStringLiteral("help-about"))); connect(aboutNovusAction, &QAction::triggered, this, [this] { auto window = new KAboutApplicationDialog(KAboutData::applicationData(), this);