GB: Clean up startup messages

This commit is contained in:
Vicki Pfau 2017-08-04 08:21:18 -07:00
parent 3d8232eb3c
commit 36c4d24d91
2 changed files with 11 additions and 10 deletions

View File

@ -162,7 +162,6 @@ void GBResizeSram(struct GB* gb, size_t size) {
if (gb->memory.sram && size <= gb->sramSize) {
return;
}
mLOG(GB, INFO, "Resizing SRAM to %"PRIz"u bytes", size);
struct VFile* vf = gb->sramVf;
if (vf) {
if (vf == gb->sramRealVf) {

View File

@ -144,6 +144,7 @@ void GBIOReset(struct GB* gb) {
GBIOWrite(gb, REG_OBP1, 0xFF);
GBIOWrite(gb, REG_WY, 0x00);
GBIOWrite(gb, REG_WX, 0x00);
if (gb->model >= GB_MODEL_CGB) {
GBIOWrite(gb, REG_VBK, 0);
GBIOWrite(gb, REG_BCPS, 0);
GBIOWrite(gb, REG_OCPS, 0);
@ -153,6 +154,7 @@ void GBIOReset(struct GB* gb) {
GBIOWrite(gb, REG_HDMA3, 0xFF);
GBIOWrite(gb, REG_HDMA4, 0xFF);
gb->memory.io[REG_HDMA5] = 0xFF;
}
GBIOWrite(gb, REG_IE, 0x00);
}