mirror of
https://github.com/redstrate/Novus.git
synced 2025-04-23 04:27:45 +00:00
common: Reformat code, misc cleanup
This commit is contained in:
parent
0711ec24ca
commit
7a9d136bce
5 changed files with 21 additions and 22 deletions
|
@ -6,7 +6,4 @@
|
|||
#include <KAboutData>
|
||||
#include <QString>
|
||||
|
||||
void customizeAboutData(
|
||||
const QString& componentName,
|
||||
const QString& applicationTitle,
|
||||
const QString& applicationDescription);
|
||||
void customizeAboutData(const QString &componentName, const QString &applicationTitle, const QString &applicationDescription);
|
|
@ -11,7 +11,8 @@
|
|||
|
||||
struct GameData;
|
||||
|
||||
class FileCache {
|
||||
class FileCache
|
||||
{
|
||||
public:
|
||||
explicit FileCache(GameData &data);
|
||||
|
||||
|
|
|
@ -7,12 +7,9 @@
|
|||
|
||||
#include "novus-version.h"
|
||||
|
||||
void customizeAboutData(
|
||||
const QString& componentName,
|
||||
const QString& applicationTitle,
|
||||
const QString& applicationDescription) {
|
||||
KAboutData about(
|
||||
componentName,
|
||||
void customizeAboutData(const QString &componentName, const QString &applicationTitle, const QString &applicationDescription)
|
||||
{
|
||||
KAboutData about(componentName,
|
||||
applicationTitle,
|
||||
QStringLiteral(NOVUS_VERSION_STRING),
|
||||
applicationDescription,
|
||||
|
@ -23,7 +20,7 @@ void customizeAboutData(
|
|||
QStringLiteral("josh@redstrate.com"),
|
||||
QStringLiteral("https://redstrate.com/"),
|
||||
QUrl(QStringLiteral("https://redstrate.com/rss-image.png")));
|
||||
about.setHomepage(QStringLiteral("https://xiv.zone/astra"));
|
||||
about.setHomepage(QStringLiteral("https://xiv.zone/novus"));
|
||||
about.addComponent(QStringLiteral("physis"),
|
||||
QStringLiteral("Library to access FFXIV data"),
|
||||
QLatin1String(physis_get_physis_version()),
|
||||
|
@ -32,7 +29,7 @@ void customizeAboutData(
|
|||
about.addComponent(QStringLiteral("libphysis"),
|
||||
QStringLiteral("C bindings for physis"),
|
||||
QLatin1String(physis_get_libphysis_version()),
|
||||
{},
|
||||
QStringLiteral("https://git.sr.ht/~redstrate/libphysis"),
|
||||
KAboutLicense::GPL_V3);
|
||||
about.setBugAddress(QByteArrayLiteral("https://lists.sr.ht/~redstrate/public-inbox"));
|
||||
about.setComponentName(componentName);
|
||||
|
|
|
@ -5,7 +5,10 @@
|
|||
|
||||
#include <physis.hpp>
|
||||
|
||||
FileCache::FileCache(GameData& data) : data(data) {}
|
||||
FileCache::FileCache(GameData &data)
|
||||
: data(data)
|
||||
{
|
||||
}
|
||||
|
||||
physis_Buffer &FileCache::lookupFile(const QLatin1String &path)
|
||||
{
|
||||
|
|
|
@ -8,7 +8,8 @@
|
|||
#include <QCoreApplication>
|
||||
#include <QMessageBox>
|
||||
|
||||
QString getGameDirectory() {
|
||||
QString getGameDirectory()
|
||||
{
|
||||
KConfig config(QStringLiteral("novusrc"));
|
||||
KConfigGroup game = config.group(QStringLiteral("Game"));
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue