1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-04-25 05:17:44 +00:00

exdviewer: Rename to Karuku

This commit is contained in:
Joshua Goins 2023-10-10 17:55:39 -04:00
parent edd21efe92
commit fb037761f6
4 changed files with 14 additions and 23 deletions

View file

@ -1,16 +1,17 @@
# SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>
# 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}" \"$<TARGET_FILE:exdviewer>\"
COMMAND "${WINDEPLOYQT_ENV_SETUP}" && "${WINDEPLOYQT_EXECUTABLE}" \"$<TARGET_FILE:novus-karuku>\"
)
endif()

View file

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

View file

@ -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()};

View file

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