修复语法错误
This commit is contained in:
parent
d84b221e81
commit
63f65b89c9
@ -1,7 +1,7 @@
|
||||
using System.IO;
|
||||
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
internal abstract class Bandai : Board
|
||||
{
|
||||
private bool irq_enable;
|
||||
@ -138,3 +138,4 @@ internal abstract class Bandai : Board
|
||||
eprom.LoadState(stream);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
internal struct BankInfo
|
||||
{
|
||||
public bool IsRAM;
|
||||
@ -24,3 +24,4 @@ internal struct BankInfo
|
||||
this.IsBattery = IsBattery;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
internal class BankInfoSorter : IComparer<BankInfo>
|
||||
{
|
||||
public int Compare(BankInfo x, BankInfo y)
|
||||
@ -13,3 +13,4 @@ internal class BankInfoSorter : IComparer<BankInfo>
|
||||
return result2 - result;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,8 +1,9 @@
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
internal class BlankJoypad : IJoypadConnecter
|
||||
{
|
||||
public override void Update()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,8 +1,9 @@
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
internal class BlankShortuctsHandler : IShortcutsHandler
|
||||
{
|
||||
public void Update()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,8 +2,8 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
internal abstract class Board
|
||||
{
|
||||
protected byte[][] PRG_RAM;
|
||||
@ -1114,3 +1114,4 @@ internal abstract class Board
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System;
|
||||
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
internal class BoardInfoAttribute : Attribute
|
||||
{
|
||||
public string Name { get; private set; }
|
||||
@ -54,3 +54,4 @@ internal class BoardInfoAttribute : Attribute
|
||||
this.PPUA12TogglesOnRaisingEdge = PPUA12TogglesOnRaisingEdge;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
public class BoardInfoObject
|
||||
{
|
||||
public string Name { get; internal set; }
|
||||
@ -12,3 +12,4 @@ public class BoardInfoObject
|
||||
|
||||
public bool HasIssues { get; internal set; }
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
internal enum CHRArea : byte
|
||||
{
|
||||
Area0000,
|
||||
@ -11,3 +11,4 @@ internal enum CHRArea : byte
|
||||
Area1800,
|
||||
Area1C00
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
namespace ComponentAce.Compression.Libs.zlib;
|
||||
|
||||
namespace ComponentAce.Compression.Libs.zlib
|
||||
{
|
||||
internal sealed class Adler32
|
||||
{
|
||||
private const int BASE = 65521;
|
||||
@ -69,3 +69,4 @@ internal sealed class Adler32
|
||||
return (num2 << 16) | num;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System;
|
||||
|
||||
namespace ComponentAce.Compression.Libs.zlib;
|
||||
|
||||
namespace ComponentAce.Compression.Libs.zlib
|
||||
{
|
||||
public sealed class Deflate
|
||||
{
|
||||
internal class Config
|
||||
@ -1409,3 +1409,4 @@ public sealed class Deflate
|
||||
config_table[9] = new Config(32, 258, 258, 4096, 2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System;
|
||||
|
||||
namespace ComponentAce.Compression.Libs.zlib;
|
||||
|
||||
namespace ComponentAce.Compression.Libs.zlib
|
||||
{
|
||||
internal sealed class InfBlocks
|
||||
{
|
||||
private const int MANY = 1440;
|
||||
@ -658,3 +658,4 @@ internal sealed class InfBlocks
|
||||
return r;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System;
|
||||
|
||||
namespace ComponentAce.Compression.Libs.zlib;
|
||||
|
||||
namespace ComponentAce.Compression.Libs.zlib
|
||||
{
|
||||
internal sealed class InfCodes
|
||||
{
|
||||
private static readonly int[] inflate_mask = new int[17]
|
||||
@ -661,3 +661,4 @@ internal sealed class InfCodes
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System;
|
||||
|
||||
namespace ComponentAce.Compression.Libs.zlib;
|
||||
|
||||
namespace ComponentAce.Compression.Libs.zlib
|
||||
{
|
||||
internal sealed class InfTree
|
||||
{
|
||||
private const int MANY = 1440;
|
||||
@ -476,3 +476,4 @@ internal sealed class InfTree
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
namespace ComponentAce.Compression.Libs.zlib;
|
||||
|
||||
namespace ComponentAce.Compression.Libs.zlib
|
||||
{
|
||||
internal sealed class Inflate
|
||||
{
|
||||
private const int MAX_WBITS = 15;
|
||||
@ -406,3 +406,4 @@ internal sealed class Inflate
|
||||
return z.istate.blocks.sync_point();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
namespace ComponentAce.Compression.Libs.zlib;
|
||||
|
||||
namespace ComponentAce.Compression.Libs.zlib
|
||||
{
|
||||
internal sealed class StaticTree
|
||||
{
|
||||
private const int MAX_BITS = 15;
|
||||
@ -123,3 +123,4 @@ internal sealed class StaticTree
|
||||
static_bl_desc = new StaticTree(null, Tree.extra_blbits, 0, 19, 7);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,8 +1,8 @@
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
|
||||
namespace ComponentAce.Compression.Libs.zlib;
|
||||
|
||||
namespace ComponentAce.Compression.Libs.zlib
|
||||
{
|
||||
public class SupportClass
|
||||
{
|
||||
public static long Identity(long literal)
|
||||
@ -101,3 +101,4 @@ public class SupportClass
|
||||
return Encoding.UTF8.GetChars(byteArray);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System;
|
||||
|
||||
namespace ComponentAce.Compression.Libs.zlib;
|
||||
|
||||
namespace ComponentAce.Compression.Libs.zlib
|
||||
{
|
||||
internal sealed class Tree
|
||||
{
|
||||
private const int MAX_BITS = 15;
|
||||
@ -338,3 +338,4 @@ internal sealed class Tree
|
||||
return SupportClass.URShift(num, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System.IO;
|
||||
|
||||
namespace ComponentAce.Compression.Libs.zlib;
|
||||
|
||||
namespace ComponentAce.Compression.Libs.zlib
|
||||
{
|
||||
public class ZInputStream : BinaryReader
|
||||
{
|
||||
protected ZStream z = new ZStream();
|
||||
@ -131,3 +131,4 @@ public class ZInputStream : BinaryReader
|
||||
in_Renamed.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,8 +1,8 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
|
||||
namespace ComponentAce.Compression.Libs.zlib;
|
||||
|
||||
namespace ComponentAce.Compression.Libs.zlib
|
||||
{
|
||||
public class ZOutputStream : Stream
|
||||
{
|
||||
protected internal ZStream z = new ZStream();
|
||||
@ -190,3 +190,4 @@ public class ZOutputStream : Stream
|
||||
return 0L;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System;
|
||||
|
||||
namespace ComponentAce.Compression.Libs.zlib;
|
||||
|
||||
namespace ComponentAce.Compression.Libs.zlib
|
||||
{
|
||||
public sealed class ZStream
|
||||
{
|
||||
private const int MAX_WBITS = 15;
|
||||
@ -221,3 +221,4 @@ public sealed class ZStream
|
||||
_adler = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System.IO;
|
||||
|
||||
namespace ComponentAce.Compression.Libs.zlib;
|
||||
|
||||
namespace ComponentAce.Compression.Libs.zlib
|
||||
{
|
||||
public class ZStreamException : IOException
|
||||
{
|
||||
public ZStreamException()
|
||||
@ -13,3 +13,4 @@ public class ZStreamException : IOException
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
namespace ComponentAce.Compression.Libs.zlib;
|
||||
|
||||
namespace ComponentAce.Compression.Libs.zlib
|
||||
{
|
||||
public sealed class zlibConst
|
||||
{
|
||||
private const string version_Renamed_Field = "1.0.2";
|
||||
@ -51,3 +51,4 @@ public sealed class zlibConst
|
||||
return "1.0.2";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System.Security.Cryptography;
|
||||
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
public class Crc32 : HashAlgorithm
|
||||
{
|
||||
public const uint DefaultPolynomial = 3988292384u;
|
||||
@ -106,3 +106,4 @@ public class Crc32 : HashAlgorithm
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,8 +1,9 @@
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
public enum EmuRegion
|
||||
{
|
||||
NTSC,
|
||||
PALB,
|
||||
DENDY
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System.IO;
|
||||
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
public class EmuSettings : ISettings
|
||||
{
|
||||
public string SnapsFolder = "Snaps";
|
||||
@ -97,3 +97,4 @@ public class EmuSettings : ISettings
|
||||
StateHandler.StateFolder = StateFolder;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,8 +1,8 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
internal class Eprom
|
||||
{
|
||||
private enum EpromDevice
|
||||
@ -380,3 +380,4 @@ internal class Eprom
|
||||
isRead = stream.ReadBoolean();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System.IO;
|
||||
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
internal abstract class FFE : Board
|
||||
{
|
||||
protected bool irqEnable;
|
||||
@ -53,3 +53,4 @@ internal abstract class FFE : Board
|
||||
irqCounter = bin.ReadInt32();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
public class GameGenie
|
||||
{
|
||||
public string[] LettersTable = new string[16]
|
||||
@ -149,3 +149,4 @@ public class GameGenie
|
||||
return (byte)((num8 << 7) | (num7 << 6) | (num6 << 5) | (num5 << 4) | (num4 << 3) | (num3 << 2) | (num2 << 1) | num);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
public struct GameGenieCode
|
||||
{
|
||||
public string Name;
|
||||
@ -16,3 +16,4 @@ public struct GameGenieCode
|
||||
|
||||
public bool Enabled;
|
||||
}
|
||||
}
|
||||
|
@ -1,3 +1,4 @@
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
internal delegate void GetIsPlaying(out bool playing);
|
||||
}
|
||||
|
@ -1,7 +1,8 @@
|
||||
using System;
|
||||
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
internal class HassIssuesAttribute : Attribute
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@ -1,8 +1,8 @@
|
||||
using System.IO;
|
||||
using System.Security.Cryptography;
|
||||
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
public class HelperTools
|
||||
{
|
||||
public static string GetFileSize(string FilePath)
|
||||
@ -171,3 +171,4 @@ public class HelperTools
|
||||
return array;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
public interface IAudioProvider
|
||||
{
|
||||
string Name { get; }
|
||||
@ -26,3 +26,4 @@ public interface IAudioProvider
|
||||
|
||||
void SetVolume(int Vol);
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
public abstract class IJoypadConnecter
|
||||
{
|
||||
protected byte DATA;
|
||||
@ -15,3 +15,4 @@ public abstract class IJoypadConnecter
|
||||
return DATA;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,8 +1,8 @@
|
||||
using System.IO;
|
||||
using System.Security.Cryptography;
|
||||
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
public class INes : IRom
|
||||
{
|
||||
public bool HasBattery { get; private set; }
|
||||
@ -92,3 +92,4 @@ public class INes : IRom
|
||||
fileStream.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
public abstract class IRom
|
||||
{
|
||||
public bool IsValid { get; set; }
|
||||
@ -26,3 +26,4 @@ public abstract class IRom
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -3,8 +3,8 @@ using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Reflection;
|
||||
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
public abstract class ISettings
|
||||
{
|
||||
protected string filePath;
|
||||
@ -150,3 +150,4 @@ public abstract class ISettings
|
||||
return "";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,7 @@
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
public interface IShortcutsHandler
|
||||
{
|
||||
void Update();
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
public abstract class IVSUnisystemDIPConnecter
|
||||
{
|
||||
public abstract void Update();
|
||||
@ -22,3 +22,4 @@ public abstract class IVSUnisystemDIPConnecter
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
public interface IVideoProvider
|
||||
{
|
||||
string Name { get; }
|
||||
@ -38,3 +38,4 @@ public interface IVideoProvider
|
||||
|
||||
void ApplyFilter();
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
public abstract class IZapperConnecter
|
||||
{
|
||||
protected bool Trigger;
|
||||
@ -13,3 +13,4 @@ public abstract class IZapperConnecter
|
||||
return (byte)((Trigger ? 16u : 0u) | (State ? 8u : 0u));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System.IO;
|
||||
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
internal abstract class MMC2 : Board
|
||||
{
|
||||
private byte chr_reg0A;
|
||||
@ -113,3 +113,4 @@ internal abstract class MMC2 : Board
|
||||
latch_b = stream.ReadByte();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System.IO;
|
||||
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
internal class MMC5Pcm
|
||||
{
|
||||
internal byte output;
|
||||
@ -83,3 +83,4 @@ internal class MMC5Pcm
|
||||
irqTrip = stream.ReadBoolean();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System.IO;
|
||||
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
internal class MMC5Sqr
|
||||
{
|
||||
private byte[][] duty_cycle_sequences = new byte[4][]
|
||||
@ -211,3 +211,4 @@ internal class MMC5Sqr
|
||||
output = bin.ReadInt32();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
public class MNInterfaceLanguage
|
||||
{
|
||||
public static string Message_RomInfoCanBeOnlyShown = "Rom info can be shown only when emulation is on (i.e. game is loaded)";
|
||||
@ -126,3 +126,4 @@ public class MNInterfaceLanguage
|
||||
|
||||
public static string IssueMapper255 = "Mapper 255 is not tested, issues may occur";
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,7 @@
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
[BoardInfo("NROM", 0)]
|
||||
internal class Mapper000 : Board
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@ -1,8 +1,8 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
[BoardInfo("MMC1", 1, 4, 64)]
|
||||
internal class Mapper001 : Board
|
||||
{
|
||||
@ -242,3 +242,4 @@ internal class Mapper001 : Board
|
||||
cpuCycles = stream.ReadInt32();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
[BoardInfo("UxROM", 2)]
|
||||
internal class Mapper002 : Board
|
||||
{
|
||||
@ -14,3 +14,4 @@ internal class Mapper002 : Board
|
||||
Switch16KPRG(val, PRGArea.Area8000);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
[BoardInfo("CNROM", 3)]
|
||||
internal class Mapper003 : Board
|
||||
{
|
||||
@ -12,3 +12,4 @@ internal class Mapper003 : Board
|
||||
Switch08KCHR(data_temp);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System.IO;
|
||||
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
[BoardInfo("MMC3", 4, true, true)]
|
||||
internal class Mapper004 : Board
|
||||
{
|
||||
@ -221,3 +221,4 @@ internal class Mapper004 : Board
|
||||
mmc3_alt_behavior = bin.ReadBoolean();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,8 +1,8 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
[BoardInfo("MMC5", 5, 8, 16)]
|
||||
[WithExternalSound]
|
||||
[HassIssues]
|
||||
@ -867,3 +867,4 @@ internal class Mapper005 : Board
|
||||
snd_3.LoadState(ref stream);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
[BoardInfo("FFE F4xxx", 6)]
|
||||
[HassIssues]
|
||||
internal class Mapper006 : FFE
|
||||
@ -18,3 +18,4 @@ internal class Mapper006 : FFE
|
||||
Switch16KPRG((data >> 2) & 0xF, PRGArea.Area8000);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
[BoardInfo("AxROM", 7)]
|
||||
internal class Mapper007 : Board
|
||||
{
|
||||
@ -9,3 +9,4 @@ internal class Mapper007 : Board
|
||||
Switch32KPRG(val & 7, PRGArea.Area8000);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
[BoardInfo("FFE F3xxx", 8)]
|
||||
[HassIssues]
|
||||
internal class Mapper008 : FFE
|
||||
@ -12,3 +12,4 @@ internal class Mapper008 : FFE
|
||||
Switch08KCHR(data & 3);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,7 @@
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
[BoardInfo("MMC2", 9)]
|
||||
internal class Mapper009 : MMC2
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
[BoardInfo("MMC4", 10)]
|
||||
internal class Mapper010 : MMC2
|
||||
{
|
||||
@ -22,3 +22,4 @@ internal class Mapper010 : MMC2
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
[BoardInfo("Color Dreams", 11)]
|
||||
internal class Mapper011 : Board
|
||||
{
|
||||
@ -13,3 +13,4 @@ internal class Mapper011 : Board
|
||||
Switch08KCHR((writeData >> 4) & 0xF);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
[BoardInfo("CPROM", 13, 1, 16)]
|
||||
internal class Mapper013 : Board
|
||||
{
|
||||
@ -18,3 +18,4 @@ internal class Mapper013 : Board
|
||||
Switch04KCHR(writeData & 3, CHRArea.Area1000);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
[BoardInfo("100-in-1 Contra Function 16", 15)]
|
||||
internal class Mapper015 : Board
|
||||
{
|
||||
@ -33,3 +33,4 @@ internal class Mapper015 : Board
|
||||
Switch01KNMTFromMirroring(((data & 0x40) == 64) ? Mirroring.Horz : Mirroring.Vert);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,7 @@
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
[BoardInfo("Bandai", 16)]
|
||||
internal class Mapper016 : Bandai
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
[BoardInfo("FFE F8xxx", 17)]
|
||||
internal class Mapper017 : FFE
|
||||
{
|
||||
@ -61,3 +61,4 @@ internal class Mapper017 : FFE
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System.IO;
|
||||
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
[BoardInfo("Jaleco SS8806", 18)]
|
||||
internal class Mapper018 : Board
|
||||
{
|
||||
@ -216,3 +216,4 @@ internal class Mapper018 : Board
|
||||
irqMask = stream.ReadInt32();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,7 @@
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
[BoardInfo("Namcot 106", 19, 1, 256)]
|
||||
internal class Mapper019 : Namcot106
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System.IO;
|
||||
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
[BoardInfo("VRC4", 21)]
|
||||
internal class Mapper021 : Board
|
||||
{
|
||||
@ -251,3 +251,4 @@ internal class Mapper021 : Board
|
||||
irq_enable_on_ak = stream.ReadBoolean();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System.IO;
|
||||
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
[BoardInfo("VRC2", 22)]
|
||||
internal class Mapper022 : Board
|
||||
{
|
||||
@ -135,3 +135,4 @@ internal class Mapper022 : Board
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System.IO;
|
||||
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
[BoardInfo("VRC2", 23)]
|
||||
internal class Mapper023 : Board
|
||||
{
|
||||
@ -160,3 +160,4 @@ internal class Mapper023 : Board
|
||||
security = stream.ReadByte();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System.IO;
|
||||
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
[BoardInfo("VRC6", 24)]
|
||||
[WithExternalSound]
|
||||
internal class Mapper024 : Board
|
||||
@ -242,3 +242,4 @@ internal class Mapper024 : Board
|
||||
snd_3.LoadState(ref stream);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System.IO;
|
||||
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
[BoardInfo("VRC4", 25)]
|
||||
internal class Mapper025 : Board
|
||||
{
|
||||
@ -251,3 +251,4 @@ internal class Mapper025 : Board
|
||||
irq_enable_on_ak = stream.ReadBoolean();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System.IO;
|
||||
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
[BoardInfo("VRC6", 26)]
|
||||
[WithExternalSound]
|
||||
internal class Mapper026 : Board
|
||||
@ -242,3 +242,4 @@ internal class Mapper026 : Board
|
||||
snd_3.LoadState(ref stream);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System.IO;
|
||||
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
[BoardInfo("Irem G-101", 32)]
|
||||
internal class Mapper032 : Board
|
||||
{
|
||||
@ -106,3 +106,4 @@ internal class Mapper032 : Board
|
||||
prg_reg0 = stream.ReadByte();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System.IO;
|
||||
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
[BoardInfo("Taito TC0190/TC0350", 33)]
|
||||
[HassIssues]
|
||||
internal class Mapper033 : Board
|
||||
@ -174,3 +174,4 @@ internal class Mapper033 : Board
|
||||
irq_clear = stream.ReadBoolean();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
[BoardInfo("BxROM/NINA-001", 34)]
|
||||
internal class Mapper034 : Board
|
||||
{
|
||||
@ -47,3 +47,4 @@ internal class Mapper034 : Board
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System.IO;
|
||||
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
[BoardInfo("Caltron 6-in-1", 41)]
|
||||
internal class Mapper041 : Board
|
||||
{
|
||||
@ -55,3 +55,4 @@ internal class Mapper041 : Board
|
||||
vromReg = stream.ReadInt32();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System.IO;
|
||||
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
[BoardInfo("Mario Baby", 42)]
|
||||
internal class Mapper042 : Board
|
||||
{
|
||||
@ -91,3 +91,4 @@ internal class Mapper042 : Board
|
||||
irqCounter = stream.ReadInt32();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System.IO;
|
||||
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
[BoardInfo("7-in-1 MMC3 Port A001h", 44, true, true)]
|
||||
[HassIssues]
|
||||
internal class Mapper044 : Board
|
||||
@ -232,3 +232,4 @@ internal class Mapper044 : Board
|
||||
chr_or = stream.ReadInt32();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,8 +1,8 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
[BoardInfo("X-in-1 MMC3 Port 6000hx4", 45, true, true)]
|
||||
internal class Mapper045 : Board
|
||||
{
|
||||
@ -291,3 +291,4 @@ internal class Mapper045 : Board
|
||||
regCounter = stream.ReadInt32();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System.IO;
|
||||
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
[BoardInfo("15-in-1 Color Dreams", 46)]
|
||||
internal class Mapper046 : Board
|
||||
{
|
||||
@ -39,3 +39,4 @@ internal class Mapper046 : Board
|
||||
chr_reg = stream.ReadInt32();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,8 +1,8 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
[BoardInfo("2-in-1 MMC3 Port 6000h", 47, true, true)]
|
||||
internal class Mapper047 : Board
|
||||
{
|
||||
@ -255,3 +255,4 @@ internal class Mapper047 : Board
|
||||
irq_enabled = stream.ReadBoolean();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System.IO;
|
||||
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
[BoardInfo("Taito TC0190/TC0350", 48, true, true)]
|
||||
internal class Mapper048 : Board
|
||||
{
|
||||
@ -169,3 +169,4 @@ internal class Mapper048 : Board
|
||||
irq_clear = stream.ReadBoolean();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,8 +1,8 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
[BoardInfo("4-in-1 MMC3 Port 6xxxh", 49, true, true)]
|
||||
internal class Mapper049 : Board
|
||||
{
|
||||
@ -269,3 +269,4 @@ internal class Mapper049 : Board
|
||||
prg_32Page = stream.ReadInt32();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System.IO;
|
||||
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
[BoardInfo("FDS-Port - Alt. Levels", 50)]
|
||||
internal class Mapper050 : Board
|
||||
{
|
||||
@ -68,3 +68,4 @@ internal class Mapper050 : Board
|
||||
irq_enabled = stream.ReadBoolean();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System.IO;
|
||||
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
[BoardInfo("11-in-1", 51)]
|
||||
internal class Mapper051 : Board
|
||||
{
|
||||
@ -76,3 +76,4 @@ internal class Mapper051 : Board
|
||||
offset = stream.ReadInt32();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,8 +1,8 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
[BoardInfo("7-in-1 MMC3 Port 6800h with SRAM", 52, true, true)]
|
||||
internal class Mapper052 : Board
|
||||
{
|
||||
@ -270,3 +270,4 @@ internal class Mapper052 : Board
|
||||
locked = stream.ReadBoolean();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System.IO;
|
||||
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
[BoardInfo("Unknown", 53)]
|
||||
[HassIssues]
|
||||
internal class Mapper053 : Board
|
||||
@ -55,3 +55,4 @@ internal class Mapper053 : Board
|
||||
epromFirst = stream.ReadBoolean();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
[BoardInfo("Pirate SMB3", 56)]
|
||||
internal class Mapper056 : Board
|
||||
{
|
||||
@ -94,3 +94,4 @@ internal class Mapper056 : Board
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System.IO;
|
||||
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
[BoardInfo("6-in-1 (SuperGK)", 57)]
|
||||
internal class Mapper057 : Board
|
||||
{
|
||||
@ -52,3 +52,4 @@ internal class Mapper057 : Board
|
||||
chr_hhh = stream.ReadInt32();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
[BoardInfo("68-in-1 (Game Star)", 58)]
|
||||
[HassIssues]
|
||||
internal class Mapper058 : Board
|
||||
@ -21,3 +21,4 @@ internal class Mapper058 : Board
|
||||
Switch01KNMTFromMirroring(((address & 0x80) == 128) ? Mirroring.Horz : Mirroring.Vert);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System.IO;
|
||||
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
[BoardInfo("Unknown", 60)]
|
||||
[HassIssues]
|
||||
internal class Mapper060 : Board
|
||||
@ -64,3 +64,4 @@ internal class Mapper060 : Board
|
||||
menu = stream.ReadByte();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
[BoardInfo("20-in-1", 61)]
|
||||
internal class Mapper061 : Board
|
||||
{
|
||||
@ -17,3 +17,4 @@ internal class Mapper061 : Board
|
||||
Switch01KNMTFromMirroring(((address & 0x80) == 128) ? Mirroring.Horz : Mirroring.Vert);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
[BoardInfo("Super 700-in-1", 62)]
|
||||
internal class Mapper062 : Board
|
||||
{
|
||||
@ -21,3 +21,4 @@ internal class Mapper062 : Board
|
||||
Switch01KNMTFromMirroring(((address & 0x80) == 128) ? Mirroring.Horz : Mirroring.Vert);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System.IO;
|
||||
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
[BoardInfo("Tengen RAMBO-1", 64, true, true)]
|
||||
internal class Mapper064 : Board
|
||||
{
|
||||
@ -255,3 +255,4 @@ internal class Mapper064 : Board
|
||||
irq_mode = stream.ReadBoolean();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
[BoardInfo("Irem H-3001", 65)]
|
||||
internal class Mapper065 : Board
|
||||
{
|
||||
@ -91,3 +91,4 @@ internal class Mapper065 : Board
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
[BoardInfo("GxROM", 66)]
|
||||
internal class Mapper066 : Board
|
||||
{
|
||||
@ -9,3 +9,4 @@ internal class Mapper066 : Board
|
||||
Switch08KCHR(data & 3);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System.IO;
|
||||
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
[BoardInfo("Sunsoft 3", 67)]
|
||||
internal class Mapper067 : Board
|
||||
{
|
||||
@ -105,3 +105,4 @@ internal class Mapper067 : Board
|
||||
odd = stream.ReadBoolean();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System.IO;
|
||||
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
[BoardInfo("Sunsoft 4", 68)]
|
||||
internal class Mapper068 : Board
|
||||
{
|
||||
@ -109,3 +109,4 @@ internal class Mapper068 : Board
|
||||
temp = stream.ReadInt32();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System.IO;
|
||||
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
[BoardInfo("FME-7/Sunsoft 5B", 69)]
|
||||
[WithExternalSound]
|
||||
internal class Mapper069 : Board
|
||||
@ -256,3 +256,4 @@ internal class Mapper069 : Board
|
||||
snd_3.LoadState(ref stream);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
[BoardInfo("Bandai", 70)]
|
||||
internal class Mapper070 : Board
|
||||
{
|
||||
@ -15,3 +15,4 @@ internal class Mapper070 : Board
|
||||
Switch08KCHR(data & 0xF);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
[BoardInfo("Camerica", 71)]
|
||||
internal class Mapper071 : Board
|
||||
{
|
||||
@ -27,3 +27,4 @@ internal class Mapper071 : Board
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System.IO;
|
||||
|
||||
namespace MyNes.Core;
|
||||
|
||||
namespace MyNes.Core
|
||||
{
|
||||
[BoardInfo("Jaleco Early Mapper 0", 72)]
|
||||
internal class Mapper072 : Board
|
||||
{
|
||||
@ -50,3 +50,4 @@ internal class Mapper072 : Board
|
||||
prg_reg = stream.ReadInt32();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user