mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-05 11:05:06 +01:00
18a26d7e1a
*Rewrote complete main menu function *Moved ext2/3/4 disc cache to mem2 as on FAT/NTFS (added ext2 as custom lib due to that) *Added missing header files from R1011 for ext support *Fixed crash on Numpad when pressing a button *Fixed boot of WiiMC *Changed SVN line ending to LF (Unix style)
36 lines
1.2 KiB
C++
36 lines
1.2 KiB
C++
#include "libwiigui/gui.h"
|
|
#include "themes/CTheme.h"
|
|
#include "usbloader/GameList.h"
|
|
#include "settings/GameTitles.h"
|
|
#include "menu/menus.h"
|
|
|
|
extern GuiImageData * pointer[4];
|
|
|
|
void rockout(int gameSelected, int f)
|
|
{
|
|
HaltGui();
|
|
|
|
if (gameSelected >= 0 && gameSelected < gameList.size() && (strcasestr(GameTitles.GetTitle(gameList[gameSelected]), "guitar")
|
|
|| strcasestr(GameTitles.GetTitle(gameList[gameSelected]), "band") || strcasestr(GameTitles.GetTitle(gameList[gameSelected]),
|
|
"rock")))
|
|
{
|
|
for (int i = 0; i < 4; i++)
|
|
delete pointer[i];
|
|
pointer[0] = Resources::GetImageData("rplayer1_point.png");
|
|
pointer[1] = Resources::GetImageData("rplayer2_point.png");
|
|
pointer[2] = Resources::GetImageData("rplayer3_point.png");
|
|
pointer[3] = Resources::GetImageData("rplayer4_point.png");
|
|
}
|
|
else
|
|
{
|
|
|
|
for (int i = 0; i < 4; i++)
|
|
delete pointer[i];
|
|
pointer[0] = Resources::GetImageData("player1_point.png");
|
|
pointer[1] = Resources::GetImageData("player2_point.png");
|
|
pointer[2] = Resources::GetImageData("player3_point.png");
|
|
pointer[3] = Resources::GetImageData("player4_point.png");
|
|
}
|
|
ResumeGui();
|
|
}
|