mirror of
https://github.com/redstrate/Novus.git
synced 2025-04-27 14:17:45 +00:00
mdlviewer: Reformat code, misc cleanup
This commit is contained in:
parent
b522eac7a0
commit
24f878b19a
3 changed files with 10 additions and 6 deletions
|
@ -11,13 +11,15 @@ class MDLPart;
|
|||
|
||||
class MainWindow : public NovusMainWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
MainWindow(GameData* data);
|
||||
MainWindow(GameData *data);
|
||||
|
||||
protected:
|
||||
void setupFileMenu(QMenu *menu) override;
|
||||
|
||||
GameData* data = nullptr;
|
||||
MDLPart* part = nullptr;
|
||||
GameData *data = nullptr;
|
||||
MDLPart *part = nullptr;
|
||||
FileCache cache;
|
||||
};
|
|
@ -8,11 +8,11 @@
|
|||
#include "mainwindow.h"
|
||||
#include "settings.h"
|
||||
|
||||
int main(int argc, char* argv[]) {
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
QApplication app(argc, argv);
|
||||
|
||||
customizeAboutData(
|
||||
QStringLiteral("mdlviewer"), QStringLiteral("MDLViewer"), QStringLiteral("Program to view FFXIV MDL files."));
|
||||
customizeAboutData(QStringLiteral("mdlviewer"), QStringLiteral("MDLViewer"), QStringLiteral("Program to view FFXIV MDL files."));
|
||||
|
||||
const QString gameDir{getGameDirectory()};
|
||||
const std::string gameDirStd{gameDir.toStdString()};
|
||||
|
|
|
@ -51,3 +51,5 @@ void MainWindow::setupFileMenu(QMenu *menu)
|
|||
part->addModel(physis_mdl_parse(buffer.size, buffer.data), QStringLiteral("mdl"), {}, 0);
|
||||
});
|
||||
}
|
||||
|
||||
#include "moc_mainwindow.cpp"
|
||||
|
|
Loading…
Add table
Reference in a new issue