Skip to content

Commit

Permalink
- Update No-Intro database.
Browse files Browse the repository at this point in the history
- Move EAR initialization.
  • Loading branch information
Extrems committed Jun 17, 2023
1 parent 0c7271c commit 5760ae3
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 10 deletions.
2 changes: 2 additions & 0 deletions cube/asm.h
Expand Up @@ -127,6 +127,8 @@
#define SPRG2 274
#define SPRG3 275

#define EAR 282

#define DABR 1013

#define IABR 1010
Expand Down
5 changes: 0 additions & 5 deletions cube/swiss/source/aram/sidestep.c
Expand Up @@ -105,11 +105,6 @@ static void ARAMStub(void)
asm("bdnz flush");
asm("isync");

/*** Enable external control ***/
asm("lis 8,0x8000");
asm("ori 8,8,0x000c");
asm("mtear 8");

/*** Party! ***/
asm("mtlr 3");
asm("li 0,0");
Expand Down
7 changes: 5 additions & 2 deletions cube/swiss/source/devices/filemeta.c
Expand Up @@ -159,12 +159,15 @@ void populate_game_meta(file_handle *f, u32 bannerOffset, u32 bannerSize) {
if(!memcmp(banner->magic, "BNR1", 4)) {
f->meta->bannerSum = fletcher16(banner, bannerSize);
memcpy(f->meta->banner, banner->pixelData, f->meta->bannerSize);
memcpy(&f->meta->bannerDesc, &banner->desc[0], sizeof(f->meta->bannerDesc));
memcpy(&f->meta->bannerDesc, &banner->desc[SYS_LANG_ENGLISH], sizeof(f->meta->bannerDesc));
}
else if(!memcmp(banner->magic, "BNR2", 4)) {
f->meta->bannerSum = fletcher16(banner, bannerSize);
memcpy(f->meta->banner, banner->pixelData, f->meta->bannerSize);
memcpy(&f->meta->bannerDesc, &banner->desc[swissSettings.sramLanguage], sizeof(f->meta->bannerDesc));
if(in_range(swissSettings.sramLanguage, SYS_LANG_ENGLISH, SYS_LANG_DUTCH))
memcpy(&f->meta->bannerDesc, &banner->desc[swissSettings.sramLanguage], sizeof(f->meta->bannerDesc));
else
memcpy(&f->meta->bannerDesc, &banner->desc[SYS_LANG_ENGLISH], sizeof(f->meta->bannerDesc));
}
fixBannerDesc(f->meta->bannerDesc.gameName, BNR_SHORT_TEXT_LEN);
if(strnlen(f->meta->bannerDesc.gameName, BNR_SHORT_TEXT_LEN))
Expand Down
2 changes: 1 addition & 1 deletion cube/swiss/source/gui/settings.c
Expand Up @@ -40,7 +40,7 @@ char *igrTypeStr[] = {"Disabled", "Reboot", "igr.dol"};
char *aveCompatStr[] = {"CMPV-DOL", "GCVideo", "AVE-RVL", "AVE N-DOL"};
char *fileBrowserStr[] = {"Standard", "Carousel"};
char *bs2BootStr[] = {"No", "Yes", "Sound 1", "Sound 2"};
char *sramLang[] = {"English", "German", "French", "Spanish", "Italian", "Dutch", "Japanese"};
char *sramLang[] = {"English", "German", "French", "Spanish", "Italian", "Dutch", "Japanese", "English (US)"};
char *recentListLevelStr[] = {"Off", "Lazy", "On"};

static char *tooltips_global[PAGE_GLOBAL_MAX+1] = {
Expand Down
2 changes: 1 addition & 1 deletion cube/swiss/source/gui/settings.h
Expand Up @@ -147,7 +147,7 @@ extern char *aveCompatStr[];
extern char *fileBrowserStr[];
extern char *bs2BootStr[];
extern char *recentListLevelStr[];
#define SRAM_LANG_MAX 6
#define SRAM_LANG_MAX 7
extern char *sramLang[];
int show_settings(int page, int option, ConfigEntry *config);
void refreshSRAM();
Expand Down
3 changes: 2 additions & 1 deletion cube/swiss/source/nkit.c
Expand Up @@ -2090,6 +2090,7 @@ static const struct {
{ "GLJEGG\x00\x00", false, 1, 0x3684, 0xC411F2F8, 577157120, +883148800, 0xED983A4B64245ED8, { 560702976, +882822244, 6496, 0x83D8 }, "Radio Allergy" },
{ "GMPP01\x00\x00", false, 1, 0x39B0, 0xB7DA63ED, 607344640, +852633600, 0x895DFE61A45E24FC, { 559136944, +232500, 8096, 0x03FE }, "Mario Party 4" },
{ "GMPP01\x00\x02", false, 1, 0x9D34, 0xF0DE4105, 607346688, +852631552, 0x895DFE61A45E24FC, { 559137448, +264764, 8096, 0x03FE }, "Mario Party 4" },
{ "GMSP01\x00\x00", false, 1, 0x6C8C, 0xF968261A, 404224000, +100352, 0x784E17B83254CEE8, { 404214580, +70348, 8096, 0x4911 }, "Super Mario Sunshine" },
{ "GMUP5D\x00\x00", false, 1, 0xEE0B, 0xD442A6BF, 1425692672, +34285568, 0x436DC9BED493D5DE, { 6644012, +5580500, 6496, 0x093D }, "Dr. Muto" },
{ "GNDP8P\x01\x01", false, 1, 0x6F6A, 0x81525825, 894347264, +565630976, 0x7B6CD8E32A668D95, { ~0, +0, 0, 0xFFFF }, "Need for Speed: Underground" },
{ "GP5P01\x00\x00", false, 1, 0xFBF1, 0x9DC1BB2A, 922845184, +537133056, 0xC5CD32D7C41AAE3D, { 14902032, +41916, 8096, 0x3D31 }, "Mario Party 5" },
Expand Down Expand Up @@ -2126,7 +2127,7 @@ static const struct {
{ "RELSAB\x01\x01", false, 1, 0xA47D, 0xBB46463A, 482416640, +977561600, 0x7A5CBC4681D2D704, { 3936256, +28760, 6496, 0x3FED }, "Rayman Arena" },
{ "RELSAB\x01\x01", true, 1, 0x771E, 0x17B30888, 134633472, +1325344768, 0x3E5C6F107670681B, { ~0, +0, 0, 0xFFFF }, "Crazy Taxi" },
{ "TESTNA\x00\x00", false, 1, 0x0C28, 0x6254FB97, 26834944, -1658, 0xAA2E5EDD0EF81992, { ~0, +0, 0, 0xFFFF }, "Dodger Demo" },
#define VALID_COUNT (REDUMP_COUNT + 84)
#define VALID_COUNT (REDUMP_COUNT + 85)
{ "101E01\x00\x05", true, 1, 0xB6FD, 0x4BB518CD, 1435949056, +24029184, 0x27CFAD706924A030, { ~0, +0, 0, 0xFFFF }, "Hontai Kensa Disc DOL-USA" },
{ "101J01\x00\x03", true, 1, 0xA361, 0x1A7B7608, 1459453952, +524288, 0x6E2DA2E062EF73BA, { ~0, +0, 0, 0xFFFF }, "Hontai Kensa Disc DOL" },
{ "101J01\x00\x06", true, 1, 0x402F, 0xC3C5D3D6, 1459453952, +524288, 0x946298C97236262D, { ~0, +0, 0, 0xFFFF }, "Hontai Kensa Disc DOL" },
Expand Down
1 change: 1 addition & 0 deletions cube/swiss/source/patcher.c
Expand Up @@ -333,6 +333,7 @@ int install_code(int final)
_sync();
if (top_addr != 0x81800000)
mtspr(DABR, 0x800000E8 | 0b110);
mtspr(EAR, 0x8000000C);
}
return 1;
}
Expand Down

0 comments on commit 5760ae3

Please sign in to comment.