2012-01-21 21:57:41 +01:00
|
|
|
|
|
|
|
#include "menu.hpp"
|
2012-08-05 15:48:15 +02:00
|
|
|
#include "loader/cios.h"
|
2012-11-01 17:39:42 +01:00
|
|
|
#include "const_str.hpp"
|
2012-01-21 21:57:41 +01:00
|
|
|
|
2012-06-21 15:08:58 +02:00
|
|
|
extern const u8 english_txt[];
|
2012-11-01 17:39:42 +01:00
|
|
|
static const wstringEx ENGLISH_TXT_W((const char*)english_txt);
|
2012-06-21 19:37:21 +02:00
|
|
|
|
2012-09-13 16:54:17 +02:00
|
|
|
s16 m_aboutLblTitle;
|
|
|
|
s16 m_aboutLblInfo;
|
|
|
|
s16 m_aboutLblUser[4];
|
|
|
|
s16 m_aboutLblIOS;
|
-updating wiiflow lite to beta 4.3.0
-fixed using categories to hide GC disc 2's. Apparently this has never really worked right for some time or ever.
-fixed deleting the cached cover texture file for plugin games. Delete cover for plugins only deletes the cached texture file (.wfc)
-fixed favorites and adultonly (parental lock) for plugin games. Apparently I may have broke this a few revisions back.
-favorites and adultonly for plugin games now have their own domains in gamecfg1- [FAVORITES_PLUGINS] and [ADULTONLY_PLUGINS]. just makes it more organized.
-only wii, GC, channels are added to [PLAYCOUNT] and [LAST_PLAYED] in gamecfg1.
-now loading gamecfg1 at startup and leaving it loaded till exit. no more loading it and unloading all the time.
-fixed scrolling for game_info synopsis, credits, and help text.
-made source menu buttons wider for wiiflow default. old 80x80, now 100x80. looks better.
-display music info now defaults to off
-screensaver_disabled now defaults to yes
-show GC view button is now on by default no matter what. the only way it is disabled is if you edit wiiflow.ini manually. this is how all the view buttons work.
-removed hiding homebrew button but if wiiflow locked it won't work or in sourceflow it won't show.
-dump_list is now under [GENERAL] instead of each view. Also only works for Wii, GC, and channels.
-sorting only works for Wii, GC, and Channels now. disabled for sourceflow, plugins, homebrew, and combined view.
-now if no games are found a message is shown with the current path so you can see where wiiflow is looking. (except for plugins)
-removed auto create emuNAND for emuNAND view if gamelist is empty. just go to settings>NAND settings if you want to extract or disable it.
-now when no games are found all buttons at bottom are still accessible allowing you to change the view or go to settings and change current partition or path and even extract your NAND to create a EmuNAND. Or go to Home Menu and Install a Wii or GC game.
-removed auto extract NAND to emuNAND when launching a Wii game with EmuNAND save. Now a message is diplayed saying 'emuNAND for saves not found - using real NAND'.
-made the speed at which cover titles fade in/out almost instantly.
-removed update button from Home Menu. online update code is still there but not used and probably won't be used any more as there just isn't a need for it now.
-removed ftp button from Home Menu and all code for the FTP server. I just use WiiXplorer's FTP server. it seems to work better for me.
-disabled keep USB Alive thread for now. i think there's a possibilty it might be the cause of my SD/USB files getting corrupted.
-removed Btn B and - combo to switch partitions. didn't seem useful anymore.
-redid nand emulation settings menu. looks like this now:
pg1
Select EmuNAND
EmuNAND Enulation
Select SaveNAND
SaveNAND Emulation
pg2
Extract Saves All
Missing
Extract NAND
Select Saves Partition
-no longer blocking Select Plugin menu and View icons when using source menu combined view
-now Select Plugins Menu is like switching to plugin view but you get to choose the plugins first
-now [PLUGIN] partition= is the default partition for all plugins. to change individual plugins add 'romPartition=x' to the plugin ini. x is the partition number 0 thru 8 with SD being 0. this is how my usbloadergx plugin mod works.
2016-10-05 01:44:13 +02:00
|
|
|
|
2012-08-14 17:42:34 +02:00
|
|
|
bool showHelp;
|
2012-06-21 15:08:58 +02:00
|
|
|
|
2012-08-14 17:42:34 +02:00
|
|
|
void CMenu::_about(bool help)
|
2012-01-21 21:57:41 +01:00
|
|
|
{
|
2012-08-14 17:42:34 +02:00
|
|
|
showHelp = help;
|
-updating wiiflow lite to beta 4.3.0
-fixed using categories to hide GC disc 2's. Apparently this has never really worked right for some time or ever.
-fixed deleting the cached cover texture file for plugin games. Delete cover for plugins only deletes the cached texture file (.wfc)
-fixed favorites and adultonly (parental lock) for plugin games. Apparently I may have broke this a few revisions back.
-favorites and adultonly for plugin games now have their own domains in gamecfg1- [FAVORITES_PLUGINS] and [ADULTONLY_PLUGINS]. just makes it more organized.
-only wii, GC, channels are added to [PLAYCOUNT] and [LAST_PLAYED] in gamecfg1.
-now loading gamecfg1 at startup and leaving it loaded till exit. no more loading it and unloading all the time.
-fixed scrolling for game_info synopsis, credits, and help text.
-made source menu buttons wider for wiiflow default. old 80x80, now 100x80. looks better.
-display music info now defaults to off
-screensaver_disabled now defaults to yes
-show GC view button is now on by default no matter what. the only way it is disabled is if you edit wiiflow.ini manually. this is how all the view buttons work.
-removed hiding homebrew button but if wiiflow locked it won't work or in sourceflow it won't show.
-dump_list is now under [GENERAL] instead of each view. Also only works for Wii, GC, and channels.
-sorting only works for Wii, GC, and Channels now. disabled for sourceflow, plugins, homebrew, and combined view.
-now if no games are found a message is shown with the current path so you can see where wiiflow is looking. (except for plugins)
-removed auto create emuNAND for emuNAND view if gamelist is empty. just go to settings>NAND settings if you want to extract or disable it.
-now when no games are found all buttons at bottom are still accessible allowing you to change the view or go to settings and change current partition or path and even extract your NAND to create a EmuNAND. Or go to Home Menu and Install a Wii or GC game.
-removed auto extract NAND to emuNAND when launching a Wii game with EmuNAND save. Now a message is diplayed saying 'emuNAND for saves not found - using real NAND'.
-made the speed at which cover titles fade in/out almost instantly.
-removed update button from Home Menu. online update code is still there but not used and probably won't be used any more as there just isn't a need for it now.
-removed ftp button from Home Menu and all code for the FTP server. I just use WiiXplorer's FTP server. it seems to work better for me.
-disabled keep USB Alive thread for now. i think there's a possibilty it might be the cause of my SD/USB files getting corrupted.
-removed Btn B and - combo to switch partitions. didn't seem useful anymore.
-redid nand emulation settings menu. looks like this now:
pg1
Select EmuNAND
EmuNAND Enulation
Select SaveNAND
SaveNAND Emulation
pg2
Extract Saves All
Missing
Extract NAND
Select Saves Partition
-no longer blocking Select Plugin menu and View icons when using source menu combined view
-now Select Plugins Menu is like switching to plugin view but you get to choose the plugins first
-now [PLUGIN] partition= is the default partition for all plugins. to change individual plugins add 'romPartition=x' to the plugin ini. x is the partition number 0 thru 8 with SD being 0. this is how my usbloadergx plugin mod works.
2016-10-05 01:44:13 +02:00
|
|
|
int pixels_to_skip = 10;
|
2012-01-21 21:57:41 +01:00
|
|
|
int amount_of_skips = 0;
|
-updating wiiflow lite to beta 4.3.0
-fixed using categories to hide GC disc 2's. Apparently this has never really worked right for some time or ever.
-fixed deleting the cached cover texture file for plugin games. Delete cover for plugins only deletes the cached texture file (.wfc)
-fixed favorites and adultonly (parental lock) for plugin games. Apparently I may have broke this a few revisions back.
-favorites and adultonly for plugin games now have their own domains in gamecfg1- [FAVORITES_PLUGINS] and [ADULTONLY_PLUGINS]. just makes it more organized.
-only wii, GC, channels are added to [PLAYCOUNT] and [LAST_PLAYED] in gamecfg1.
-now loading gamecfg1 at startup and leaving it loaded till exit. no more loading it and unloading all the time.
-fixed scrolling for game_info synopsis, credits, and help text.
-made source menu buttons wider for wiiflow default. old 80x80, now 100x80. looks better.
-display music info now defaults to off
-screensaver_disabled now defaults to yes
-show GC view button is now on by default no matter what. the only way it is disabled is if you edit wiiflow.ini manually. this is how all the view buttons work.
-removed hiding homebrew button but if wiiflow locked it won't work or in sourceflow it won't show.
-dump_list is now under [GENERAL] instead of each view. Also only works for Wii, GC, and channels.
-sorting only works for Wii, GC, and Channels now. disabled for sourceflow, plugins, homebrew, and combined view.
-now if no games are found a message is shown with the current path so you can see where wiiflow is looking. (except for plugins)
-removed auto create emuNAND for emuNAND view if gamelist is empty. just go to settings>NAND settings if you want to extract or disable it.
-now when no games are found all buttons at bottom are still accessible allowing you to change the view or go to settings and change current partition or path and even extract your NAND to create a EmuNAND. Or go to Home Menu and Install a Wii or GC game.
-removed auto extract NAND to emuNAND when launching a Wii game with EmuNAND save. Now a message is diplayed saying 'emuNAND for saves not found - using real NAND'.
-made the speed at which cover titles fade in/out almost instantly.
-removed update button from Home Menu. online update code is still there but not used and probably won't be used any more as there just isn't a need for it now.
-removed ftp button from Home Menu and all code for the FTP server. I just use WiiXplorer's FTP server. it seems to work better for me.
-disabled keep USB Alive thread for now. i think there's a possibilty it might be the cause of my SD/USB files getting corrupted.
-removed Btn B and - combo to switch partitions. didn't seem useful anymore.
-redid nand emulation settings menu. looks like this now:
pg1
Select EmuNAND
EmuNAND Enulation
Select SaveNAND
SaveNAND Emulation
pg2
Extract Saves All
Missing
Extract NAND
Select Saves Partition
-no longer blocking Select Plugin menu and View icons when using source menu combined view
-now Select Plugins Menu is like switching to plugin view but you get to choose the plugins first
-now [PLUGIN] partition= is the default partition for all plugins. to change individual plugins add 'romPartition=x' to the plugin ini. x is the partition number 0 thru 8 with SD being 0. this is how my usbloadergx plugin mod works.
2016-10-05 01:44:13 +02:00
|
|
|
int xtra_skips = 0;
|
2012-01-21 21:57:41 +01:00
|
|
|
|
2016-12-14 19:47:13 +01:00
|
|
|
int thanks_h = m_theme.getInt("ABOUT/INFO", "height", 300);
|
|
|
|
int thanks_th = 0;
|
2012-01-21 21:57:41 +01:00
|
|
|
|
|
|
|
SetupInput();
|
2016-12-14 19:47:13 +01:00
|
|
|
_textAbout();
|
|
|
|
m_btnMgr.reset(m_aboutLblInfo, true);
|
2012-01-21 21:57:41 +01:00
|
|
|
_showAbout();
|
2016-12-14 19:47:13 +01:00
|
|
|
m_btnMgr.getTotalHeight(m_aboutLblInfo, thanks_th);
|
|
|
|
m_btnMgr.moveBy(m_aboutLblInfo, 0, -1);
|
2012-01-21 21:57:41 +01:00
|
|
|
|
2012-09-09 20:35:15 +02:00
|
|
|
while(!m_exit)
|
2012-01-21 21:57:41 +01:00
|
|
|
{
|
|
|
|
_mainLoopCommon();
|
2016-12-14 19:47:13 +01:00
|
|
|
if((BTN_DOWN_PRESSED || BTN_DOWN_HELD) && thanks_th > thanks_h)
|
2012-01-21 21:57:41 +01:00
|
|
|
{
|
-updating wiiflow lite to beta 4.3.0
-fixed using categories to hide GC disc 2's. Apparently this has never really worked right for some time or ever.
-fixed deleting the cached cover texture file for plugin games. Delete cover for plugins only deletes the cached texture file (.wfc)
-fixed favorites and adultonly (parental lock) for plugin games. Apparently I may have broke this a few revisions back.
-favorites and adultonly for plugin games now have their own domains in gamecfg1- [FAVORITES_PLUGINS] and [ADULTONLY_PLUGINS]. just makes it more organized.
-only wii, GC, channels are added to [PLAYCOUNT] and [LAST_PLAYED] in gamecfg1.
-now loading gamecfg1 at startup and leaving it loaded till exit. no more loading it and unloading all the time.
-fixed scrolling for game_info synopsis, credits, and help text.
-made source menu buttons wider for wiiflow default. old 80x80, now 100x80. looks better.
-display music info now defaults to off
-screensaver_disabled now defaults to yes
-show GC view button is now on by default no matter what. the only way it is disabled is if you edit wiiflow.ini manually. this is how all the view buttons work.
-removed hiding homebrew button but if wiiflow locked it won't work or in sourceflow it won't show.
-dump_list is now under [GENERAL] instead of each view. Also only works for Wii, GC, and channels.
-sorting only works for Wii, GC, and Channels now. disabled for sourceflow, plugins, homebrew, and combined view.
-now if no games are found a message is shown with the current path so you can see where wiiflow is looking. (except for plugins)
-removed auto create emuNAND for emuNAND view if gamelist is empty. just go to settings>NAND settings if you want to extract or disable it.
-now when no games are found all buttons at bottom are still accessible allowing you to change the view or go to settings and change current partition or path and even extract your NAND to create a EmuNAND. Or go to Home Menu and Install a Wii or GC game.
-removed auto extract NAND to emuNAND when launching a Wii game with EmuNAND save. Now a message is diplayed saying 'emuNAND for saves not found - using real NAND'.
-made the speed at which cover titles fade in/out almost instantly.
-removed update button from Home Menu. online update code is still there but not used and probably won't be used any more as there just isn't a need for it now.
-removed ftp button from Home Menu and all code for the FTP server. I just use WiiXplorer's FTP server. it seems to work better for me.
-disabled keep USB Alive thread for now. i think there's a possibilty it might be the cause of my SD/USB files getting corrupted.
-removed Btn B and - combo to switch partitions. didn't seem useful anymore.
-redid nand emulation settings menu. looks like this now:
pg1
Select EmuNAND
EmuNAND Enulation
Select SaveNAND
SaveNAND Emulation
pg2
Extract Saves All
Missing
Extract NAND
Select Saves Partition
-no longer blocking Select Plugin menu and View icons when using source menu combined view
-now Select Plugins Menu is like switching to plugin view but you get to choose the plugins first
-now [PLUGIN] partition= is the default partition for all plugins. to change individual plugins add 'romPartition=x' to the plugin ini. x is the partition number 0 thru 8 with SD being 0. this is how my usbloadergx plugin mod works.
2016-10-05 01:44:13 +02:00
|
|
|
if((thanks_th - amount_of_skips * pixels_to_skip) >= thanks_h)
|
2012-01-21 21:57:41 +01:00
|
|
|
{
|
|
|
|
m_btnMgr.moveBy(m_aboutLblInfo, 0, -pixels_to_skip);
|
|
|
|
amount_of_skips++;
|
|
|
|
}
|
-updating wiiflow lite to beta 4.3.0
-fixed using categories to hide GC disc 2's. Apparently this has never really worked right for some time or ever.
-fixed deleting the cached cover texture file for plugin games. Delete cover for plugins only deletes the cached texture file (.wfc)
-fixed favorites and adultonly (parental lock) for plugin games. Apparently I may have broke this a few revisions back.
-favorites and adultonly for plugin games now have their own domains in gamecfg1- [FAVORITES_PLUGINS] and [ADULTONLY_PLUGINS]. just makes it more organized.
-only wii, GC, channels are added to [PLAYCOUNT] and [LAST_PLAYED] in gamecfg1.
-now loading gamecfg1 at startup and leaving it loaded till exit. no more loading it and unloading all the time.
-fixed scrolling for game_info synopsis, credits, and help text.
-made source menu buttons wider for wiiflow default. old 80x80, now 100x80. looks better.
-display music info now defaults to off
-screensaver_disabled now defaults to yes
-show GC view button is now on by default no matter what. the only way it is disabled is if you edit wiiflow.ini manually. this is how all the view buttons work.
-removed hiding homebrew button but if wiiflow locked it won't work or in sourceflow it won't show.
-dump_list is now under [GENERAL] instead of each view. Also only works for Wii, GC, and channels.
-sorting only works for Wii, GC, and Channels now. disabled for sourceflow, plugins, homebrew, and combined view.
-now if no games are found a message is shown with the current path so you can see where wiiflow is looking. (except for plugins)
-removed auto create emuNAND for emuNAND view if gamelist is empty. just go to settings>NAND settings if you want to extract or disable it.
-now when no games are found all buttons at bottom are still accessible allowing you to change the view or go to settings and change current partition or path and even extract your NAND to create a EmuNAND. Or go to Home Menu and Install a Wii or GC game.
-removed auto extract NAND to emuNAND when launching a Wii game with EmuNAND save. Now a message is diplayed saying 'emuNAND for saves not found - using real NAND'.
-made the speed at which cover titles fade in/out almost instantly.
-removed update button from Home Menu. online update code is still there but not used and probably won't be used any more as there just isn't a need for it now.
-removed ftp button from Home Menu and all code for the FTP server. I just use WiiXplorer's FTP server. it seems to work better for me.
-disabled keep USB Alive thread for now. i think there's a possibilty it might be the cause of my SD/USB files getting corrupted.
-removed Btn B and - combo to switch partitions. didn't seem useful anymore.
-redid nand emulation settings menu. looks like this now:
pg1
Select EmuNAND
EmuNAND Enulation
Select SaveNAND
SaveNAND Emulation
pg2
Extract Saves All
Missing
Extract NAND
Select Saves Partition
-no longer blocking Select Plugin menu and View icons when using source menu combined view
-now Select Plugins Menu is like switching to plugin view but you get to choose the plugins first
-now [PLUGIN] partition= is the default partition for all plugins. to change individual plugins add 'romPartition=x' to the plugin ini. x is the partition number 0 thru 8 with SD being 0. this is how my usbloadergx plugin mod works.
2016-10-05 01:44:13 +02:00
|
|
|
else if((thanks_th - amount_of_skips * pixels_to_skip) < thanks_h && xtra_skips == 0)
|
|
|
|
{
|
|
|
|
xtra_skips = pixels_to_skip - ((thanks_th - amount_of_skips * pixels_to_skip) - thanks_h);
|
|
|
|
m_btnMgr.moveBy(m_aboutLblInfo, 0, -xtra_skips);
|
|
|
|
}
|
2012-01-21 21:57:41 +01:00
|
|
|
}
|
2016-12-01 01:05:39 +01:00
|
|
|
else if((BTN_UP_PRESSED || BTN_UP_HELD))
|
2012-01-21 21:57:41 +01:00
|
|
|
{
|
-updating wiiflow lite to beta 4.3.0
-fixed using categories to hide GC disc 2's. Apparently this has never really worked right for some time or ever.
-fixed deleting the cached cover texture file for plugin games. Delete cover for plugins only deletes the cached texture file (.wfc)
-fixed favorites and adultonly (parental lock) for plugin games. Apparently I may have broke this a few revisions back.
-favorites and adultonly for plugin games now have their own domains in gamecfg1- [FAVORITES_PLUGINS] and [ADULTONLY_PLUGINS]. just makes it more organized.
-only wii, GC, channels are added to [PLAYCOUNT] and [LAST_PLAYED] in gamecfg1.
-now loading gamecfg1 at startup and leaving it loaded till exit. no more loading it and unloading all the time.
-fixed scrolling for game_info synopsis, credits, and help text.
-made source menu buttons wider for wiiflow default. old 80x80, now 100x80. looks better.
-display music info now defaults to off
-screensaver_disabled now defaults to yes
-show GC view button is now on by default no matter what. the only way it is disabled is if you edit wiiflow.ini manually. this is how all the view buttons work.
-removed hiding homebrew button but if wiiflow locked it won't work or in sourceflow it won't show.
-dump_list is now under [GENERAL] instead of each view. Also only works for Wii, GC, and channels.
-sorting only works for Wii, GC, and Channels now. disabled for sourceflow, plugins, homebrew, and combined view.
-now if no games are found a message is shown with the current path so you can see where wiiflow is looking. (except for plugins)
-removed auto create emuNAND for emuNAND view if gamelist is empty. just go to settings>NAND settings if you want to extract or disable it.
-now when no games are found all buttons at bottom are still accessible allowing you to change the view or go to settings and change current partition or path and even extract your NAND to create a EmuNAND. Or go to Home Menu and Install a Wii or GC game.
-removed auto extract NAND to emuNAND when launching a Wii game with EmuNAND save. Now a message is diplayed saying 'emuNAND for saves not found - using real NAND'.
-made the speed at which cover titles fade in/out almost instantly.
-removed update button from Home Menu. online update code is still there but not used and probably won't be used any more as there just isn't a need for it now.
-removed ftp button from Home Menu and all code for the FTP server. I just use WiiXplorer's FTP server. it seems to work better for me.
-disabled keep USB Alive thread for now. i think there's a possibilty it might be the cause of my SD/USB files getting corrupted.
-removed Btn B and - combo to switch partitions. didn't seem useful anymore.
-redid nand emulation settings menu. looks like this now:
pg1
Select EmuNAND
EmuNAND Enulation
Select SaveNAND
SaveNAND Emulation
pg2
Extract Saves All
Missing
Extract NAND
Select Saves Partition
-no longer blocking Select Plugin menu and View icons when using source menu combined view
-now Select Plugins Menu is like switching to plugin view but you get to choose the plugins first
-now [PLUGIN] partition= is the default partition for all plugins. to change individual plugins add 'romPartition=x' to the plugin ini. x is the partition number 0 thru 8 with SD being 0. this is how my usbloadergx plugin mod works.
2016-10-05 01:44:13 +02:00
|
|
|
if(xtra_skips > 0)
|
|
|
|
{
|
|
|
|
m_btnMgr.moveBy(m_aboutLblInfo, 0, xtra_skips);
|
|
|
|
xtra_skips = 0;
|
|
|
|
}
|
|
|
|
else if (amount_of_skips > 0)
|
2012-01-21 21:57:41 +01:00
|
|
|
{
|
|
|
|
m_btnMgr.moveBy(m_aboutLblInfo, 0, pixels_to_skip);
|
|
|
|
amount_of_skips--;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (BTN_HOME_PRESSED || BTN_B_PRESSED)
|
|
|
|
break;
|
2012-05-13 17:13:33 +02:00
|
|
|
}
|
2012-01-21 21:57:41 +01:00
|
|
|
_hideAbout(false);
|
|
|
|
}
|
|
|
|
|
|
|
|
void CMenu::_hideAbout(bool instant)
|
|
|
|
{
|
|
|
|
m_btnMgr.hide(m_aboutLblTitle, instant);
|
|
|
|
m_btnMgr.hide(m_aboutLblIOS, instant);
|
|
|
|
m_btnMgr.hide(m_aboutLblInfo, instant);
|
2012-07-05 15:15:23 +02:00
|
|
|
for (u8 i = 0; i < ARRAY_SIZE(m_aboutLblUser); ++i)
|
2012-05-13 17:13:33 +02:00
|
|
|
{
|
2012-09-13 16:54:17 +02:00
|
|
|
if(m_aboutLblUser[i] != -1)
|
2012-01-21 21:57:41 +01:00
|
|
|
m_btnMgr.hide(m_aboutLblUser[i], instant);
|
2012-05-13 17:13:33 +02:00
|
|
|
}
|
2012-01-21 21:57:41 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void CMenu::_showAbout(void)
|
|
|
|
{
|
|
|
|
_setBg(m_aboutBg, m_aboutBg);
|
|
|
|
m_btnMgr.show(m_aboutLblTitle);
|
2016-06-06 15:52:57 +02:00
|
|
|
if(m_txt_view == false && !showHelp)
|
2013-08-05 22:58:26 +02:00
|
|
|
m_btnMgr.show(m_aboutLblIOS);
|
2012-06-27 14:31:48 +02:00
|
|
|
m_btnMgr.show(m_aboutLblInfo,false);
|
2012-07-05 15:15:23 +02:00
|
|
|
for(u8 i = 0; i < ARRAY_SIZE(m_aboutLblUser); ++i)
|
2012-09-13 16:54:17 +02:00
|
|
|
if(m_aboutLblUser[i] != -1)
|
2012-01-21 21:57:41 +01:00
|
|
|
m_btnMgr.show(m_aboutLblUser[i]);
|
|
|
|
}
|
|
|
|
|
2012-11-03 20:16:03 +01:00
|
|
|
void CMenu::_initAboutMenu()
|
2012-01-21 21:57:41 +01:00
|
|
|
{
|
2013-11-20 20:36:10 +01:00
|
|
|
_addUserLabels(m_aboutLblUser, 0, 2, "ABOUT");
|
2012-11-03 20:16:03 +01:00
|
|
|
m_aboutBg = _texture("ABOUT/BG", "texture", theme.bg, false);
|
2013-11-04 20:46:23 +01:00
|
|
|
m_aboutLblInfo = _addText("ABOUT/INFO", theme.txtFont, L"", 40, 100, 560, 300, theme.txtFontColor, FTGX_JUSTIFY_LEFT | FTGX_ALIGN_TOP);
|
2013-11-20 20:36:10 +01:00
|
|
|
_addUserLabels(m_aboutLblUser, 2, 2, "ABOUT");
|
|
|
|
m_aboutLblTitle = _addTitle("ABOUT/TITLE", theme.titleFont, L"", 0, 10, 640, 60, theme.titleFontColor, FTGX_JUSTIFY_CENTER | FTGX_ALIGN_MIDDLE);
|
2013-11-04 20:46:23 +01:00
|
|
|
m_aboutLblIOS = _addLabel("ABOUT/IOS", theme.lblFont, L"", 240, 400, 360, 56, theme.lblFontColor, FTGX_JUSTIFY_RIGHT | FTGX_ALIGN_MIDDLE);
|
2012-05-13 17:13:33 +02:00
|
|
|
|
2012-07-29 00:38:46 +02:00
|
|
|
_setHideAnim(m_aboutLblTitle, "ABOUT/TITLE", 0, 0, -2.f, 0.f);
|
2012-02-07 01:24:45 +01:00
|
|
|
_setHideAnim(m_aboutLblInfo, "ABOUT/INFO", 0, 100, 0.f, 0.f);
|
2012-07-29 00:38:46 +02:00
|
|
|
_setHideAnim(m_aboutLblIOS, "ABOUT/IOS", 0, 0, -2.f, 0.f);
|
2012-05-13 17:13:33 +02:00
|
|
|
|
2012-01-21 21:57:41 +01:00
|
|
|
_hideAbout(true);
|
|
|
|
}
|
|
|
|
|
|
|
|
void CMenu::_textAbout(void)
|
|
|
|
{
|
2016-06-06 15:52:57 +02:00
|
|
|
if(m_txt_view)// used to show a txt file
|
2013-08-05 22:58:26 +02:00
|
|
|
{
|
|
|
|
wstringEx txt_file_name;
|
|
|
|
txt_file_name.fromUTF8(strrchr(m_txt_path, '/') + 1);
|
|
|
|
m_btnMgr.setText(m_aboutLblTitle, txt_file_name);
|
|
|
|
wstringEx txt_file_content;
|
|
|
|
u32 txt_size = 0;
|
|
|
|
char *txt_mem = (char*)fsop_ReadFile(m_txt_path, &txt_size);
|
|
|
|
if(txt_mem != NULL)
|
|
|
|
{
|
2013-09-08 20:29:54 +02:00
|
|
|
if(*(txt_mem+txt_size) != '\0')
|
|
|
|
*(txt_mem+txt_size) = '\0';
|
2013-08-05 22:58:26 +02:00
|
|
|
txt_file_content.fromUTF8(txt_mem);
|
|
|
|
m_btnMgr.setText(m_aboutLblInfo, txt_file_content);
|
|
|
|
free(txt_mem);
|
|
|
|
}
|
|
|
|
txt_mem = NULL;
|
2016-06-06 15:52:57 +02:00
|
|
|
return;
|
2013-08-05 22:58:26 +02:00
|
|
|
}
|
2016-06-06 15:52:57 +02:00
|
|
|
if(showHelp) // show help guide
|
2012-05-03 04:47:36 +02:00
|
|
|
{
|
2012-08-14 17:42:34 +02:00
|
|
|
m_btnMgr.setText(m_aboutLblTitle, _t("about10", L"Help Guide"));
|
|
|
|
wstringEx help_text;
|
2013-09-08 20:29:54 +02:00
|
|
|
u32 txt_size = 0;
|
|
|
|
char *txt_mem = (char*)fsop_ReadFile(fmt("%s/%s.txt", m_helpDir.c_str(), lowerCase(m_curLanguage).c_str()), &txt_size);
|
|
|
|
if(txt_mem != NULL)
|
2012-08-14 17:42:34 +02:00
|
|
|
{
|
2013-09-08 20:29:54 +02:00
|
|
|
if(*(txt_mem+txt_size) != '\0')
|
|
|
|
*(txt_mem+txt_size) = '\0';
|
|
|
|
help_text.fromUTF8(txt_mem);
|
2012-11-01 17:39:42 +01:00
|
|
|
m_btnMgr.setText(m_aboutLblInfo, help_text);
|
2013-09-08 20:29:54 +02:00
|
|
|
free(txt_mem);
|
2012-08-14 17:42:34 +02:00
|
|
|
}
|
|
|
|
else
|
2012-11-01 17:39:42 +01:00
|
|
|
m_btnMgr.setText(m_aboutLblInfo, ENGLISH_TXT_W);
|
2013-09-08 20:29:54 +02:00
|
|
|
txt_mem = NULL;
|
2016-06-06 15:52:57 +02:00
|
|
|
return;
|
2012-05-03 04:47:36 +02:00
|
|
|
}
|
2016-06-06 15:52:57 +02:00
|
|
|
// show credits and current cIOS
|
|
|
|
m_btnMgr.setText(m_aboutLblTitle, VERSION_STRING);
|
|
|
|
|
2016-12-14 19:47:13 +01:00
|
|
|
wstringEx developers(wfmt(_fmt("about6", L"Current Developers:\n%s"), DEVELOPERS));
|
2016-06-06 15:52:57 +02:00
|
|
|
wstringEx pDevelopers(wfmt(_fmt("about7", L"Past Developers:\n%s"), PAST_DEVELOPERS));
|
|
|
|
|
|
|
|
wstringEx origLoader(wfmt(_fmt("about1", L"Original Loader By:\n%s"), LOADER_AUTHOR));
|
|
|
|
wstringEx origGUI(wfmt(_fmt("about2", L"Original GUI By:\n%s"), GUI_AUTHOR));
|
|
|
|
|
|
|
|
wstringEx codethx(wfmt(_fmt("about8", L"Bits of Code Obtained From:\n%s"), THANKS_CODE));
|
|
|
|
wstringEx sites(wfmt(_fmt("about9", L"Supporting Websites:\n%s"), THANKS_SITES));
|
|
|
|
|
|
|
|
wstringEx translator(wfmt(L", %s", m_loc.getWString(m_curLanguage, "translation_author").toUTF8().c_str()));
|
|
|
|
wstringEx thanks(wfmt(_fmt("about4", L"Thanks To:\n%s"), THANKS));
|
|
|
|
if(translator.size() > 3)
|
|
|
|
thanks.append(translator);
|
|
|
|
|
|
|
|
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",
|
|
|
|
developers.toUTF8().c_str(),
|
|
|
|
pDevelopers.toUTF8().c_str(),
|
|
|
|
origLoader.toUTF8().c_str(),
|
|
|
|
origGUI.toUTF8().c_str(),
|
|
|
|
codethx.toUTF8().c_str(),
|
|
|
|
sites.toUTF8().c_str(),
|
|
|
|
thanks.toUTF8().c_str())
|
|
|
|
);
|
2012-11-12 21:12:00 +01:00
|
|
|
const char *IOS_Name = NULL;
|
2012-08-27 18:32:21 +02:00
|
|
|
switch(IOS_GetType(CurrentIOS.Version))
|
|
|
|
{
|
|
|
|
case IOS_TYPE_D2X:
|
2012-11-12 21:12:00 +01:00
|
|
|
IOS_Name = "D2X";
|
|
|
|
break;
|
2012-08-27 18:32:21 +02:00
|
|
|
case IOS_TYPE_WANIN:
|
2012-11-12 21:12:00 +01:00
|
|
|
IOS_Name = "Waninkoko";
|
|
|
|
break;
|
2012-08-27 18:32:21 +02:00
|
|
|
case IOS_TYPE_HERMES:
|
|
|
|
case IOS_TYPE_KWIIRK:
|
2012-11-12 21:12:00 +01:00
|
|
|
IOS_Name = "Hermes";
|
2012-08-27 18:32:21 +02:00
|
|
|
break;
|
2012-11-12 21:12:00 +01:00
|
|
|
default:
|
2012-08-27 18:32:21 +02:00
|
|
|
break;
|
|
|
|
}
|
2012-11-12 21:12:00 +01:00
|
|
|
if(IOS_Name == NULL)
|
|
|
|
m_btnMgr.setText(m_aboutLblIOS, wfmt(L"IOS%i v%i", CurrentIOS.Version,
|
|
|
|
CurrentIOS.Revision), true);
|
|
|
|
else
|
|
|
|
m_btnMgr.setText(m_aboutLblIOS, wfmt(L"%s IOS%i[%i] v%d.%d", IOS_Name, CurrentIOS.Version,
|
|
|
|
CurrentIOS.Base, CurrentIOS.Revision, CurrentIOS.SubRevision), true);
|
2012-01-21 21:57:41 +01:00
|
|
|
}
|