forked from chishm/nitrohax
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new graphic for empty card slot...
* Add new graphics for when slot1 is empty when in stage2 menu. * Stage2 laucnhers I had previously made for 3DS are now included in nitrofs. Code is added to have program automatically copy them to SD:\NTR_Launcher if they aren't present. * Provided no bugs are found during testing this will likely be the 3.0 release.
- Loading branch information
1 parent
247dc9b
commit d9cfe83
Showing
23 changed files
with
327 additions
and
175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ SCFGUNLOCK = 0 | |
ANIMATEDSPLASH = 0 | ||
NTRSPLASH = 0 | ||
HEALTHSAFETYSPLASH = 1 | ||
AUTOBOOT = 1 | ||
DEBUGMODE = 0 | ||
LANGUAGE = -1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
File renamed without changes.
File renamed without changes.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
/* | ||
NitroHax -- Cheat tool for the Nintendo DS | ||
Copyright (C) 2008 Michael "Chishm" Chisholm | ||
This program is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#include <stddef.h> | ||
#include <nds.h> | ||
#include <maxmod9.h> | ||
|
||
#include "soundbank.h" | ||
#include "soundbank_bin.h" | ||
|
||
static mm_sound_effect dsboot; | ||
static mm_sound_effect dsiboot; | ||
static mm_sound_effect sfxBack; | ||
static mm_sound_effect sfxLaunch; | ||
static mm_sound_effect sfxSelect; | ||
static mm_sound_effect sfxWrong; | ||
|
||
static bool audioReady = false; | ||
|
||
void InitAudio() { | ||
mmInitDefaultMem((mm_addr)soundbank_bin); | ||
|
||
mmLoadEffect( SFX_DSBOOT ); | ||
mmLoadEffect( SFX_DSIBOOT ); | ||
mmLoadEffect( SFX_BACK ); | ||
mmLoadEffect( SFX_LAUNCH ); | ||
mmLoadEffect( SFX_SELECT ); | ||
mmLoadEffect( SFX_WRONG ); | ||
|
||
dsiboot = { | ||
{ SFX_DSIBOOT } , // id | ||
(int)(1.0f * (1<<10)), // rate | ||
0, // handle | ||
255, // volume | ||
128, // panning | ||
}; | ||
|
||
dsboot = { | ||
{ SFX_DSBOOT } , // id | ||
(int)(1.0f * (1<<10)), // rate | ||
0, // handle | ||
255, // volume | ||
128, // panning | ||
}; | ||
|
||
sfxBack = { | ||
{ SFX_BACK } , // id | ||
(int)(1.0f * (1<<10)), // rate | ||
0, // handle | ||
255, // volume | ||
128, // panning | ||
}; | ||
|
||
sfxLaunch = { | ||
{ SFX_LAUNCH } , // id | ||
(int)(1.0f * (1<<10)), // rate | ||
0, // handle | ||
255, // volume | ||
128, // panning | ||
}; | ||
|
||
sfxSelect = { | ||
{ SFX_SELECT } , // id | ||
(int)(1.0f * (1<<10)), // rate | ||
0, // handle | ||
255, // volume | ||
128, // panning | ||
}; | ||
|
||
sfxWrong = { | ||
{ SFX_WRONG } , // id | ||
(int)(1.0f * (1<<10)), // rate | ||
0, // handle | ||
255, // volume | ||
128, // panning | ||
}; | ||
audioReady = true; | ||
} | ||
|
||
void PlayBootJingle() { | ||
if (!audioReady)InitAudio(); | ||
mmEffectEx(&dsboot); | ||
} | ||
|
||
void PlayBootJingleDSi() { | ||
if (!audioReady)InitAudio(); | ||
mmEffectEx(&dsiboot); | ||
} | ||
|
||
void PlayLaunchSFX() { | ||
if (!audioReady)InitAudio(); | ||
mmEffectEx(&sfxLaunch); | ||
} | ||
|
||
void PlayWrongSFX() { | ||
if (!audioReady)InitAudio(); | ||
mmEffectEx(&sfxWrong); | ||
} | ||
|
||
void PlaySelectSFX() { | ||
if (!audioReady)InitAudio(); | ||
mmEffectEx(&sfxSelect); | ||
} | ||
|
||
void PlayBackSFX() { | ||
if (!audioReady)InitAudio(); | ||
mmEffectEx(&sfxBack); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#ifndef AUDIO_H | ||
#define AUDIO_H | ||
|
||
void InitAudio(void); | ||
|
||
void PlayBootJingle(void); | ||
void PlayBootJingleDSi(void); | ||
|
||
void PlayLaunchSFX(void); | ||
void PlayWrongSFX(void); | ||
void PlaySelectSFX(void); | ||
void PlayBackSFX(void); | ||
void PlayLaunchSFX(void); | ||
|
||
#endif // AUDIO_H | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.