Fix build after GBAThread API changes

This commit is contained in:
Jeffrey Pfau 2014-07-20 16:38:27 -07:00
parent 4da65d0f2f
commit 23679adc38
2 changed files with 4 additions and 3 deletions

View File

@ -4,7 +4,7 @@
#include <QObject>
extern "C" {
#include "gdb-stub.h"
#include "debugger/gdb-stub.h"
}
namespace QGBA {

View File

@ -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);
}