mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-22 13:45:55 +00:00
Implement load-log-by-commandline behaviour
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#include <QTimer>
|
||||
#include <QMessageBox>
|
||||
#include <QMetaObject>
|
||||
#include <QFileInfo>
|
||||
|
||||
Core::Core(QString paramFilename, QString remoteHost, uint32_t remoteIdent, bool temp)
|
||||
{
|
||||
@@ -14,8 +15,18 @@ Core::Core(QString paramFilename, QString remoteHost, uint32_t remoteIdent, bool
|
||||
|
||||
memset(&m_APIProps, 0, sizeof(m_APIProps));
|
||||
|
||||
m_MainWindow = new MainWindow(this, paramFilename, remoteHost, remoteIdent, temp);
|
||||
m_MainWindow = new MainWindow(this);
|
||||
m_MainWindow->show();
|
||||
|
||||
if(!paramFilename.isEmpty())
|
||||
{
|
||||
QFileInfo fi(paramFilename);
|
||||
|
||||
if(fi.suffix() == "rdc")
|
||||
{
|
||||
LoadLogfile(paramFilename, temp);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Core::~Core()
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
#include "Code/Core.h"
|
||||
|
||||
MainWindow::MainWindow(Core *core, QString paramFilename, QString remoteHost, uint32_t remoteIdent, bool temp) :
|
||||
MainWindow::MainWindow(Core *core) :
|
||||
QMainWindow(NULL),
|
||||
ui(new Ui::MainWindow),
|
||||
m_Core(core)
|
||||
|
||||
@@ -15,7 +15,7 @@ class MainWindow : public QMainWindow
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit MainWindow(Core *core, QString paramFilename, QString remoteHost, uint32_t remoteIdent, bool temp);
|
||||
explicit MainWindow(Core *core);
|
||||
~MainWindow();
|
||||
|
||||
private slots:
|
||||
|
||||
Reference in New Issue
Block a user