mirror of https://github.com/mgba-emu/mgba.git
Core: Add new mLockstepUser API for upcoming lockstep rewrite
This commit is contained in:
parent
0b9cf1270c
commit
3180d432e5
|
@ -1,4 +1,4 @@
|
||||||
/* Copyright (c) 2013-2016 Jeffrey Pfau
|
/* Copyright (c) 2013-2024 Jeffrey Pfau
|
||||||
*
|
*
|
||||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
@ -53,6 +53,14 @@ static inline void mLockstepUnlock(struct mLockstep* lockstep) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
struct mLockstepUser {
|
||||||
|
void (*sleep)(struct mLockstepUser*);
|
||||||
|
void (*wake)(struct mLockstepUser*);
|
||||||
|
|
||||||
|
int (*requestedId)(struct mLockstepUser*);
|
||||||
|
void (*playerIdChanged)(struct mLockstepUser*, int id);
|
||||||
|
};
|
||||||
|
|
||||||
CXX_GUARD_END
|
CXX_GUARD_END
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue