Modified the includes so that files from the dmg folder don't include anything from the agb folder.
This commit is contained in:
parent
6c6e4a8b97
commit
56f42e81eb
|
@ -1,6 +1,6 @@
|
|||
#include <memory.h>
|
||||
|
||||
#include "../agb/GBA.h"
|
||||
#include "../Globals.h"
|
||||
#include "gbGlobals.h"
|
||||
#include "gbSGB.h"
|
||||
|
||||
|
@ -565,11 +565,12 @@ void gbDrawSprites(bool draw)
|
|||
{
|
||||
for (int j = x-8; j<300; j++)
|
||||
if (j>=0)
|
||||
{
|
||||
if (gbSpeed)
|
||||
gbSpritesTicks[j] += 5;
|
||||
else
|
||||
gbSpritesTicks[j] += 2+(count&1);
|
||||
|
||||
}
|
||||
}
|
||||
count++;
|
||||
}
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#include "../agb/GBA.h"
|
||||
#include <cstdlib>
|
||||
#include "../common/Types.h"
|
||||
|
||||
u8 *gbMemoryMap[16];
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include "../agb/GBA.h"
|
||||
#include "../System.h"
|
||||
#include "../common/Port.h"
|
||||
#include "gbGlobals.h"
|
||||
#include "gbMemory.h"
|
||||
|
@ -1322,8 +1322,8 @@ void mapperTAMA5RAM(u16 address, u8 value)
|
|||
// Write Commands !!!
|
||||
if (gbDataTAMA5.mapperCommands[0x0f] && (gbDataTAMA5.mapperCommandNumber == 7))
|
||||
{
|
||||
int data = gbDataTAMA5.mapperCommands[0x04] & 0x0f |
|
||||
(gbDataTAMA5.mapperCommands[0x05] <<4);
|
||||
int data = (gbDataTAMA5.mapperCommands[0x04] & 0x0f) |
|
||||
(gbDataTAMA5.mapperCommands[0x05] <<4);
|
||||
|
||||
// Not sure when the write command should reset...
|
||||
// but it doesn't seem to matter.
|
||||
|
@ -1456,7 +1456,7 @@ void mapperTAMA5RAM(u16 address, u8 value)
|
|||
for (int i = 0; i<0x10; i++)
|
||||
for (int j = 0; j<0x10; j++)
|
||||
if (!(j&2))
|
||||
gbTAMA5ram[(i*0x10)+j | 2] = gbTAMA5ram[(i*0x10)+j];
|
||||
gbTAMA5ram[((i*0x10)+j) | 2] = gbTAMA5ram[(i*0x10)+j];
|
||||
// Enable this to see the content of the flashrom in 0xe000
|
||||
/*for (int k = 0; k<0x100; k++)
|
||||
gbMemoryMap[0xe][k] = gbTAMA5ram[k];*/
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#include <stdio.h>
|
||||
#include <memory.h>
|
||||
#include "../agb/GBA.h"
|
||||
#include "../System.h"
|
||||
|
||||
u8 gbPrinterStatus = 0;
|
||||
int gbPrinterState = 0;
|
||||
|
|
Loading…
Reference in New Issue