mirror of https://github.com/mgba-emu/mgba.git
Qt: Incomplete non-GBA build fixes
This commit is contained in:
parent
d3ec40b392
commit
c300da9be6
|
@ -129,7 +129,6 @@ void CheatsView::addSet() {
|
|||
}
|
||||
|
||||
void CheatsView::removeSet() {
|
||||
GBACheatSet* set;
|
||||
QModelIndexList selection = m_ui.cheatList->selectionModel()->selectedIndexes();
|
||||
if (selection.count() < 1) {
|
||||
return;
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue