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

explorer: Rename to Sagasu

This commit is contained in:
Joshua Goins 2023-10-10 17:55:49 -04:00
parent fb037761f6
commit ebcdb54b41
5 changed files with 13 additions and 23 deletions

View file

@ -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}" \"$<TARGET_FILE:explorer>\"
COMMAND "${WINDEPLOYQT_ENV_SETUP}" && "${WINDEPLOYQT_EXECUTABLE}" \"$<TARGET_FILE:novus-sagasu>\"
)
endif()

View file

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

View file

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

View file

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

View file

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