usbloadergx/source/utils/rockout.cpp
Cyan cd3b443f4e * Improved GameCube controller functions (patch by Dynamit)
R+Z=Screenshot, X=Gameinfo window, Y=Covers download
* Added Classic Controller and GameCube Controller support
  in GameInfo window: 
  Right stick=3D Cover movement, X=Flip 3DCover 180°, L/R=Zoom
* Added Wifi6 and wifi10 pictures for GameInfo window.
  (Thanks OriginalHamster)
* Added device priority selection for GameCube listing
  in global Loader settings (SD->USB, or USB->SD)
* Added a "Use global" language setting for Gamecube games.
* Added support for USB devices with modified MBR's signature
  to prevent WiiU's format message.
* Prevent Rockband cursor display on GameCube and WiiWare
  games with "band" in the title (Crach bandicoot, Beach
  Bandits, etc.)
* Added Dol's Video mode patcher in Loader/Game settings,
  for games which couldn't be forced. (MadWorld, MotoGP08,
  Mario Party 8, etc.)
    ♦ Region patch = Patches the dol's known video modes
            to the region selected in "Video mode" setting,
            but keep interlace/progressive references.
    ♦ ON = Patch all dol's known video modes to the one
            selected in "Video mode" setting.
    ♦ ALL = Patch all dol's found video mode patterns 
            (even unknown video modes) to the one selected 
            in "Video mode" setting.

* DML: Updated DM(L) version detection up to v2.10
* DML: Automatically enable PADHook if Screenshot setting
       is enabled
* DML: Fixed a bug where multiple video modes could be set
       at the same time
* DEVO: Added a prompt if trying to launch a game from a 
        non FAT32 partition.
* DEVO: Added Direct Mapping Buttons setting (Devo r200+)
* DEVO: Added support for Language setting

* Language files updated: Chinese, French
2013-08-18 14:30:39 +00:00

37 lines
966 B
C++

#include "GUI/gui.h"
#include "themes/CTheme.h"
#include "usbloader/GameList.h"
#include "settings/GameTitles.h"
#include "menu/menus.h"
void rockout(struct discHdr *header)
{
static bool rockoutSet = false;
HaltGui();
if (!rockoutSet && header &&
header->id[0] != 'W' && header->id[0] != 'G' && // Exclude Wiiware and GameCube games
( strcasestr(GameTitles.GetTitle(header), "guitar")
|| strcasestr(GameTitles.GetTitle(header), "band")
|| strcasestr(GameTitles.GetTitle(header), "rock")))
{
pointer[0]->SetImage("rplayer1_point.png");
pointer[1]->SetImage("rplayer2_point.png");
pointer[2]->SetImage("rplayer3_point.png");
pointer[3]->SetImage("rplayer4_point.png");
rockoutSet = true;
}
else if(rockoutSet)
{
pointer[0]->SetImage("player1_point.png");
pointer[1]->SetImage("player2_point.png");
pointer[2]->SetImage("player3_point.png");
pointer[3]->SetImage("player4_point.png");
rockoutSet = false;
}
ResumeGui();
}