Add *Savvy Manager* menu music

This commit is contained in:
RocketRobz 2021-07-06 17:00:39 -06:00
parent cde8a630ed
commit c58cdfd9b9
8 changed files with 30 additions and 0 deletions

Binary file not shown.

Binary file not shown.

View File

@ -89,6 +89,10 @@ void loadMusic(int num) {
startName = "romfs:/music/jimPower3D_gen/mutantsForest_start.wav";
loopName = "romfs:/music/jimPower3D_gen/mutantsForest_loop.wav";
break;
case 19: // Savvy Manager - Menu
startName = "romfs:/music/savvyManager/menu_start.wav";
loopName = "romfs:/music/savvyManager/menu_loop.wav";
break;
}
if (access(startName, F_OK) == 0) {

View File

@ -0,0 +1,9 @@
const char* savvyMgrBgmNames[] = {
"Menu",
"",
"",
};
int savvyMgrBgmNums[] = {
19,
};

View File

@ -105,6 +105,12 @@ void loadMusic(int num) {
sampleRate = 48000;
stereo = false;
break;
case 19: // Savvy Manager - Menu
startName = "nitro:/music/savvyManager/menu_start.raw";
loopName = "nitro:/music/savvyManager/menu_loop.raw";
sampleRate = 48000;
stereo = false;
break;
}
snd().loadStream(startName, loopName, sampleRate, stereo, true);
}

Binary file not shown.

Binary file not shown.

View File

@ -34,6 +34,7 @@
#include "marioGolfAdvanceTourBgmNames.h"
#include "mmBattleAndChaseBgmNames.h"
#include "pkmnStadiumBgmNames.h"
#include "savvyMgrBgmNames.h"
#include "sonicManiaBgmNames.h"
#include "ss1BgmNames.h"
#include "tetrisPartyBgmNames.h"
@ -121,6 +122,7 @@ static u8 bgmPageOrder[] = {
2, // Mario Golf: Advance Tour
1, // MegaMan: Battle and Chase
0, // Pokemon Stadium
7, // Savvy Manager
4, // Sonic Mania
5, // Style Savvy
3, // Tetris Party
@ -171,6 +173,9 @@ void PhotoStudio::getMaxChars() {
case 6:
import_totalCharacters = 0;
break;
case 7:
import_totalCharacters = 0;
break;
}
} else if (subScreenMode == 1) {
// Locations
@ -720,6 +725,8 @@ const char* PhotoStudio::bgmGameTitle(void) const {
return ss1Title();
case 6:
return "Jim Power";
case 7:
return "Savvy Manager";
}
return "???";
}
@ -804,6 +811,8 @@ const char* PhotoStudio::bgmName(int i) const {
return ss1BgmNames[i];
case 6:
return jimPowerBgmNames[i];
case 7:
return savvyMgrBgmNames[i];
}
return "???";
}
@ -844,6 +853,8 @@ int PhotoStudio::getBgmNum(void) const {
return ss1BgmNums[bgmList_cursorPosition];
case 6:
return jimPowerBgmNums[bgmList_cursorPosition];
case 7:
return savvyMgrBgmNums[bgmList_cursorPosition];
}
return 0;
}