Qt: Incomplete non-GBA build fixes

This commit is contained in:
Vicki Pfau 2019-12-02 19:18:48 -08:00
parent d3ec40b392
commit c300da9be6
3 changed files with 8 additions and 1 deletions

View File

@ -129,7 +129,6 @@ void CheatsView::addSet() {
}
void CheatsView::removeSet() {
GBACheatSet* set;
QModelIndexList selection = m_ui.cheatList->selectionModel()->selectedIndexes();
if (selection.count() < 1) {
return;

View File

@ -22,11 +22,13 @@ MultiplayerController::Player::Player(CoreController* coreController, GBSIOLocks
{
}
#ifdef M_CORE_GBA
MultiplayerController::Player::Player(CoreController* coreController, GBASIOLockstepNode* node)
: controller(coreController)
, gbaNode(node)
{
}
#endif
MultiplayerController::MultiplayerController() {
mLockstepInit(&m_lockstep);
@ -71,10 +73,12 @@ MultiplayerController::MultiplayerController() {
if (!id) {
for (int i = 1; i < controller->m_players.count(); ++i) {
Player* player = &controller->m_players[i];
#ifdef M_CORE_GBA
if (player->controller->platform() == PLATFORM_GBA && player->gbaNode->d.p->mode != controller->m_players[0].gbaNode->d.p->mode) {
player->controller->setSync(true);
continue;
}
#endif
player->controller->setSync(false);
player->cyclesPosted += cycles;
if (player->awake < 1) {

View File

@ -45,8 +45,12 @@ signals:
private:
struct Player {
#ifdef M_CORE_GB
Player(CoreController* controller, GBSIOLockstepNode* node);
#endif
#ifdef M_CORE_GBA
Player(CoreController* controller, GBASIOLockstepNode* node);
#endif
CoreController* controller;
GBSIOLockstepNode* gbNode = nullptr;