Skip to content

Commit

Permalink
3 dumps
Browse files Browse the repository at this point in the history
  • Loading branch information
spiiin committed May 7, 2017
1 parent 5ccb1c6 commit 968ac4d
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 7 deletions.
38 changes: 31 additions & 7 deletions CadEditor/settings_contra_force/Settings_ContraForce-1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,48 @@ public class Data
public bool isBlockEditorEnabled() { return true; }
public bool isEnemyEditorEnabled() { return false; }

public OffsetRec getVideoOffset() { return new OffsetRec(0x2C010, 1, 0x1000); }
public OffsetRec getVideoOffset() { return new OffsetRec(0x2C010, 3, 0x1000); }

public bool isBuildScreenFromSmallBlocks() { return true; }

public OffsetRec getBlocksOffset() { return new OffsetRec(0x18611, 1 , 0x1000); }
public int getBlocksCount() { return 152; }
public int getBigBlocksCount() { return 152; }
public int getBlocksCount() { return 153; }
public int getBigBlocksCount() { return 153; }
public int getPalBytesAddr() { return 0x18FA1; }

public GetVideoPageAddrFunc getVideoPageAddrFunc() { return Utils.getChrAddress; }
public GetVideoChunkFunc getVideoChunkFunc() { return Utils.getVideoChunk; }
public SetVideoChunkFunc setVideoChunkFunc() { return Utils.setVideoChunk; }
public GetVideoPageAddrFunc getVideoPageAddrFunc() { return getVideoAddress; }
public GetVideoChunkFunc getVideoChunkFunc() { return getVideoChunk; }
public SetVideoChunkFunc setVideoChunkFunc() { return null; }
public GetBlocksFunc getBlocksFunc() { return Utils.getBlocksFromTiles16Pal1;}
public SetBlocksFunc setBlocksFunc() { return Utils.setBlocksFromTiles16Pal1;}
public GetPalFunc getPalFunc() { return getPallete;}
public SetPalFunc setPalFunc() { return null;}
//-------------------------------------------------------------------------------

public int getVideoAddress(int id)
{
return -1;
}

public byte[] getVideoChunk(int videoPageId)
{
if (videoPageId == 0x90)
{
return Utils.readVideoBankFromFile("chr1.bin", 0);
}
else if (videoPageId == 0x91)
{
return Utils.readVideoBankFromFile("chr1-2.bin", 0);
}
else if (videoPageId == 0x92)
{
return Utils.readVideoBankFromFile("chr1-3.bin", 0);
}
else
{
return null;
}
}

public byte[] getPallete(int palId)
{
return Utils.readBinFile("pal1.bin");
Expand Down
Binary file added CadEditor/settings_contra_force/chr1-2.bin
Binary file not shown.
Binary file added CadEditor/settings_contra_force/chr1-3.bin
Binary file not shown.
Binary file added CadEditor/settings_contra_force/chr1.bin
Binary file not shown.

0 comments on commit 968ac4d

Please sign in to comment.