-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is simplistic for now, but I want to expand it for quick offline testing.
- Loading branch information
Showing
15 changed files
with
146 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,11 +3,11 @@ Upstream-Name: Novus | |
Upstream-Contact: Joshua Goins <[email protected]> | ||
Source: https://git.sr.ht/~redstrate/novus | ||
|
||
Files: .gitmodules scripts/* README.md BUILDING.md CONTRIBUTING.md apps/argcracker/README.md apps/armoury/README.md apps/karuku/README.md apps/sagasu/README.md apps/mdlviewer/README.md renderer/README.md apps/launcher/README.md .clang-format .build.yml misc/* renderer/shaders/*.spv apps/mapeditor/README.md .github/* apps/mateditor/README.md | ||
Files: .gitmodules scripts/* README.md BUILDING.md CONTRIBUTING.md apps/argcracker/README.md apps/armoury/README.md apps/gamelauncher/README.md apps/karuku/README.md apps/sagasu/README.md apps/mdlviewer/README.md renderer/README.md apps/sdklauncher/README.md .clang-format .build.yml misc/* renderer/shaders/*.spv apps/mapeditor/README.md .github/* apps/mateditor/README.md | ||
Copyright: Joshua Goins <[email protected]> | ||
License: CC0-1.0 | ||
|
||
Files: apps/armoury/zone.xiv.armoury.svg apps/karuku/zone.xiv.karaku.svg apps/launcher/zone.xiv.novus.svg apps/mapeditor/zone.xiv.mapeditor.svg apps/mdlviewer/zone.xiv.mdlviewer.svg apps/sagasu/zone.xiv.sagasu.svg resources/* | ||
Files: apps/armoury/zone.xiv.armoury.svg apps/karuku/zone.xiv.karaku.svg apps/sdklauncher/zone.xiv.novus.svg apps/mapeditor/zone.xiv.mapeditor.svg apps/mdlviewer/zone.xiv.mdlviewer.svg apps/sagasu/zone.xiv.sagasu.svg resources/* | ||
Copyright: Joshua Goins <[email protected]> | ||
License: CC-BY-SA-4.0 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# SPDX-FileCopyrightText: 2024 Joshua Goins <[email protected]> | ||
# SPDX-License-Identifier: CC0-1.0 | ||
|
||
add_executable(novus-gamelauncher) | ||
target_sources(novus-gamelauncher | ||
PRIVATE | ||
include/mainwindow.h | ||
|
||
src/main.cpp | ||
src/mainwindow.cpp) | ||
target_include_directories(novus-gamelauncher | ||
PUBLIC | ||
include) | ||
target_link_libraries(novus-gamelauncher | ||
PRIVATE | ||
Novus::Common | ||
Physis::Physis | ||
Physis::Logger | ||
KF6::I18n | ||
Qt6::Core | ||
Qt6::Widgets) | ||
|
||
install(TARGETS novus-gamelauncher ${KF${QT_MAJOR_VERSION}_INSTALL_TARGETS_DEFAULT_ARGS}) | ||
|
||
if (WIN32) | ||
set_target_properties(novus-gamelauncher PROPERTIES | ||
WIN32_EXECUTABLE TRUE | ||
OUTPUT_NAME "GameLauncher") | ||
|
||
install(FILES $<TARGET_RUNTIME_DLLS:novus-gamelauncher> DESTINATION ${CMAKE_INSTALL_BINDIR}) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Game Launcher | ||
|
||
This tool can display and preview game materials. | ||
|
||
## Note | ||
|
||
Vulkan 1.3 or higher is currently required. This requirement is planned to be lifted in the future. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// SPDX-FileCopyrightText: 2024 Joshua Goins <[email protected]> | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
#pragma once | ||
|
||
#include <QProcess> | ||
|
||
#include "novusmainwindow.h" | ||
|
||
struct GameData; | ||
|
||
class MainWindow : public NovusMainWindow | ||
{ | ||
Q_OBJECT | ||
|
||
public: | ||
explicit MainWindow(); | ||
|
||
private: | ||
QProcess *process = nullptr; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// SPDX-FileCopyrightText: 2024 Joshua Goins <[email protected]> | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
#include <KLocalizedString> | ||
#include <QApplication> | ||
#include <physis.hpp> | ||
#include <physis_logger.h> | ||
|
||
#include "aboutdata.h" | ||
#include "mainwindow.h" | ||
#include "settings.h" | ||
|
||
int main(int argc, char *argv[]) | ||
{ | ||
QApplication app(argc, argv); | ||
|
||
KLocalizedString::setApplicationDomain(QByteArrayLiteral("novus")); | ||
|
||
customizeAboutData(QStringLiteral("gamelauncher"), | ||
QStringLiteral("zone.xiv.gamelauncher"), | ||
QStringLiteral("Game Launcher"), | ||
i18n("Program to launch the game for debug purposes.")); | ||
|
||
// Default to a sensible message pattern | ||
if (qEnvironmentVariableIsEmpty("QT_MESSAGE_PATTERN")) { | ||
qputenv("QT_MESSAGE_PATTERN", "[%{time yyyy-MM-dd h:mm:ss.zzz}] %{if-category}[%{category}] %{endif}[%{type}] %{message}"); | ||
} | ||
|
||
setup_physis_logging(); | ||
|
||
MainWindow w; | ||
w.show(); | ||
|
||
return app.exec(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// SPDX-FileCopyrightText: 2024 Joshua Goins <[email protected]> | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
#include "mainwindow.h" | ||
#include "settings.h" | ||
|
||
#include <KLocalizedString> | ||
#include <QApplication> | ||
#include <QListWidget> | ||
#include <QMenuBar> | ||
#include <QFormLayout> | ||
#include <QPushButton> | ||
#include <QProcess> | ||
#include <QLineEdit> | ||
|
||
MainWindow::MainWindow() : NovusMainWindow() | ||
{ | ||
setMinimumSize(1280, 720); | ||
setupMenubar(); | ||
|
||
process = new QProcess(); | ||
process->setWorkingDirectory(getGameDirectory()); | ||
process->setProgram(QStringLiteral("ffxiv_dx11.exe")); | ||
|
||
auto dummyWidget = new QWidget(); | ||
setCentralWidget(dummyWidget); | ||
|
||
auto layout = new QFormLayout(); | ||
dummyWidget->setLayout(layout); | ||
|
||
auto argsBox = new QLineEdit(); | ||
layout->addRow(i18n("Arguments"), argsBox); | ||
|
||
auto launchGameButton = new QPushButton(i18n("Launch Game")); | ||
connect(launchGameButton, &QPushButton::clicked, this, [this, argsBox] { | ||
process->setArguments(argsBox->text().split(QLatin1Char(' '))); | ||
qInfo() << "Launching" << process->program() << process->arguments(); | ||
process->start(); | ||
}); | ||
layout->addWidget(launchGameButton); | ||
} | ||
|
||
#include "moc_mainwindow.cpp" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes