Merge branch 'master' (early part) into medusa

This commit is contained in:
Vicki Pfau 2022-05-29 22:19:41 -07:00
commit 9d55dd6f03
9 changed files with 11 additions and 11 deletions

View File

@ -111,7 +111,7 @@ struct mCore {
void (*setCursorLocation)(struct mCore*, int x, int y);
void (*setCursorDown)(struct mCore*, bool down);
int32_t (*frameCounter)(const struct mCore*);
uint32_t (*frameCounter)(const struct mCore*);
int32_t (*frameCycles)(const struct mCore*);
int32_t (*frequency)(const struct mCore*);

View File

@ -329,7 +329,7 @@ struct GBSerializedState {
uint32_t reserved;
uint32_t nextMode;
int32_t dotCounter;
int32_t frameCounter;
uint32_t frameCounter;
uint8_t vramCurrentBank;
GBSerializedVideoFlags flags;

View File

@ -163,7 +163,7 @@ struct GBVideo {
bool sgbBorders;
int32_t frameCounter;
uint32_t frameCounter;
int frameskip;
int frameskipCounter;
};

View File

@ -303,7 +303,7 @@ struct GBASerializedState {
int32_t nextEvent;
int32_t reserved[5];
GBASerializedVideoFlags flags;
int32_t frameCounter;
uint32_t frameCounter;
} video;
struct {

View File

@ -220,7 +220,7 @@ struct GBAVideo {
uint16_t* vram;
union GBAOAM oam;
int32_t frameCounter;
uint32_t frameCounter;
int frameskip;
int frameskipCounter;
};

View File

@ -108,7 +108,7 @@ void mDebuggerRun(struct mDebugger* debugger) {
}
void mDebuggerRunFrame(struct mDebugger* debugger) {
int32_t frame = debugger->core->frameCounter(debugger->core);
uint32_t frame = debugger->core->frameCounter(debugger->core);
do {
mDebuggerRun(debugger);
} while (debugger->core->frameCounter(debugger->core) == frame);

View File

@ -466,7 +466,7 @@ static void _DSCoreSetCursorDown(struct mCore* core, bool down) {
dscore->touchDown = down;
}
static int32_t _DSCoreFrameCounter(const struct mCore* core) {
static uint32_t _DSCoreFrameCounter(const struct mCore* core) {
struct DS* ds = core->board;
return ds->video.frameCounter;
}

View File

@ -648,7 +648,7 @@ static void _GBCoreReset(struct mCore* core) {
static void _GBCoreRunFrame(struct mCore* core) {
struct GB* gb = core->board;
int32_t frameCounter = gb->video.frameCounter;
uint32_t frameCounter = gb->video.frameCounter;
while (gb->video.frameCounter == frameCounter) {
SM83Run(core->cpu);
}
@ -711,7 +711,7 @@ static void _GBCoreSetCursorDown(struct mCore* core, bool down) {
UNUSED(down);
}
static int32_t _GBCoreFrameCounter(const struct mCore* core) {
static uint32_t _GBCoreFrameCounter(const struct mCore* core) {
const struct GB* gb = core->board;
return gb->video.frameCounter;
}

View File

@ -676,7 +676,7 @@ static void _GBACoreReset(struct mCore* core) {
static void _GBACoreRunFrame(struct mCore* core) {
struct GBA* gba = core->board;
int32_t frameCounter = gba->video.frameCounter;
uint32_t frameCounter = gba->video.frameCounter;
uint32_t startCycle = mTimingCurrentTime(&gba->timing);
while (gba->video.frameCounter == frameCounter && mTimingCurrentTime(&gba->timing) - startCycle < VIDEO_TOTAL_LENGTH + VIDEO_HORIZONTAL_LENGTH) {
ARMv4RunLoop(core->cpu);
@ -734,7 +734,7 @@ static void _GBACoreSetCursorDown(struct mCore* core, bool down) {
UNUSED(down);
}
static int32_t _GBACoreFrameCounter(const struct mCore* core) {
static uint32_t _GBACoreFrameCounter(const struct mCore* core) {
const struct GBA* gba = core->board;
return gba->video.frameCounter;
}