Added Help file to the about info.

Max length is 4095
wiiflow/help/{language}.txt
defaults to:
wiiflow/help/english.txt

A basic help file is included.  It does not contain all info yet.
This commit is contained in:
yardape8000 2012-05-03 02:47:36 +00:00
parent 40f3a44fef
commit cac7aa5fa5
4 changed files with 75 additions and 1 deletions

View File

@ -291,6 +291,7 @@ void CMenu::init(void)
m_cheatDir = m_cfg.getString("GENERAL", "dir_cheat", sfmt("%s/gct", m_txtCheatDir.c_str())); m_cheatDir = m_cfg.getString("GENERAL", "dir_cheat", sfmt("%s/gct", m_txtCheatDir.c_str()));
m_wipDir = m_cfg.getString("GENERAL", "dir_wip", sfmt("%s/wip", m_txtCheatDir.c_str())); m_wipDir = m_cfg.getString("GENERAL", "dir_wip", sfmt("%s/wip", m_txtCheatDir.c_str()));
m_listCacheDir = m_cfg.getString("GENERAL", "dir_list_cache", sfmt("%s/lists", m_cacheDir.c_str())); m_listCacheDir = m_cfg.getString("GENERAL", "dir_list_cache", sfmt("%s/lists", m_cacheDir.c_str()));
m_helpDir = m_cfg.getString("GENERAL", "dir_help", sfmt("%s/help", m_dataDir.c_str()));
DeviceHandler::SetWatchdog(m_cfg.getUInt("GENERAL", "watchdog_timeout", 10)); DeviceHandler::SetWatchdog(m_cfg.getUInt("GENERAL", "watchdog_timeout", 10));
@ -336,6 +337,7 @@ void CMenu::init(void)
makedir((char *)m_cheatDir.c_str()); makedir((char *)m_cheatDir.c_str());
makedir((char *)m_wipDir.c_str()); makedir((char *)m_wipDir.c_str());
makedir((char *)m_listCacheDir.c_str()); makedir((char *)m_listCacheDir.c_str());
makedir((char *)m_helpDir.c_str());
// INI files // INI files
m_cat.load(sfmt("%s/" CAT_FILENAME, m_settingsDir.c_str()).c_str()); m_cat.load(sfmt("%s/" CAT_FILENAME, m_settingsDir.c_str()).c_str());

View File

@ -105,6 +105,7 @@ private:
std::string m_languagesDir; std::string m_languagesDir;
std::string m_listCacheDir; std::string m_listCacheDir;
std::string m_DMLgameDir; std::string m_DMLgameDir;
std::string m_helpDir;
/* Updates */ /* Updates */
char m_app_update_drive[6]; char m_app_update_drive[6];
const char* m_app_update_url; const char* m_app_update_url;

View File

@ -126,6 +126,21 @@ void CMenu::_textAbout(void)
m_btnMgr.setText(m_aboutBtnSystem, _t("sys4", L"Update")); m_btnMgr.setText(m_aboutBtnSystem, _t("sys4", L"Update"));
m_btnMgr.setText(m_aboutLblTitle, wfmt(_fmt("appname", L"%s (%s-r%s)"), APP_NAME, APP_VERSION, SVN_REV), false); m_btnMgr.setText(m_aboutLblTitle, wfmt(_fmt("appname", L"%s (%s-r%s)"), APP_NAME, APP_VERSION, SVN_REV), false);
char * help =(char *)MEM2_alloc(4096);
FILE * f = fopen(sfmt("%s/%s.txt", m_helpDir.c_str(), m_curLanguage.c_str()).c_str(), "r");
if (f == NULL)
f = fopen(sfmt("%s/english.txt", m_helpDir.c_str()).c_str(), "r");
if (f == NULL)
strcpy(help, "ERROR: No Help File Found");
else
{
fread(help, 4095, 1, f);
help[4095] = 0;
fclose(f);
}
wstringEx help_text(help);
wstringEx developers(wfmt(_fmt("about6", L"\nCurrent Developers:\n%s"), DEVELOPERS)); wstringEx developers(wfmt(_fmt("about6", L"\nCurrent Developers:\n%s"), DEVELOPERS));
wstringEx pDevelopers(wfmt(_fmt("about7", L"Past Developers:\n%s"), PAST_DEVELOPERS)); wstringEx pDevelopers(wfmt(_fmt("about7", L"Past Developers:\n%s"), PAST_DEVELOPERS));
@ -140,7 +155,8 @@ void CMenu::_textAbout(void)
if(translator.size() > 3) thanks.append(translator); if(translator.size() > 3) thanks.append(translator);
m_btnMgr.setText(m_aboutLblInfo, m_btnMgr.setText(m_aboutLblInfo,
wfmt(L"%s\n\n%s\n\n%s\n\n%s\n\n%s\n\n%s\n\n%s", wfmt(L"%s\n\n%s\n\n%s\n\n%s\n\n%s\n\n%s\n\n%s\n\n%s",
help_text.toUTF8().c_str(),
developers.toUTF8().c_str(), developers.toUTF8().c_str(),
pDevelopers.toUTF8().c_str(), pDevelopers.toUTF8().c_str(),
origLoader.toUTF8().c_str(), origLoader.toUTF8().c_str(),
@ -151,6 +167,7 @@ void CMenu::_textAbout(void)
false false
); );
SAFE_FREE(help);
Nand::Instance()->Disable_Emu(); Nand::Instance()->Disable_Emu();
iosinfo_t * iosInfo = cIOSInfo::GetInfo(mainIOS); iosinfo_t * iosInfo = cIOSInfo::GetInfo(mainIOS);
if(iosInfo != NULL) if(iosInfo != NULL)

View File

@ -0,0 +1,54 @@
Controls:
- Main menu (coverflow) :
-- Up / Down = Previous / next game (vertical)
-- Left / Right = Previous / next game (horizontal)
-- Minus / Plus = Fast skip through games
-- A = Select game
-- B+A = Launch game immediately
-- B+Home = Reload Wiiflow
-- Home = Exit to Wii menu
-- 1 / 2 = Previous / next coverflow mode
-- B+Left / B+Right = Change Song
-- B+UP / B+DOWN = Alphabetic search
-- B+Onscreen Arrows = Alphabetic search
-- B+Minus = Switch Partition
-- B+Plus = Sort Games
-- A on Star Icon = Favorites
-- B on Star Icon = Categories
-- A on Gear Icon = Wiiflow settings
-- A on Disc Icon (Game Disc in Drive) = Launch game disc
-- A on USB Icon = Switch to Game menu (icon changes to channels)
-- A on Channels Icon = Switch to Channels menu (icon changes to USB)
-- A on Home Icon = Exit to Wii Menu
- Game :
-- A on box = Show the backside
-- A out of screen = Launch game
-- B = Back to coverflow
-- Up / Down = Previous / next game (vertical)
-- Left / Right = Previous / next game (horizontal)
-- Plus = Game Info
---Right (in Game Info) = Game Description
---Left (in Game Desc) = Game Info
-- A on Star Icon = Toggle Favorite (Yellow = Favorite)
-- A on Hand Icon = Parental Lock (Red = locked)
-- A on Gear Icon = Game Settings
-- A on X Icon = Delete Game
- Settings menus :
-- Minus / Plus = Previous / next page
-- Left / Right = Previous / next page
- Coverflow Adjust settings :
-- B+Minus / B+Plus = Previous / next page
-- B = Faster adjustment (B+A instead of just A to click a button)
-- B+1 = Copy whole coverflow
-- B+2 = Paste coverflow\n\
TIPS for running games that crash:
If the game just locks up with a black screen at launch then check to see if it is a PAL game.
(Press the Plus button on the game screen.) If it is PAL, then set the game's video mode to "PAL 50Hz" in the game's setting screen.
You will need to use a component connection to the TV and have your WII set to 480p video mode.
If a game crashes, then try running the game again. If it continually crashes, then turn the USB Emulation to \"Off\" in the game's setting screen.