mirror of https://github.com/mgba-emu/mgba.git
Fix build after GBAThread API changes
This commit is contained in:
parent
4da65d0f2f
commit
23679adc38
|
@ -4,7 +4,7 @@
|
|||
#include <QObject>
|
||||
|
||||
extern "C" {
|
||||
#include "gdb-stub.h"
|
||||
#include "debugger/gdb-stub.h"
|
||||
}
|
||||
|
||||
namespace QGBA {
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
extern "C" {
|
||||
#include "gba.h"
|
||||
#include "renderers/video-software.h"
|
||||
#include "util/vfs.h"
|
||||
}
|
||||
|
||||
using namespace QGBA;
|
||||
|
@ -27,7 +28,7 @@ GameController::GameController(QObject* parent)
|
|||
.state = THREAD_INITIALIZED,
|
||||
.debugger = 0,
|
||||
.frameskip = 0,
|
||||
.biosFd = -1,
|
||||
.bios = 0,
|
||||
.renderer = &m_renderer->d,
|
||||
.userData = this,
|
||||
.rewindBufferCapacity = 0
|
||||
|
@ -96,7 +97,7 @@ void GameController::loadGame(const QString& path) {
|
|||
|
||||
m_pauseAfterFrame = false;
|
||||
|
||||
m_threadContext.fd = m_rom->handle();
|
||||
m_threadContext.rom = VFileFromFD(m_rom->handle());
|
||||
m_threadContext.fname = path.toLocal8Bit().constData();
|
||||
GBAThreadStart(&m_threadContext);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue