all repos — mgba @ 1e76ae31d62931c2c2d1aaa07741dda926d27b46

mGBA Game Boy Advance Emulator

src/core/lockstep.c (view raw)

 1/* Copyright (c) 2013-2016 Jeffrey Pfau
 2 *
 3 * This Source Code Form is subject to the terms of the Mozilla Public
 4 * License, v. 2.0. If a copy of the MPL was not distributed with this
 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 6#include <mgba/core/lockstep.h>
 7
 8void mLockstepInit(struct mLockstep* lockstep) {
 9	lockstep->attached = 0;
10	lockstep->transferActive = 0;
11#ifndef NDEBUG
12	lockstep->transferId = 0;
13#endif
14	lockstep->lock = NULL;
15	lockstep->unlock = NULL;
16}
17
18void mLockstepDeinit(struct mLockstep* lockstep) {
19	UNUSED(lockstep);
20}
21
22// TODO: Migrate nodes