mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-26 05:04:16 +01:00
0f4eb6b209
*added saving of game browser position (on all modes) *several cleanups and small fixes *added a "Block Category Menu" setting *fixed bug with parental block and game settings (thanks NJ7 for finding it) *fixed "All" not being translated in category menu
41 lines
879 B
C++
41 lines
879 B
C++
/****************************************************************************
|
|
* SettingsPrompts
|
|
* USB Loader GX 2009
|
|
*
|
|
* Backgroundmusic
|
|
***************************************************************************/
|
|
|
|
#ifndef _BGM_H_
|
|
#define _BGM_H_
|
|
|
|
#include <vector>
|
|
#include "gui_sound.h"
|
|
|
|
enum
|
|
{
|
|
ONCE = 0, LOOP, RANDOM_BGM, DIR_LOOP
|
|
};
|
|
|
|
class GuiBGM: public GuiSound
|
|
{
|
|
public:
|
|
GuiBGM(const u8 *s, int l, int v);
|
|
virtual ~GuiBGM();
|
|
bool Load(const char *path);
|
|
bool LoadStandard();
|
|
bool ParsePath(const char * folderpath);
|
|
bool PlayNext();
|
|
bool PlayPrevious();
|
|
bool PlayRandom();
|
|
void UpdateState();
|
|
protected:
|
|
void AddEntrie(const char * filename);
|
|
void ClearList();
|
|
|
|
int currentPlaying;
|
|
char * currentPath;
|
|
std::vector<char *> PlayList;
|
|
};
|
|
|
|
#endif
|