mirror of
https://github.com/wiiu-env/libfat.git
synced 2024-11-22 01:49:17 +01:00
use libnds functions for bus ownership
This commit is contained in:
parent
985992255a
commit
1bad1ac5d6
@ -113,10 +113,7 @@ const IO_INTERFACE* _FAT_disc_gbaSlotFindInterface (void)
|
||||
// the GBA cart. First implemented by SaTa.
|
||||
#ifdef NDS
|
||||
#ifdef ARM9
|
||||
WAIT_CR &= ~ARM9_OWNS_ROM;
|
||||
#endif
|
||||
#ifdef ARM7
|
||||
WAIT_CR |= ARM9_OWNS_ROM;
|
||||
sysSetCartOwner(BUS_OWNER_ARM9);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@ -140,10 +137,7 @@ const IO_INTERFACE* _FAT_disc_gbaSlotFindInterface (void)
|
||||
const IO_INTERFACE* _FAT_disc_dsSlotFindInterface (void)
|
||||
{
|
||||
#ifdef ARM9
|
||||
WAIT_CR &= ~ARM9_OWNS_CARD;
|
||||
#endif
|
||||
#ifdef ARM7
|
||||
WAIT_CR |= ARM9_OWNS_CARD;
|
||||
sysSetCardOwner(BUS_OWNER_ARM9);
|
||||
#endif
|
||||
int i;
|
||||
|
||||
@ -169,10 +163,7 @@ const IO_INTERFACE* _FAT_disc_dsSlotFindInterface (void)
|
||||
const IO_INTERFACE* _FAT_disc_findInterface (void)
|
||||
{
|
||||
#ifdef ARM9
|
||||
WAIT_CR &= ~(ARM9_OWNS_CARD | ARM9_OWNS_ROM);
|
||||
#endif
|
||||
#ifdef ARM7
|
||||
WAIT_CR |= (ARM9_OWNS_CARD | ARM9_OWNS_ROM);
|
||||
sysSetBusOwners(BUS_OWNER_ARM9, BUS_OWNER_ARM9);
|
||||
#endif
|
||||
|
||||
int i;
|
||||
|
Loading…
Reference in New Issue
Block a user