mirror of
https://github.com/holub/mame
synced 2025-04-26 10:13:37 +03:00
-vsmile, nes_clone: Fixed issues for release.
This commit is contained in:
parent
4b9fa2c256
commit
1f49ddb97f
@ -426,19 +426,17 @@ void nes_clone_vtvppong_state::init_vtvppong()
|
|||||||
std::copy(buffer.begin(), buffer.end(), &src[0]);
|
std::copy(buffer.begin(), buffer.end(), &src[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (1)
|
#if 0
|
||||||
|
FILE *fp;
|
||||||
|
char filename[256];
|
||||||
|
sprintf(filename,"decrypted_%s", machine().system().name);
|
||||||
|
fp=fopen(filename, "w+b");
|
||||||
|
if (fp)
|
||||||
{
|
{
|
||||||
FILE *fp;
|
fwrite(&src[0], len, 1, fp);
|
||||||
char filename[256];
|
fclose(fp);
|
||||||
sprintf(filename,"decrypted_%s", machine().system().name);
|
|
||||||
fp=fopen(filename, "w+b");
|
|
||||||
if (fp)
|
|
||||||
{
|
|
||||||
fwrite(&src[0], len, 1, fp);
|
|
||||||
fclose(fp);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -95,7 +95,7 @@ uint16_t vsmile_state::portb_r()
|
|||||||
void vsmile_state::portb_w(offs_t offset, uint16_t data, uint16_t mem_mask)
|
void vsmile_state::portb_w(offs_t offset, uint16_t data, uint16_t mem_mask)
|
||||||
{
|
{
|
||||||
LOG("%s: portb_w: %04x & %04x (bit 1: %d & %d)\n", machine().describe_context(), data, mem_mask, BIT(data, 1), BIT(mem_mask, 1));
|
LOG("%s: portb_w: %04x & %04x (bit 1: %d & %d)\n", machine().describe_context(), data, mem_mask, BIT(data, 1), BIT(mem_mask, 1));
|
||||||
if (BIT(mem_mask, 1))
|
if (BIT(mem_mask, 1) && m_cart)
|
||||||
m_cart->set_cs2(BIT(~data, 1));
|
m_cart->set_cs2(BIT(~data, 1));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user