Ninja Warriors, Rastan 3 - Warrior Blade & Darius2 savestate improvements pt.2 (d_darius2.cpp, tc0100scn.cpp)
This commit is contained in:
parent
e2741abe1f
commit
67fce7b0c1
|
@ -5,7 +5,7 @@
|
||||||
#include "taito_ic.h"
|
#include "taito_ic.h"
|
||||||
#include "burn_ym2610.h"
|
#include "burn_ym2610.h"
|
||||||
|
|
||||||
static INT32 Ninjaw = 0, Warriorb = 0, WarriorbRedraw = 0;
|
static INT32 Ninjaw = 0, Warriorb = 0;
|
||||||
|
|
||||||
static double Darius2YM2610Route1MasterVol;
|
static double Darius2YM2610Route1MasterVol;
|
||||||
static double Darius2YM2610Route2MasterVol;
|
static double Darius2YM2610Route2MasterVol;
|
||||||
|
@ -1855,12 +1855,6 @@ static void WarriorbDraw()
|
||||||
|
|
||||||
BurnTransferClear();
|
BurnTransferClear();
|
||||||
|
|
||||||
if (WarriorbRedraw) {
|
|
||||||
//bprintf(PRINT_NORMAL, _T("woohoo!\n"));
|
|
||||||
//not yet.
|
|
||||||
WarriorbRedraw = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (TC0100SCNBottomLayer(0)) {
|
if (TC0100SCNBottomLayer(0)) {
|
||||||
if (!(Disable & 0x02)) TC0100SCNRenderFgLayer(0, 0, TaitoChars);
|
if (!(Disable & 0x02)) TC0100SCNRenderFgLayer(0, 0, TaitoChars);
|
||||||
if (!(Disable2 & 0x02)) TC0100SCNRenderFgLayer(1, 0, TaitoCharsB);
|
if (!(Disable2 & 0x02)) TC0100SCNRenderFgLayer(1, 0, TaitoCharsB);
|
||||||
|
@ -1997,15 +1991,6 @@ static INT32 Darius2Scan(INT32 nAction, INT32 *pnMin)
|
||||||
|
|
||||||
if (TaitoNumYM2610) BurnYM2610Scan(nAction, pnMin);
|
if (TaitoNumYM2610) BurnYM2610Scan(nAction, pnMin);
|
||||||
|
|
||||||
TC0100SCNScan(nAction);
|
|
||||||
TC0110PCRScan(nAction);
|
|
||||||
TC0140SYTScan(nAction);
|
|
||||||
if (Warriorb) {
|
|
||||||
TC0510NIOScan(nAction);
|
|
||||||
} else {
|
|
||||||
TC0220IOCScan(nAction);
|
|
||||||
}
|
|
||||||
|
|
||||||
SCAN_VAR(TaitoInput);
|
SCAN_VAR(TaitoInput);
|
||||||
SCAN_VAR(TaitoZ80Bank);
|
SCAN_VAR(TaitoZ80Bank);
|
||||||
SCAN_VAR(nTaitoCyclesDone);
|
SCAN_VAR(nTaitoCyclesDone);
|
||||||
|
@ -2017,7 +2002,6 @@ static INT32 Darius2Scan(INT32 nAction, INT32 *pnMin)
|
||||||
ZetMapArea(0x4000, 0x7fff, 0, TaitoZ80Rom1 + 0x4000 + (TaitoZ80Bank * 0x4000));
|
ZetMapArea(0x4000, 0x7fff, 0, TaitoZ80Rom1 + 0x4000 + (TaitoZ80Bank * 0x4000));
|
||||||
ZetMapArea(0x4000, 0x7fff, 2, TaitoZ80Rom1 + 0x4000 + (TaitoZ80Bank * 0x4000));
|
ZetMapArea(0x4000, 0x7fff, 2, TaitoZ80Rom1 + 0x4000 + (TaitoZ80Bank * 0x4000));
|
||||||
ZetClose();
|
ZetClose();
|
||||||
WarriorbRedraw = 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -628,9 +628,14 @@ void TC0100SCNScan(INT32 nAction)
|
||||||
SCAN_VAR(TC0100SCNFlip);
|
SCAN_VAR(TC0100SCNFlip);
|
||||||
SCAN_VAR(TC0100SCNGfxBank);
|
SCAN_VAR(TC0100SCNGfxBank);
|
||||||
SCAN_VAR(TC0100SCNDblWidth);
|
SCAN_VAR(TC0100SCNDblWidth);
|
||||||
SCAN_VAR(TC0100SCNBgLayerUpdate);
|
if (nAction & ACB_WRITE) {
|
||||||
SCAN_VAR(TC0100SCNFgLayerUpdate);
|
for (INT32 i = 0;i < TC0100SCNNum; i++) {
|
||||||
SCAN_VAR(TC0100SCNCharLayerUpdate);
|
// re-draw the the screen after loading the savestate
|
||||||
SCAN_VAR(TC0100SCNCharRamUpdate);
|
TC0100SCNBgLayerUpdate[i] = 1;
|
||||||
|
TC0100SCNFgLayerUpdate[i] = 1;
|
||||||
|
TC0100SCNCharLayerUpdate[i] = 1;
|
||||||
|
TC0100SCNCharRamUpdate[i] = 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue