1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-04-28 06:37:44 +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) set(CMAKE_INCLUDE_CURRENT_DIR ON)
add_executable(explorer add_executable(novus-sagasu
src/main.cpp src/main.cpp
src/mainwindow.cpp src/mainwindow.cpp
src/filetreewindow.cpp src/filetreewindow.cpp
src/filepropertieswindow.cpp) src/filepropertieswindow.cpp)
target_include_directories(explorer target_include_directories(novus-sagasu
PUBLIC PUBLIC
include) 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 install(TARGETS novus-sagasu ${KF${QT_MAJOR_VERSION}_INSTALL_TARGETS_DEFAULT_ARGS})
DESTINATION "${INSTALL_BIN_PATH}")
if(WIN32) if(WIN32)
get_target_property(QMAKE_EXE Qt5::qmake IMPORTED_LOCATION) get_target_property(QMAKE_EXE Qt5::qmake IMPORTED_LOCATION)
@ -24,8 +23,8 @@ if(WIN32)
find_program(WINDEPLOYQT_EXECUTABLE windeployqt HINTS "${QT_BIN_DIR}") find_program(WINDEPLOYQT_EXECUTABLE windeployqt HINTS "${QT_BIN_DIR}")
# Run windeployqt immediately after build # Run windeployqt immediately after build
add_custom_command(TARGET explorer add_custom_command(TARGET novus-sagasu
POST_BUILD POST_BUILD
COMMAND "${WINDEPLOYQT_ENV_SETUP}" && "${WINDEPLOYQT_EXECUTABLE}" \"$<TARGET_FILE:explorer>\" COMMAND "${WINDEPLOYQT_ENV_SETUP}" && "${WINDEPLOYQT_EXECUTABLE}" \"$<TARGET_FILE:novus-sagasu>\"
) )
endif() endif()

View file

@ -1,11 +1,3 @@
# explorer # Sagasu
This tool can list known files by libxiv, such as excel sheets. 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.
## 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"
```

View file

@ -22,7 +22,7 @@ FileTreeWindow::FileTreeWindow(GameData* data, QWidget* parent) : QWidget(parent
addPath(QStringLiteral("exd/root.exl")); 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++) { for(int i = 0; i < sheetNames.name_count; i++) {
auto sheetName = sheetNames.names[i]; auto sheetName = sheetNames.names[i];
@ -38,7 +38,7 @@ FileTreeWindow::FileTreeWindow(GameData* data, QWidget* parent) : QWidget(parent
addPath(QStringLiteral("exd/") + QString::fromStdString(path)); addPath(QStringLiteral("exd/") + QString::fromStdString(path));
} }
} }
} }*/
treeWidget->setContextMenuPolicy(Qt::CustomContextMenu); treeWidget->setContextMenuPolicy(Qt::CustomContextMenu);
connect(treeWidget, &QTreeWidget::customContextMenuRequested, this, [this, treeWidget](const QPoint& pos) { connect(treeWidget, &QTreeWidget::customContextMenuRequested, this, [this, treeWidget](const QPoint& pos) {

View file

@ -13,8 +13,7 @@
int main(int argc, char* argv[]) { int main(int argc, char* argv[]) {
QApplication app(argc, argv); QApplication app(argc, argv);
customizeAboutData( customizeAboutData(QStringLiteral("sagasu"), QStringLiteral("Sagasu"), QStringLiteral("Program to explore FFXIV data archives."));
QStringLiteral("explorer"), QStringLiteral("Explorer"), QStringLiteral("Program to explore FFXIV dat files."));
physis_initialize_logging(); physis_initialize_logging();

View file

@ -19,7 +19,7 @@
#include "filetreewindow.h" #include "filetreewindow.h"
MainWindow::MainWindow(GameData* data) : data(data) { MainWindow::MainWindow(GameData* data) : data(data) {
setWindowTitle(QStringLiteral("explorer")); setWindowTitle(QStringLiteral("Sagasu"));
auto fileMenu = menuBar()->addMenu(QStringLiteral("File")); auto fileMenu = menuBar()->addMenu(QStringLiteral("File"));
@ -37,7 +37,7 @@ MainWindow::MainWindow(GameData* data) : data(data) {
helpMenu->addSeparator(); helpMenu->addSeparator();
auto aboutNovusAction = helpMenu->addAction(QStringLiteral("About explorer")); auto aboutNovusAction = helpMenu->addAction(QStringLiteral("About Sagasu"));
aboutNovusAction->setIcon(QIcon::fromTheme(QStringLiteral("help-about"))); aboutNovusAction->setIcon(QIcon::fromTheme(QStringLiteral("help-about")));
connect(aboutNovusAction, &QAction::triggered, this, [this] { connect(aboutNovusAction, &QAction::triggered, this, [this] {
auto window = new KAboutApplicationDialog(KAboutData::applicationData(), this); auto window = new KAboutApplicationDialog(KAboutData::applicationData(), this);