EmuThread: Remove unused filename attribute.
This commit is contained in:
parent
762c1a9ff5
commit
d5665fea89
|
@ -28,15 +28,9 @@
|
||||||
#define COPYRIGHT "Copyright (C) 2013-2014 Citra Team"
|
#define COPYRIGHT "Copyright (C) 2013-2014 Citra Team"
|
||||||
|
|
||||||
EmuThread::EmuThread(GRenderWindow* render_window) :
|
EmuThread::EmuThread(GRenderWindow* render_window) :
|
||||||
filename(""), exec_cpu_step(false), cpu_running(false),
|
exec_cpu_step(false), cpu_running(false), stop_run(false), render_window(render_window) {
|
||||||
stop_run(false), render_window(render_window)
|
|
||||||
{
|
|
||||||
connect(this, SIGNAL(started()), render_window, SLOT(moveContext()));
|
|
||||||
}
|
|
||||||
|
|
||||||
void EmuThread::SetFilename(std::string filename)
|
connect(this, SIGNAL(started()), render_window, SLOT(moveContext()));
|
||||||
{
|
|
||||||
this->filename = filename;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void EmuThread::run()
|
void EmuThread::run()
|
||||||
|
|
|
@ -21,13 +21,6 @@ class EmuThread : public QThread
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
/**
|
|
||||||
* Set image filename
|
|
||||||
*
|
|
||||||
* @param filename
|
|
||||||
* @warning Only call when not running!
|
|
||||||
*/
|
|
||||||
void SetFilename(std::string filename);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Start emulation (on new thread)
|
* Start emulation (on new thread)
|
||||||
|
@ -72,8 +65,6 @@ private:
|
||||||
|
|
||||||
EmuThread(GRenderWindow* render_window);
|
EmuThread(GRenderWindow* render_window);
|
||||||
|
|
||||||
std::string filename;
|
|
||||||
|
|
||||||
bool exec_cpu_step;
|
bool exec_cpu_step;
|
||||||
bool cpu_running;
|
bool cpu_running;
|
||||||
std::atomic<bool> stop_run;
|
std::atomic<bool> stop_run;
|
||||||
|
|
|
@ -211,7 +211,6 @@ void GMainWindow::BootGame(std::string filename)
|
||||||
registersWidget->OnDebugModeEntered();
|
registersWidget->OnDebugModeEntered();
|
||||||
callstackWidget->OnDebugModeEntered();
|
callstackWidget->OnDebugModeEntered();
|
||||||
|
|
||||||
emu_thread->SetFilename(filename);
|
|
||||||
emu_thread->start();
|
emu_thread->start();
|
||||||
|
|
||||||
render_window->show();
|
render_window->show();
|
||||||
|
|
Loading…
Reference in a new issue