better NESHawk version number

This commit is contained in:
andres.delikat 2011-09-24 17:07:48 +00:00
parent 6bbab41b0c
commit 9dd24ebe3e
2 changed files with 12 additions and 12 deletions

View File

@ -8,7 +8,7 @@ using BizHawk.Emulation.CPUs.M6502;
namespace BizHawk.Emulation.Consoles.Nintendo namespace BizHawk.Emulation.Consoles.Nintendo
{ {
[CoreVersion("0.0.0.1",FriendlyName="NESHawk")] [CoreVersion("0.9.9.9",FriendlyName="NESHawk")]
public partial class NES : IEmulator public partial class NES : IEmulator
{ {
//hardware/state //hardware/state

View File

@ -35,13 +35,13 @@ namespace BizHawk.Emulation.Consoles.Nintendo
BootGodDB.Initialize(); BootGodDB.Initialize();
SetPalette(Palettes.FCEUX_Standard); SetPalette(Palettes.FCEUX_Standard);
videoProvider = new MyVideoProvider(this); videoProvider = new MyVideoProvider(this);
Init(game, rom); Init(game, rom);
} }
private NES() private NES()
{ {
BootGodDB.Initialize(); BootGodDB.Initialize();
} }
public void WriteLogTimestamp() public void WriteLogTimestamp()
{ {
@ -147,19 +147,19 @@ namespace BizHawk.Emulation.Consoles.Nintendo
{ {
int backdrop = emu.CoreInputComm.NES_BackdropColor; int backdrop = emu.CoreInputComm.NES_BackdropColor;
bool useBackdrop = (backdrop & 0xFF000000) != 0; bool useBackdrop = (backdrop & 0xFF000000) != 0;
//TODO - we could recalculate this on the fly (and invalidate/recalculate it when the palette is changed) //TODO - we could recalculate this on the fly (and invalidate/recalculate it when the palette is changed)
int width = right - left; int width = right - left;
for (int x = left; x < right; x++) for (int x = left; x < right; x++)
{ {
for (int y = top; y < bottom; y++) for (int y = top; y < bottom; y++)
{ {
short pixel = emu.ppu.xbuf[(y*256) + x]; short pixel = emu.ppu.xbuf[(y * 256) + x];
if ((pixel & 0x8000) != 0 && useBackdrop) if ((pixel & 0x8000) != 0 && useBackdrop)
{ {
pixels[((y-top)*width) + (x - left)] = backdrop; pixels[((y - top) * width) + (x - left)] = backdrop;
} }
else pixels[((y-top)*width) + (x - left)] = emu.palette_compiled[pixel & 0x7FFF]; else pixels[((y - top) * width) + (x - left)] = emu.palette_compiled[pixel & 0x7FFF];
} }
} }
return pixels; return pixels;
@ -185,7 +185,7 @@ namespace BizHawk.Emulation.Consoles.Nintendo
videoProvider.right = 256; videoProvider.right = 256;
} }
} }
MyVideoProvider videoProvider; MyVideoProvider videoProvider;
public IVideoProvider VideoProvider { get { return videoProvider; } } public IVideoProvider VideoProvider { get { return videoProvider; } }
@ -382,7 +382,7 @@ namespace BizHawk.Emulation.Consoles.Nintendo
LoadReport.WriteLine(format, arg); LoadReport.WriteLine(format, arg);
} }
void LoadWriteLine(object arg) { LoadWriteLine("{0}", arg); } void LoadWriteLine(object arg) { LoadWriteLine("{0}", arg); }
public unsafe void Init(GameInfo gameInfo, byte[] rom) public unsafe void Init(GameInfo gameInfo, byte[] rom)
{ {
LoadReport = new StringWriter(); LoadReport = new StringWriter();