mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-25 20:56:53 +01:00
e8f5ab07bd
* Fixed bug in http.c (where realloc *might* choose another address, thanks Dr. Clipper) * Added support to /wbfs/Game Title [GAMEID].wbfs files (thanks oggzee) * Fixed bug in cfg_cleanup when switching partitions * Added BGM class again (for playing background music, requested by dimok) * Added settings for background music again * Fixed bug in MEM2 class (returning an invalid handle when no memory could be allocated, thanks to dimok) * Updated DIP module to OpenDIP (report bugs with this one if you've found them, but report them here: http://github.com/spacemanspiff/odip-plugin) * Added initial code for cios 222 rev5 (THIS DOES NOT WORK YET! DON'T FILE BUGS ON THIS ONE!) * Added fatffs module by Hermes and Waninkoko (THIS DOES NOT WORK YET! DON'T FILE BUGS ON THIS ONE!) * Fixed bug in Settings, which resulted in a crash when the partition was changed. * Added caching for gamelist entries, so switching between different screens/sort options/display modes should be faster * Changed defines in ehc_module, in order to prevent clashes with new defines in rev5
46 lines
996 B
C++
46 lines
996 B
C++
/****************************************************************************
|
|
* SettingsPrompts
|
|
* USB Loader GX 2009
|
|
*
|
|
* Backgroundmusic
|
|
***************************************************************************/
|
|
|
|
#ifndef _BGM_H_
|
|
#define _BGM_H_
|
|
|
|
#include "libwiigui/gui.h"
|
|
|
|
enum
|
|
{
|
|
ONCE = 0,
|
|
LOOP,
|
|
RANDOM_BGM,
|
|
DIR_LOOP
|
|
};
|
|
|
|
class GuiBGM : public GuiSound
|
|
{
|
|
public:
|
|
GuiBGM(const u8 *s, int l, int v);
|
|
~GuiBGM();
|
|
bool Load(const char *path);
|
|
bool LoadStandard();
|
|
bool ParsePath(const char * folderpath);
|
|
bool PlayNext();
|
|
bool PlayPrevious();
|
|
bool PlayRandom();
|
|
void SetLoop(bool l);
|
|
void SetLoop(int l);
|
|
void UpdateState();
|
|
protected:
|
|
void AddEntrie(const char * filename);
|
|
void ClearList();
|
|
|
|
int currentPlaying;
|
|
int loopMode;
|
|
char * currentPath;
|
|
std::vector<char *> PlayList;
|
|
};
|
|
|
|
#endif
|