2013-11-19 16:27:52 +01:00
|
|
|
|
2018-12-30 23:00:51 +01:00
|
|
|
#include <algorithm>
|
2012-08-05 15:48:15 +02:00
|
|
|
#include "menu.hpp"
|
|
|
|
#include "gui/GameTDB.hpp"
|
2018-12-30 23:00:51 +01:00
|
|
|
#include "plugin/plugin.hpp"
|
|
|
|
#include "plugin/crc32.h"
|
2019-02-25 13:09:46 +01:00
|
|
|
#include "unzip/ZipFile.h"
|
2012-01-21 21:57:41 +01:00
|
|
|
|
2019-01-11 00:13:13 +01:00
|
|
|
s16 m_gameinfoLblRomInfo;
|
|
|
|
|
2012-11-01 17:39:42 +01:00
|
|
|
wstringEx gameinfo_Synopsis_w;
|
|
|
|
wstringEx gameinfo_Title_w;
|
2012-01-21 21:57:41 +01:00
|
|
|
|
2016-12-14 19:47:13 +01:00
|
|
|
bool tdb_found = false;
|
2012-01-21 21:57:41 +01:00
|
|
|
u8 cnt_controlsreq = 0, cnt_controls = 0;
|
2018-07-09 16:53:35 +02:00
|
|
|
int synopsis_h;
|
2019-01-11 00:13:13 +01:00
|
|
|
int rominfo_h;
|
|
|
|
int rominfo_th = 0;
|
2012-01-21 21:57:41 +01:00
|
|
|
|
|
|
|
void CMenu::_gameinfo(void)
|
|
|
|
{
|
-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
|
|
|
u8 page = 1;
|
|
|
|
int pixels_to_skip = 10;
|
|
|
|
int amount_of_skips = 0;
|
|
|
|
int xtra_skips = 0;
|
2018-07-09 16:53:35 +02:00
|
|
|
int synopsis_th = 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
|
|
|
|
2012-01-21 21:57:41 +01:00
|
|
|
SetupInput();
|
|
|
|
_showGameInfo();
|
2016-07-22 01:40:12 +02: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
|
|
|
while(!m_exit)
|
2012-01-21 21:57:41 +01:00
|
|
|
{
|
|
|
|
_mainLoopCommon();
|
2017-05-15 19:50:24 +02:00
|
|
|
if(BTN_HOME_PRESSED || BTN_B_PRESSED || !tdb_found)
|
-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
|
|
|
break;
|
2019-01-11 00:13:13 +01:00
|
|
|
if((BTN_DOWN_PRESSED || BTN_DOWN_HELD))
|
2012-01-21 21:57:41 +01:00
|
|
|
{
|
2019-01-11 00:13:13 +01:00
|
|
|
if(page == 2 && synopsis_th > synopsis_h)
|
2016-07-22 01:40:12 +02:00
|
|
|
{
|
2019-01-11 00:13:13 +01:00
|
|
|
if((synopsis_th - amount_of_skips * pixels_to_skip) >= synopsis_h)
|
|
|
|
{
|
|
|
|
m_btnMgr.moveBy(m_gameinfoLblSynopsis, 0, -pixels_to_skip);
|
|
|
|
amount_of_skips++;
|
|
|
|
}
|
|
|
|
else if((synopsis_th - amount_of_skips * pixels_to_skip) < synopsis_h && xtra_skips == 0)
|
|
|
|
{
|
|
|
|
xtra_skips = pixels_to_skip - ((synopsis_th - amount_of_skips * pixels_to_skip) - synopsis_h);
|
|
|
|
m_btnMgr.moveBy(m_gameinfoLblSynopsis, 0, -xtra_skips);
|
|
|
|
}
|
2012-01-21 21:57:41 +01:00
|
|
|
}
|
2019-01-11 00:13:13 +01:00
|
|
|
else if(page == 1 && rominfo_th > rominfo_h)
|
-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
|
|
|
{
|
2019-01-11 00:13:13 +01:00
|
|
|
if((rominfo_th - amount_of_skips * pixels_to_skip) >= rominfo_h)
|
|
|
|
{
|
|
|
|
m_btnMgr.moveBy(m_gameinfoLblRomInfo, 0, -pixels_to_skip);
|
|
|
|
amount_of_skips++;
|
|
|
|
}
|
|
|
|
else if((rominfo_th - amount_of_skips * pixels_to_skip) < rominfo_h && xtra_skips == 0)
|
|
|
|
{
|
|
|
|
xtra_skips = pixels_to_skip - ((rominfo_th - amount_of_skips * pixels_to_skip) - rominfo_h);
|
|
|
|
m_btnMgr.moveBy(m_gameinfoLblRomInfo, 0, -xtra_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
|
|
|
}
|
2012-01-21 21:57:41 +01:00
|
|
|
}
|
2019-01-11 00:13:13 +01:00
|
|
|
else if((BTN_UP_PRESSED || BTN_UP_HELD))
|
2012-01-21 21:57:41 +01:00
|
|
|
{
|
2019-01-11 00:13:13 +01:00
|
|
|
if(page == 2)
|
-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
|
|
|
{
|
2019-01-11 00:13:13 +01:00
|
|
|
if(xtra_skips > 0)
|
|
|
|
{
|
|
|
|
m_btnMgr.moveBy(m_gameinfoLblSynopsis, 0, xtra_skips);
|
|
|
|
xtra_skips = 0;
|
|
|
|
}
|
|
|
|
else if (amount_of_skips > 0)
|
|
|
|
{
|
|
|
|
m_btnMgr.moveBy(m_gameinfoLblSynopsis, 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
|
|
|
}
|
2019-01-11 00:13:13 +01:00
|
|
|
else // page 1
|
2012-01-21 21:57:41 +01:00
|
|
|
{
|
2019-01-11 00:13:13 +01:00
|
|
|
if(xtra_skips > 0)
|
|
|
|
{
|
|
|
|
m_btnMgr.moveBy(m_gameinfoLblRomInfo, 0, xtra_skips);
|
|
|
|
xtra_skips = 0;
|
|
|
|
}
|
|
|
|
else if (amount_of_skips > 0)
|
|
|
|
{
|
|
|
|
m_btnMgr.moveBy(m_gameinfoLblRomInfo, 0, pixels_to_skip);
|
|
|
|
amount_of_skips--;
|
|
|
|
}
|
2012-01-21 21:57:41 +01:00
|
|
|
}
|
|
|
|
}
|
2016-12-01 01:05:39 +01:00
|
|
|
else if(BTN_RIGHT_PRESSED && page == 1 && !gameinfo_Synopsis_w.empty())
|
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
|
|
|
page = 2;
|
2012-01-21 21:57:41 +01:00
|
|
|
amount_of_skips = 0;
|
2019-01-11 00:13:13 +01:00
|
|
|
xtra_skips = 0;
|
2012-07-05 15:15:23 +02:00
|
|
|
|
2012-02-04 22:45:51 +01:00
|
|
|
m_btnMgr.hide(m_gameinfoLblID, true);
|
2012-01-21 21:57:41 +01:00
|
|
|
m_btnMgr.hide(m_gameinfoLblDev, true);
|
|
|
|
m_btnMgr.hide(m_gameinfoLblRegion, true);
|
|
|
|
m_btnMgr.hide(m_gameinfoLblPublisher, true);
|
|
|
|
m_btnMgr.hide(m_gameinfoLblRlsdate, true);
|
|
|
|
m_btnMgr.hide(m_gameinfoLblGenre, true);
|
|
|
|
m_btnMgr.hide(m_gameinfoLblRating, true);
|
|
|
|
m_btnMgr.hide(m_gameinfoLblWifiplayers, true);
|
2018-12-30 23:00:51 +01:00
|
|
|
m_btnMgr.hide(m_gameinfoLblSnap, true);
|
|
|
|
m_btnMgr.hide(m_gameinfoLblCartDisk, true);
|
|
|
|
m_btnMgr.hide(m_gameinfoLblOverlay, true);
|
2019-01-11 00:13:13 +01:00
|
|
|
m_btnMgr.hide(m_gameinfoLblRomInfo, true);
|
|
|
|
|
2012-07-05 15:15:23 +02:00
|
|
|
for(u8 i = 0; i < ARRAY_SIZE(m_gameinfoLblControlsReq); ++i)
|
2012-09-13 16:54:17 +02:00
|
|
|
if(m_gameinfoLblControlsReq[i] != -1)
|
2012-01-21 21:57:41 +01:00
|
|
|
m_btnMgr.hide(m_gameinfoLblControlsReq[i], true);
|
2012-11-01 17:39:42 +01:00
|
|
|
|
2012-07-05 15:15:23 +02:00
|
|
|
for(u8 i = 0; i < ARRAY_SIZE(m_gameinfoLblControls); ++i)
|
2012-09-13 16:54:17 +02:00
|
|
|
if(m_gameinfoLblControls[i] != -1)
|
2012-01-21 21:57:41 +01:00
|
|
|
m_btnMgr.hide(m_gameinfoLblControls[i], true);
|
2012-11-01 17:39:42 +01:00
|
|
|
|
2012-01-21 21:57:41 +01:00
|
|
|
// When showing synopsis, only show user labels 2 and 3
|
2012-07-05 15:15:23 +02:00
|
|
|
for(u8 i = 0; i < ARRAY_SIZE(m_gameinfoLblUser); ++i)
|
|
|
|
if(i < ARRAY_SIZE(m_gameinfoLblUser) / 2)
|
2012-01-21 21:57:41 +01:00
|
|
|
m_btnMgr.hide(m_gameinfoLblUser[i], true);
|
|
|
|
else
|
|
|
|
m_btnMgr.show(m_gameinfoLblUser[i]);
|
2012-11-01 17:39:42 +01:00
|
|
|
|
|
|
|
m_btnMgr.reset(m_gameinfoLblSynopsis);
|
|
|
|
m_btnMgr.show(m_gameinfoLblSynopsis, false);
|
-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
|
|
|
m_btnMgr.getTotalHeight(m_gameinfoLblSynopsis, synopsis_th);
|
|
|
|
m_btnMgr.moveBy(m_gameinfoLblSynopsis, 0, -1);
|
2012-01-21 21:57:41 +01:00
|
|
|
}
|
2019-01-11 00:13:13 +01:00
|
|
|
else if(BTN_LEFT_PRESSED && page == 2)
|
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
|
|
|
page = 1;
|
2019-01-11 00:13:13 +01:00
|
|
|
amount_of_skips = 0;
|
|
|
|
xtra_skips = 0;
|
|
|
|
|
|
|
|
m_btnMgr.hide(m_gameinfoLblSynopsis,true);
|
|
|
|
|
|
|
|
if(CoverFlow.getHdr()->type == TYPE_PLUGIN)
|
|
|
|
{
|
|
|
|
m_btnMgr.reset(m_gameinfoLblRomInfo);
|
|
|
|
m_btnMgr.show(m_gameinfoLblRomInfo, false);
|
|
|
|
m_btnMgr.getTotalHeight(m_gameinfoLblRomInfo, rominfo_th);
|
|
|
|
m_btnMgr.moveBy(m_gameinfoLblRomInfo, 0, -1);
|
|
|
|
m_btnMgr.show(m_gameinfoLblSnap);
|
|
|
|
m_btnMgr.show(m_gameinfoLblCartDisk);
|
|
|
|
m_btnMgr.show(m_gameinfoLblOverlay);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
m_btnMgr.show(m_gameinfoLblID);
|
|
|
|
m_btnMgr.show(m_gameinfoLblRating);
|
|
|
|
m_btnMgr.show(m_gameinfoLblRegion);
|
|
|
|
m_btnMgr.show(m_gameinfoLblDev);
|
|
|
|
m_btnMgr.show(m_gameinfoLblPublisher);
|
|
|
|
m_btnMgr.show(m_gameinfoLblRlsdate);
|
|
|
|
m_btnMgr.show(m_gameinfoLblGenre);
|
|
|
|
m_btnMgr.show(m_gameinfoLblWifiplayers);
|
|
|
|
}
|
2012-01-21 21:57:41 +01:00
|
|
|
|
2012-07-05 15:15:23 +02:00
|
|
|
for(u8 i = 0; i < ARRAY_SIZE(m_gameinfoLblControlsReq); ++i)
|
2012-09-13 16:54:17 +02:00
|
|
|
if(m_gameinfoLblControlsReq[i] != -1 && i < cnt_controlsreq)
|
2012-01-21 21:57:41 +01:00
|
|
|
m_btnMgr.show(m_gameinfoLblControlsReq[i]);
|
2012-07-05 15:15:23 +02:00
|
|
|
|
|
|
|
for(u8 i = 0; i < ARRAY_SIZE(m_gameinfoLblControls); ++i)
|
2012-09-13 16:54:17 +02:00
|
|
|
if(m_gameinfoLblControls[i] != -1 && i < cnt_controls)
|
2012-01-21 21:57:41 +01:00
|
|
|
m_btnMgr.show(m_gameinfoLblControls[i]);
|
2012-07-05 15:15:23 +02:00
|
|
|
|
2012-01-21 21:57:41 +01:00
|
|
|
// When showing synopsis, only show user labels 2 and 3
|
2012-07-05 15:15:23 +02:00
|
|
|
for(u8 i = 0; i < ARRAY_SIZE(m_gameinfoLblUser); ++i)
|
|
|
|
if(i < ARRAY_SIZE(m_gameinfoLblUser) / 2)
|
2012-01-21 21:57:41 +01:00
|
|
|
m_btnMgr.show(m_gameinfoLblUser[i]);
|
|
|
|
else
|
|
|
|
m_btnMgr.hide(m_gameinfoLblUser[i], true);
|
|
|
|
}
|
-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-01-21 21:57:41 +01:00
|
|
|
_hideGameInfo(false);
|
|
|
|
}
|
|
|
|
|
|
|
|
void CMenu::_hideGameInfo(bool instant)
|
|
|
|
{
|
|
|
|
m_btnMgr.hide(m_gameinfoLblID, instant);
|
|
|
|
m_btnMgr.hide(m_gameinfoLblTitle, instant);
|
|
|
|
m_btnMgr.hide(m_gameinfoLblSynopsis, instant);
|
|
|
|
m_btnMgr.hide(m_gameinfoLblDev, instant);
|
|
|
|
m_btnMgr.hide(m_gameinfoLblRegion, instant);
|
|
|
|
m_btnMgr.hide(m_gameinfoLblPublisher, instant);
|
|
|
|
m_btnMgr.hide(m_gameinfoLblRlsdate, instant);
|
|
|
|
m_btnMgr.hide(m_gameinfoLblGenre, instant);
|
|
|
|
m_btnMgr.hide(m_gameinfoLblRating, instant);
|
|
|
|
m_btnMgr.hide(m_gameinfoLblWifiplayers, instant);
|
2018-12-30 23:00:51 +01:00
|
|
|
m_btnMgr.hide(m_gameinfoLblSnap, instant);
|
|
|
|
m_btnMgr.hide(m_gameinfoLblCartDisk, instant);
|
|
|
|
m_btnMgr.hide(m_gameinfoLblOverlay, instant);
|
2019-01-11 00:13:13 +01:00
|
|
|
m_btnMgr.hide(m_gameinfoLblRomInfo, instant);
|
2012-01-21 21:57:41 +01:00
|
|
|
|
2012-07-05 15:15:23 +02:00
|
|
|
for(u8 i = 0; i < ARRAY_SIZE(m_gameinfoLblControlsReq); ++i)
|
2012-09-13 16:54:17 +02:00
|
|
|
if(m_gameinfoLblControlsReq[i] != -1)
|
2012-01-21 21:57:41 +01:00
|
|
|
m_btnMgr.hide(m_gameinfoLblControlsReq[i], instant);
|
|
|
|
|
2012-07-05 15:15:23 +02:00
|
|
|
for(u8 i = 0; i < ARRAY_SIZE(m_gameinfoLblUser); ++i)
|
2012-01-21 21:57:41 +01:00
|
|
|
m_btnMgr.hide(m_gameinfoLblUser[i], instant);
|
|
|
|
|
2012-07-05 15:15:23 +02:00
|
|
|
for(u8 i = 0; i < ARRAY_SIZE(m_gameinfoLblControls); ++i)
|
2012-09-13 16:54:17 +02:00
|
|
|
if(m_gameinfoLblControls[i] != -1)
|
2012-01-21 21:57:41 +01:00
|
|
|
m_btnMgr.hide(m_gameinfoLblControls[i], instant);
|
|
|
|
}
|
|
|
|
|
|
|
|
void CMenu::_showGameInfo(void)
|
|
|
|
{
|
|
|
|
_setBg(m_gameinfoBg, m_gameinfoBg);
|
|
|
|
|
|
|
|
_textGameInfo();
|
|
|
|
|
2016-12-14 19:47:13 +01:00
|
|
|
if(tdb_found)
|
2012-01-21 21:57:41 +01:00
|
|
|
{
|
|
|
|
m_btnMgr.show(m_gameinfoLblTitle);
|
2019-01-11 00:13:13 +01:00
|
|
|
|
|
|
|
if(CoverFlow.getHdr()->type == TYPE_PLUGIN)
|
2018-12-30 23:00:51 +01:00
|
|
|
{
|
2019-01-11 00:13:13 +01:00
|
|
|
m_btnMgr.reset(m_gameinfoLblRomInfo);
|
|
|
|
m_btnMgr.show(m_gameinfoLblRomInfo, false);
|
|
|
|
m_btnMgr.getTotalHeight(m_gameinfoLblRomInfo, rominfo_th);
|
|
|
|
m_btnMgr.moveBy(m_gameinfoLblRomInfo, 0, -1);
|
2018-12-30 23:00:51 +01:00
|
|
|
m_btnMgr.show(m_gameinfoLblSnap);
|
|
|
|
m_btnMgr.show(m_gameinfoLblCartDisk);
|
|
|
|
m_btnMgr.show(m_gameinfoLblOverlay);
|
|
|
|
}
|
2019-01-11 00:13:13 +01:00
|
|
|
else
|
|
|
|
{
|
|
|
|
m_btnMgr.show(m_gameinfoLblID);
|
|
|
|
m_btnMgr.show(m_gameinfoLblRating);
|
|
|
|
m_btnMgr.show(m_gameinfoLblRegion);
|
|
|
|
m_btnMgr.show(m_gameinfoLblDev);
|
|
|
|
m_btnMgr.show(m_gameinfoLblPublisher);
|
|
|
|
m_btnMgr.show(m_gameinfoLblRlsdate);
|
|
|
|
m_btnMgr.show(m_gameinfoLblGenre);
|
|
|
|
m_btnMgr.show(m_gameinfoLblWifiplayers);
|
|
|
|
}
|
2018-12-30 23:00:51 +01:00
|
|
|
|
2012-07-05 15:15:23 +02:00
|
|
|
for(u8 i = 0; i < ARRAY_SIZE(m_gameinfoLblUser); ++i)
|
|
|
|
if(i < ARRAY_SIZE(m_gameinfoLblUser) / 2)
|
2012-01-21 21:57:41 +01:00
|
|
|
m_btnMgr.show(m_gameinfoLblUser[i]);
|
|
|
|
|
2012-07-05 15:15:23 +02:00
|
|
|
for(u8 i = 0; i < ARRAY_SIZE(m_gameinfoLblControlsReq); ++i)
|
2012-09-13 16:54:17 +02:00
|
|
|
if(m_gameinfoLblControlsReq[i] != -1 && i < cnt_controlsreq)
|
2012-01-21 21:57:41 +01:00
|
|
|
m_btnMgr.show(m_gameinfoLblControlsReq[i]);
|
|
|
|
|
2012-07-05 15:15:23 +02:00
|
|
|
for(u8 i = 0; i < ARRAY_SIZE(m_gameinfoLblControls); ++i)
|
2012-09-13 16:54:17 +02:00
|
|
|
if(m_gameinfoLblControls[i] != -1 && i < cnt_controls)
|
2012-01-21 21:57:41 +01:00
|
|
|
m_btnMgr.show(m_gameinfoLblControls[i]);
|
|
|
|
}
|
2017-05-15 19:50:24 +02:00
|
|
|
else
|
|
|
|
error(_t("errgame18", L"No game info!"));
|
2012-01-21 21:57:41 +01:00
|
|
|
}
|
|
|
|
|
2012-11-03 20:16:03 +01:00
|
|
|
void CMenu::_initGameInfoMenu()
|
2012-01-21 21:57:41 +01:00
|
|
|
{
|
2012-12-28 15:19:40 +01:00
|
|
|
TexData emptyTex;
|
2012-11-03 20:16:03 +01:00
|
|
|
_addUserLabels(m_gameinfoLblUser, 0, 1, "GAMEINFO");
|
|
|
|
_addUserLabels(m_gameinfoLblUser, 2, 1, "GAMEINFO");
|
2012-01-21 21:57:41 +01:00
|
|
|
|
2012-11-03 20:16:03 +01:00
|
|
|
m_gameinfoBg = _texture("GAMEINFO/BG", "texture", theme.bg, false);
|
2018-12-28 01:47:00 +01:00
|
|
|
m_gameinfoLblID = _addLabel("GAMEINFO/GAMEID", theme.txtFont, L"", 40, 110, 420, 75, theme.txtFontColor, FTGX_JUSTIFY_LEFT | FTGX_ALIGN_TOP);
|
|
|
|
m_gameinfoLblGenre = _addLabel("GAMEINFO/GENRE", theme.txtFont, L"", 40, 140, 460, 56, theme.txtFontColor, FTGX_JUSTIFY_LEFT | FTGX_ALIGN_TOP);
|
|
|
|
m_gameinfoLblDev = _addLabel("GAMEINFO/DEVELOPER", theme.txtFont, L"", 40, 170, 460, 56, theme.txtFontColor, FTGX_JUSTIFY_LEFT | FTGX_ALIGN_TOP);
|
|
|
|
m_gameinfoLblPublisher = _addLabel("GAMEINFO/PUBLISHER", theme.txtFont, L"", 40, 200, 460, 56, theme.txtFontColor, FTGX_JUSTIFY_LEFT | FTGX_ALIGN_TOP);
|
|
|
|
m_gameinfoLblRlsdate = _addLabel("GAMEINFO/RLSDATE", theme.txtFont, L"", 40, 230, 460, 56, theme.txtFontColor, FTGX_JUSTIFY_LEFT | FTGX_ALIGN_TOP);
|
|
|
|
m_gameinfoLblRegion = _addLabel("GAMEINFO/REGION", theme.txtFont, L"", 40, 260, 460, 56, theme.txtFontColor, FTGX_JUSTIFY_LEFT | FTGX_ALIGN_TOP);
|
2018-12-30 23:00:51 +01:00
|
|
|
m_gameinfoLblRating = _addLabel("GAMEINFO/RATING", theme.txtFont, L"", 550, 380, 48, 60, theme.txtFontColor, 0, m_rating);
|
2018-12-28 01:47:00 +01:00
|
|
|
m_gameinfoLblSynopsis = _addLabel("GAMEINFO/SYNOPSIS", theme.txtFont, L"", 40, 80, 560, 280, theme.txtFontColor, FTGX_JUSTIFY_LEFT | FTGX_ALIGN_TOP);
|
2019-01-11 00:13:13 +01:00
|
|
|
m_gameinfoLblWifiplayers = _addLabel("GAMEINFO/WIFIPLAYERS", theme.txtFont, L"", 550, 110, 68, 60, theme.txtFontColor, 0, m_wifi);
|
|
|
|
m_gameinfoLblSnap = _addLabel("GAMEINFO/SNAP", theme.txtFont, L"", 350, 80, 100, 100, theme.txtFontColor, 0, m_snap);
|
2019-01-14 17:28:31 +01:00
|
|
|
m_gameinfoLblOverlay = _addLabel("GAMEINFO/OVERLAY", theme.txtFont, L"", 350, 80, 100, 100, theme.txtFontColor, 0, m_overlay);
|
2019-01-11 00:13:13 +01:00
|
|
|
m_gameinfoLblCartDisk = _addLabel("GAMEINFO/CART", theme.txtFont, L"", 400, 320, 100, 100, theme.txtFontColor, 0, m_cart);
|
|
|
|
m_gameinfoLblRomInfo = _addLabel("GAMEINFO/ROMINFO", theme.txtFont, L"", 40, 80, 300, 300, theme.txtFontColor, FTGX_JUSTIFY_LEFT | FTGX_ALIGN_TOP);
|
2012-11-03 20:16:03 +01:00
|
|
|
|
|
|
|
_addUserLabels(m_gameinfoLblUser, 1, 1, "GAMEINFO");
|
|
|
|
_addUserLabels(m_gameinfoLblUser, 3, 2, "GAMEINFO");
|
|
|
|
|
2018-12-28 01:47:00 +01:00
|
|
|
m_gameinfoLblTitle = _addLabel("GAMEINFO/TITLE", theme.titleFont, L"", 0, 10, 640, 60, theme.titleFontColor, FTGX_JUSTIFY_CENTER | FTGX_ALIGN_MIDDLE);
|
2012-01-21 21:57:41 +01:00
|
|
|
|
2012-07-05 15:15:23 +02:00
|
|
|
for(u8 i = 0; i < ARRAY_SIZE(m_gameinfoLblControlsReq); ++i)
|
2012-01-21 21:57:41 +01:00
|
|
|
{
|
2012-11-18 14:40:26 +01:00
|
|
|
string dom(fmt("GAMEINFO/CONTROLSREQ%i", i + 1));
|
2012-11-03 20:16:03 +01:00
|
|
|
m_gameinfoLblControlsReq[i] = _addLabel(dom.c_str(), theme.txtFont, L"", 40 + (i*60), 310, 60, 40, theme.txtFontColor, 0, emptyTex);
|
2012-01-21 21:57:41 +01:00
|
|
|
_setHideAnim(m_gameinfoLblControlsReq[i], dom.c_str(), 0, -100, 0.f, 0.f);
|
|
|
|
}
|
|
|
|
|
2012-07-05 15:15:23 +02:00
|
|
|
for(u8 i = 0; i < ARRAY_SIZE(m_gameinfoLblControls); ++i)
|
2012-01-21 21:57:41 +01:00
|
|
|
{
|
2012-11-18 14:40:26 +01:00
|
|
|
string dom(fmt("GAMEINFO/CONTROLS%i", i + 1));
|
2012-11-03 20:16:03 +01:00
|
|
|
m_gameinfoLblControls[i] = _addLabel(dom.c_str(), theme.txtFont, L"", 40 + (i*60), 380, 60, 40, theme.txtFontColor, 0, emptyTex);
|
2012-01-21 21:57:41 +01:00
|
|
|
_setHideAnim(m_gameinfoLblControls[i], dom.c_str(), 0, -100, 0.f, 0.f);
|
|
|
|
}
|
|
|
|
//
|
2012-02-10 19:45:42 +01:00
|
|
|
_setHideAnim(m_gameinfoLblID, "GAMEINFO/GAMEID",0, -100, 0.f, 0.f);
|
2012-07-29 00:38:46 +02:00
|
|
|
_setHideAnim(m_gameinfoLblTitle, "GAMEINFO/TITLE", 0, 0, -2.f, 0.f);
|
2013-11-04 20:46:23 +01:00
|
|
|
_setHideAnim(m_gameinfoLblRating, "GAMEINFO/RATING", 0, -100, 0.f, 0.f);
|
2012-06-27 14:31:48 +02:00
|
|
|
_setHideAnim(m_gameinfoLblSynopsis, "GAMEINFO/SYNOPSIS", 0, 700, 1.f, 1.f);
|
2012-01-21 21:57:41 +01:00
|
|
|
_setHideAnim(m_gameinfoLblRegion, "GAMEINFO/REGION", 0, -100, 0.f, 0.f);
|
|
|
|
_setHideAnim(m_gameinfoLblDev, "GAMEINFO/DEVELOPER", 0, -100, 0.f, 0.f);
|
|
|
|
_setHideAnim(m_gameinfoLblPublisher, "GAMEINFO/PUBLISHER", 0, -100, 0.f, 0.f);
|
|
|
|
_setHideAnim(m_gameinfoLblRlsdate, "GAMEINFO/RLSDATE", 0, -100, 0.f, 0.f);
|
|
|
|
_setHideAnim(m_gameinfoLblGenre, "GAMEINFO/GENRE", 0, -100, 0.f, 0.f);
|
|
|
|
_setHideAnim(m_gameinfoLblWifiplayers, "GAMEINFO/WIFIPLAYERS", 0, -100, 0.f, 0.f);
|
2018-12-30 23:00:51 +01:00
|
|
|
_setHideAnim(m_gameinfoLblSnap, "GAMEINFO/SNAP", 0, -100, 0.f, 0.f);
|
|
|
|
_setHideAnim(m_gameinfoLblCartDisk, "GAMEINFO/CART", 0, -100, 0.f, 0.f);
|
|
|
|
_setHideAnim(m_gameinfoLblOverlay, "GAMEINFO/OVERLAY", 0, -100, 0.f, 0.f);
|
2019-01-11 00:13:13 +01:00
|
|
|
_setHideAnim(m_gameinfoLblRomInfo, "GAMEINFO/ROMINFO", 0, -100, 0.f, 0.f);
|
2012-01-21 21:57:41 +01:00
|
|
|
//
|
|
|
|
_hideGameInfo(true);
|
2018-07-09 16:53:35 +02:00
|
|
|
synopsis_h = m_theme.getInt("GAMEINFO/SYNOPSIS", "height", 280);
|
2019-01-11 00:13:13 +01:00
|
|
|
rominfo_h = m_theme.getInt("GAMEINFO/ROMINFO", "height", 300);
|
2012-01-21 21:57:41 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void CMenu::_textGameInfo(void)
|
|
|
|
{
|
|
|
|
cnt_controlsreq = 0;
|
|
|
|
cnt_controls = 0;
|
2019-01-11 00:13:13 +01:00
|
|
|
char GameID[7];
|
|
|
|
GameID[6] = '\0';
|
2018-12-30 23:00:51 +01:00
|
|
|
char platformName[264];
|
2019-01-11 00:13:13 +01:00
|
|
|
const char *TMP_Char = NULL;
|
|
|
|
tdb_found = false;
|
|
|
|
GameTDB gametdb;
|
|
|
|
TexData emptyTex;
|
2019-02-25 13:09:46 +01:00
|
|
|
const dir_discHdr *GameHdr = CoverFlow.getHdr();
|
2019-01-11 00:13:13 +01:00
|
|
|
|
2019-02-25 13:09:46 +01:00
|
|
|
if(GameHdr->type == TYPE_PLUGIN)
|
2018-12-30 23:00:51 +01:00
|
|
|
{
|
|
|
|
// Check the platform name corresponding to the current magic number.
|
|
|
|
// We can't use magic # directly since it'd require hardcoding values and a # can be several systems(genplus)
|
|
|
|
// We can't rely on coverfolder either. Different systems can share the same folder. Or combined plugins used for the same system.
|
2019-02-08 23:01:29 +01:00
|
|
|
|
2019-04-08 18:10:30 +02:00
|
|
|
/* is platform.ini available? */
|
2019-01-11 00:13:13 +01:00
|
|
|
if(!m_platform.loaded())
|
|
|
|
return;// no platform.ini found
|
|
|
|
|
2019-02-08 23:01:29 +01:00
|
|
|
/* Search platform.ini to find plugin magic to get platformName */
|
2018-12-30 23:00:51 +01:00
|
|
|
snprintf(platformName, sizeof(platformName), "%s", m_platform.getString("PLUGINS", m_plugin.PluginMagicWord).c_str());
|
2019-02-25 13:09:46 +01:00
|
|
|
if(strstr(platformName, "multi") != NULL)// if multi platform ie. vbagx, genplusgx, get file extension
|
|
|
|
{
|
|
|
|
char ext[4];
|
|
|
|
if(strstr(GameHdr->path, ".zip") != NULL)// if zip get internal filename extension
|
|
|
|
{
|
|
|
|
ZipFile zFile(GameHdr->path);
|
|
|
|
const char *fileName = zFile.GetFileName();
|
|
|
|
strcpy(ext, strrchr(fileName, '.') + 1);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
strcpy(ext, strrchr(GameHdr->path, '.') + 1);
|
|
|
|
}
|
|
|
|
snprintf(platformName, sizeof(platformName), "%s", m_platform.getString("ext", ext).c_str());
|
|
|
|
}
|
2019-01-11 00:13:13 +01:00
|
|
|
if(strlen(platformName) == 0)
|
|
|
|
return;// no platform name found to match plugin magic #
|
2019-04-08 18:10:30 +02:00
|
|
|
|
2019-04-10 13:51:06 +02:00
|
|
|
/* check COMBINED for database platform name */
|
2019-04-29 15:14:54 +02:00
|
|
|
/* some platforms have different names per country (ex. Genesis/Megadrive) */
|
|
|
|
/* but we use only one platform name for both */
|
2019-04-10 13:51:06 +02:00
|
|
|
string newName = m_platform.getString("COMBINED", platformName);
|
|
|
|
if(newName.empty())
|
|
|
|
m_platform.remove("COMBINED", platformName);
|
|
|
|
else
|
|
|
|
snprintf(platformName, sizeof(platformName), "%s", newName.c_str());
|
|
|
|
|
2019-02-08 23:01:29 +01:00
|
|
|
/* Get Game's crc/serial to be used as gameID by searching platformName.ini file */
|
|
|
|
string romID;// this will be the crc or serial
|
|
|
|
string ShortName = m_plugin.GetRomName(GameHdr);// if scummvm game then shortname=NULL
|
|
|
|
if(!ShortName.empty())
|
|
|
|
romID = m_plugin.GetRomId(GameHdr, m_pluginDataDir.c_str(), platformName, ShortName);
|
|
|
|
if(romID.empty())// no romID. possibly scummvm game or short name and crc/serial not found
|
|
|
|
return;
|
|
|
|
|
|
|
|
strncpy(GameID, romID.c_str(), 6);// copy crc/serial to be used as gameID to get game info from xml
|
|
|
|
|
|
|
|
/* Load platform name.xml database to get game's info using the gameID (crc/serial) */
|
2018-12-30 23:00:51 +01:00
|
|
|
gametdb.OpenFile(fmt("%s/%s/%s.xml", m_pluginDataDir.c_str(), platformName, platformName));
|
2019-01-11 00:13:13 +01:00
|
|
|
tdb_found = gametdb.IsLoaded();
|
|
|
|
if(!tdb_found)
|
|
|
|
return;// no platform xml found
|
|
|
|
|
|
|
|
gametdb.SetLanguageCode(m_loc.getString(m_curLanguage, "gametdb_code", "EN").c_str());
|
|
|
|
|
|
|
|
// Get title
|
2012-11-04 00:38:39 +01:00
|
|
|
if(gametdb.GetTitle(GameID, TMP_Char))
|
|
|
|
{
|
|
|
|
gameinfo_Title_w.fromUTF8(TMP_Char);
|
2013-08-11 23:44:29 +02:00
|
|
|
m_btnMgr.setText(m_gameinfoLblTitle, gameinfo_Title_w);
|
2012-11-04 00:38:39 +01:00
|
|
|
}
|
2017-05-15 19:50:24 +02:00
|
|
|
else
|
|
|
|
{
|
|
|
|
tdb_found = false;
|
2019-01-11 00:13:13 +01:00
|
|
|
gametdb.CloseFile();// gameID not found in xml
|
2017-05-15 19:50:24 +02:00
|
|
|
return;
|
|
|
|
}
|
2018-12-30 23:00:51 +01:00
|
|
|
|
2012-11-04 00:38:39 +01:00
|
|
|
if(gametdb.GetSynopsis(GameID, TMP_Char))
|
|
|
|
gameinfo_Synopsis_w.fromUTF8(TMP_Char);
|
2019-01-11 00:13:13 +01:00
|
|
|
else
|
|
|
|
gameinfo_Synopsis_w.fromUTF8("");
|
|
|
|
m_btnMgr.setText(m_gameinfoLblSynopsis, gameinfo_Synopsis_w);
|
2018-12-30 23:00:51 +01:00
|
|
|
|
2019-01-11 00:13:13 +01:00
|
|
|
// Clear textures
|
|
|
|
m_btnMgr.setTexture(m_gameinfoLblSnap, emptyTex);
|
|
|
|
m_btnMgr.setTexture(m_gameinfoLblCartDisk, emptyTex);
|
|
|
|
m_btnMgr.setTexture(m_gameinfoLblOverlay, emptyTex);
|
|
|
|
|
|
|
|
// Try to find images by game's xml name
|
|
|
|
if(gametdb.GetName(GameID, TMP_Char))
|
2018-12-30 23:00:51 +01:00
|
|
|
{
|
2019-01-11 00:13:13 +01:00
|
|
|
const char *snap_path = NULL;
|
|
|
|
const char *cart_path = NULL;
|
|
|
|
const char *overlay_path = NULL;
|
|
|
|
|
|
|
|
// Use real filename without extension for arcade games.
|
|
|
|
if(strcasestr(platformName, "ARCADE") || strcasestr(platformName, "CPS") || !strncasecmp(platformName, "NEOGEO", 6))
|
2018-12-30 23:00:51 +01:00
|
|
|
{
|
2019-01-11 00:13:13 +01:00
|
|
|
snap_path = fmt("%s/%s/%s.png", m_snapDir.c_str(), platformName, ShortName.c_str());
|
|
|
|
cart_path = fmt("%s/%s/%s_2D.png", m_cartDir.c_str(), platformName, ShortName.c_str());
|
2018-12-30 23:00:51 +01:00
|
|
|
}
|
2019-01-11 00:13:13 +01:00
|
|
|
// Name from the database.
|
2018-12-30 23:00:51 +01:00
|
|
|
else
|
|
|
|
{
|
2019-01-11 00:13:13 +01:00
|
|
|
snap_path = fmt("%s/%s/%s.png", m_snapDir.c_str(), platformName, TMP_Char);
|
|
|
|
cart_path = fmt("%s/%s/%s_2D.png", m_cartDir.c_str(), platformName, TMP_Char);
|
2018-12-30 23:00:51 +01:00
|
|
|
}
|
2019-01-11 00:13:13 +01:00
|
|
|
|
|
|
|
// Try to find images by game's ID
|
|
|
|
if(!fsop_FileExist(snap_path))
|
2016-06-06 15:52:57 +02:00
|
|
|
{
|
2019-01-11 00:13:13 +01:00
|
|
|
snap_path = fmt("%s/%s/%s.png", m_snapDir.c_str(), platformName, GameID);
|
|
|
|
cart_path = fmt("%s/%s/%s_2D.png", m_cartDir.c_str(), platformName, GameID);
|
|
|
|
|
|
|
|
if(!fsop_FileExist(snap_path))
|
2018-12-30 23:00:51 +01:00
|
|
|
{
|
2019-01-11 00:13:13 +01:00
|
|
|
TexHandle.Cleanup(m_snap);
|
|
|
|
TexHandle.Cleanup(m_cart);
|
2018-12-30 23:00:51 +01:00
|
|
|
}
|
2016-06-06 15:52:57 +02:00
|
|
|
}
|
2018-12-30 23:00:51 +01:00
|
|
|
|
2019-01-11 00:13:13 +01:00
|
|
|
TexHandle.fromImageFile(m_snap, snap_path);
|
|
|
|
m_btnMgr.setTexture(m_gameinfoLblSnap, m_snap, m_snap.width, m_snap.height);
|
|
|
|
|
|
|
|
TexHandle.fromImageFile(m_cart, cart_path);
|
|
|
|
if(m_cart.height > 112)
|
|
|
|
m_btnMgr.setTexture(m_gameinfoLblCartDisk, m_cart, 114, 128);
|
2018-12-30 23:00:51 +01:00
|
|
|
else
|
2019-01-11 00:13:13 +01:00
|
|
|
m_btnMgr.setTexture(m_gameinfoLblCartDisk, m_cart, 160, 112);
|
2018-12-30 23:00:51 +01:00
|
|
|
|
2019-01-11 00:13:13 +01:00
|
|
|
overlay_path = fmt("%s/%s_overlay.png", m_snapDir.c_str(), platformName);
|
|
|
|
|
|
|
|
if(fsop_FileExist(overlay_path))
|
2018-12-30 23:00:51 +01:00
|
|
|
{
|
2019-01-11 00:13:13 +01:00
|
|
|
TexHandle.fromImageFile(m_overlay, overlay_path);
|
|
|
|
m_btnMgr.setTexture(m_gameinfoLblOverlay, m_overlay, m_overlay.width, m_overlay.height);
|
2018-12-30 23:00:51 +01:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2019-01-11 00:13:13 +01:00
|
|
|
m_btnMgr.setTexture(m_gameinfoLblOverlay, emptyTex);
|
|
|
|
}
|
2012-11-04 00:38:39 +01:00
|
|
|
}
|
2012-01-21 21:57:41 +01:00
|
|
|
|
2019-01-11 00:13:13 +01:00
|
|
|
// Create Rom Info
|
|
|
|
wstringEx rom_info;
|
|
|
|
rom_info = wfmt(_fmt("gameinfo7",L"GameID: %s"), GameID);
|
|
|
|
if(gametdb.GetDeveloper(GameID, TMP_Char))
|
2012-01-21 21:57:41 +01:00
|
|
|
{
|
2019-01-11 00:13:13 +01:00
|
|
|
rom_info.append(L"\n\n");
|
|
|
|
rom_info.append(wfmt(_fmt("gameinfo1",L"Developer: %s"), TMP_Char));
|
2012-01-21 21:57:41 +01:00
|
|
|
}
|
2019-01-11 00:13:13 +01:00
|
|
|
if(gametdb.GetPublisher(GameID, TMP_Char))
|
2012-01-21 21:57:41 +01:00
|
|
|
{
|
2019-01-11 00:13:13 +01:00
|
|
|
rom_info.append(L"\n\n");
|
|
|
|
rom_info.append(wfmt(_fmt("gameinfo2",L"Publisher: %s"), TMP_Char));
|
2012-01-21 21:57:41 +01:00
|
|
|
}
|
2019-01-11 00:13:13 +01:00
|
|
|
if(gametdb.GetRegion(GameID, TMP_Char))
|
2012-01-21 21:57:41 +01:00
|
|
|
{
|
2019-01-11 00:13:13 +01:00
|
|
|
rom_info.append(L"\n\n");
|
|
|
|
rom_info.append(wfmt(_fmt("gameinfo3",L"Region: %s"), TMP_Char));
|
2012-02-06 03:31:04 +01:00
|
|
|
}
|
2019-01-11 00:13:13 +01:00
|
|
|
if(gametdb.GetGenres(GameID, TMP_Char))
|
2012-02-06 03:31:04 +01:00
|
|
|
{
|
2019-01-11 00:13:13 +01:00
|
|
|
rom_info.append(L"\n\n");
|
2019-01-14 17:28:31 +01:00
|
|
|
vector<string> genres = stringToVector(TMP_Char, ',');
|
|
|
|
string s;
|
|
|
|
for(u8 i = 0; i < genres.size(); ++i)
|
|
|
|
{
|
|
|
|
if(i > 0)
|
|
|
|
s.append(", ");// add comma & space between genres
|
|
|
|
s.append(genres[i]);
|
|
|
|
}
|
|
|
|
rom_info.append(wfmt(_fmt("gameinfo5",L"Genre: %s"), s.c_str()));
|
2012-01-21 21:57:41 +01:00
|
|
|
}
|
2019-01-11 00:13:13 +01:00
|
|
|
int PublishDate = gametdb.GetPublishDate(GameID);
|
|
|
|
int year = PublishDate >> 16;
|
|
|
|
int day = PublishDate & 0xFF;
|
|
|
|
int month = (PublishDate >> 8) & 0xFF;
|
|
|
|
if(day == 0 && month == 0)
|
2012-05-03 03:34:56 +02:00
|
|
|
{
|
2019-01-11 00:13:13 +01:00
|
|
|
// Only display year or nothing if there's no date at all
|
|
|
|
if(year != 0)
|
|
|
|
{
|
|
|
|
rom_info.append(L"\n\n");
|
|
|
|
rom_info.append(wfmt(_fmt("gameinfo8",L"Released: %i"), year));
|
|
|
|
}
|
2012-05-03 03:34:56 +02:00
|
|
|
}
|
2019-01-11 00:13:13 +01:00
|
|
|
else
|
2012-02-06 03:31:04 +01:00
|
|
|
{
|
2019-01-11 00:13:13 +01:00
|
|
|
switch(CONF_GetRegion())
|
|
|
|
{
|
|
|
|
case 0:
|
|
|
|
case 4:
|
|
|
|
case 5:
|
|
|
|
rom_info.append(L"\n\n");
|
|
|
|
rom_info.append(wfmt(_fmt("gameinfo4",L"Release Date: %i-%i-%i"), year, month, day));
|
|
|
|
break;
|
|
|
|
case 1:
|
|
|
|
rom_info.append(L"\n\n");
|
|
|
|
rom_info.append(wfmt(_fmt("gameinfo4",L"Release Date: %i-%i-%i"), month, day, year));
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
rom_info.append(L"\n\n");
|
|
|
|
rom_info.append(wfmt(_fmt("gameinfo4",L"Release Date: %i-%i-%i"), day, month, year));
|
|
|
|
break;
|
|
|
|
}
|
2012-01-21 21:57:41 +01:00
|
|
|
}
|
2019-01-11 00:13:13 +01:00
|
|
|
//m_btnMgr.setText(m_gameinfoLblRomInfo, rom_info);
|
|
|
|
|
|
|
|
//
|
|
|
|
u8 players = gametdb.GetPlayers(GameID);
|
|
|
|
if(players > 0)
|
|
|
|
{
|
|
|
|
rom_info.append(L"\n\n");
|
|
|
|
rom_info.append(wfmt(_fmt("gameinfo9",L"Players: %i"), players));
|
|
|
|
}
|
|
|
|
m_btnMgr.setText(m_gameinfoLblRomInfo, rom_info);
|
|
|
|
/*
|
|
|
|
if(players == 1)
|
|
|
|
TexHandle.fromImageFile(m_controlsreq[0], fmt("%s/wiimote1.png", m_imgsDir.c_str()));
|
|
|
|
else if(players == 2)
|
|
|
|
TexHandle.fromImageFile(m_controlsreq[0], fmt("%s/wiimote2.png", m_imgsDir.c_str()));
|
|
|
|
else if(players == 3)
|
|
|
|
TexHandle.fromImageFile(m_controlsreq[0], fmt("%s/wiimote3.png", m_imgsDir.c_str()));
|
|
|
|
else if(players == 4)
|
|
|
|
TexHandle.fromImageFile(m_controlsreq[0], fmt("%s/wiimote4.png", m_imgsDir.c_str()));
|
|
|
|
else if(players == 5)
|
|
|
|
TexHandle.fromImageFile(m_controlsreq[0], fmt("%s/wiimote5.png", m_imgsDir.c_str()));
|
|
|
|
else if(players == 6)
|
|
|
|
TexHandle.fromImageFile(m_controlsreq[0], fmt("%s/wiimote6.png", m_imgsDir.c_str()));
|
|
|
|
else if(players == 8)
|
|
|
|
TexHandle.fromImageFile(m_controlsreq[0], fmt("%s/wiimote8.png", m_imgsDir.c_str()));
|
|
|
|
m_btnMgr.setTexture(m_gameinfoLblControlsReq[0] ,m_controlsreq[0], 20, 60);*/
|
|
|
|
cnt_controlsreq = 0;
|
|
|
|
gametdb.CloseFile();
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************* Wii and GameCube game infos **********************/
|
|
|
|
|
|
|
|
gametdb.OpenFile(fmt("%s/wiitdb.xml", m_settingsDir.c_str()));
|
|
|
|
tdb_found = gametdb.IsLoaded();
|
|
|
|
if(!tdb_found)
|
|
|
|
return;
|
|
|
|
|
|
|
|
gametdb.SetLanguageCode(m_loc.getString(m_curLanguage, "gametdb_code", "EN").c_str());
|
|
|
|
|
|
|
|
strncpy(GameID, CoverFlow.getId(), 6);
|
|
|
|
|
|
|
|
if(gametdb.GetTitle(GameID, TMP_Char))
|
|
|
|
{
|
|
|
|
gameinfo_Title_w.fromUTF8(TMP_Char);
|
|
|
|
m_btnMgr.setText(m_gameinfoLblTitle, gameinfo_Title_w);
|
|
|
|
}
|
|
|
|
|
|
|
|
if(gametdb.GetSynopsis(GameID, TMP_Char))
|
|
|
|
{
|
|
|
|
gameinfo_Synopsis_w.fromUTF8(TMP_Char);
|
|
|
|
m_btnMgr.setText(m_gameinfoLblSynopsis, gameinfo_Synopsis_w);
|
|
|
|
}
|
|
|
|
|
|
|
|
m_btnMgr.setText(m_gameinfoLblID, wfmt(_fmt("gameinfo7",L"GameID: %s"), GameID), true);
|
|
|
|
if(gametdb.GetDeveloper(GameID, TMP_Char))
|
|
|
|
m_btnMgr.setText(m_gameinfoLblDev, wfmt(_fmt("gameinfo1",L"Developer: %s"), TMP_Char), true);
|
|
|
|
if(gametdb.GetPublisher(GameID, TMP_Char))
|
|
|
|
m_btnMgr.setText(m_gameinfoLblPublisher, wfmt(_fmt("gameinfo2",L"Publisher: %s"), TMP_Char), true);
|
|
|
|
if(gametdb.GetRegion(GameID, TMP_Char))
|
|
|
|
m_btnMgr.setText(m_gameinfoLblRegion, wfmt(_fmt("gameinfo3",L"Region: %s"), TMP_Char), true);
|
|
|
|
if(gametdb.GetGenres(GameID, TMP_Char))
|
|
|
|
{
|
|
|
|
vector<string> genres = stringToVector(TMP_Char, ',');
|
|
|
|
string s;
|
|
|
|
for(u32 i = 0; i < genres.size(); ++i)
|
2012-01-21 21:57:41 +01:00
|
|
|
{
|
2019-01-11 00:13:13 +01:00
|
|
|
if(i > 0)
|
|
|
|
s.append(", ");// add comma & space between genres
|
|
|
|
s.append(genres[i]);
|
2012-01-21 21:57:41 +01:00
|
|
|
}
|
2019-01-11 00:13:13 +01:00
|
|
|
m_btnMgr.setText(m_gameinfoLblGenre, wfmt(_fmt("gameinfo5",L"Genre: %s"), s.c_str()), true);
|
2012-01-21 21:57:41 +01:00
|
|
|
}
|
|
|
|
|
2019-01-11 00:13:13 +01:00
|
|
|
int PublishDate = gametdb.GetPublishDate(GameID);
|
|
|
|
int year = PublishDate >> 16;
|
|
|
|
int day = PublishDate & 0xFF;
|
|
|
|
int month = (PublishDate >> 8) & 0xFF;
|
|
|
|
switch(CONF_GetRegion())
|
|
|
|
{
|
|
|
|
case 0:
|
|
|
|
case 4:
|
|
|
|
case 5:
|
|
|
|
m_btnMgr.setText(m_gameinfoLblRlsdate, wfmt(_fmt("gameinfo4",L"Release Date: %i-%i-%i"), year, month, day), true);
|
|
|
|
break;
|
|
|
|
case 1:
|
|
|
|
m_btnMgr.setText(m_gameinfoLblRlsdate, wfmt(_fmt("gameinfo4",L"Release Date: %i-%i-%i"), month, day, year), true);
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
m_btnMgr.setText(m_gameinfoLblRlsdate, wfmt(_fmt("gameinfo4",L"Release Date: %i-%i-%i"), day, month, year), true);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
//Ratings
|
|
|
|
TexHandle.fromImageFile(m_rating, fmt("%s/norating.png", m_imgsDir.c_str()));
|
|
|
|
const char *RatingValue = NULL;
|
|
|
|
if(gametdb.GetRatingValue(GameID, RatingValue))
|
|
|
|
{
|
|
|
|
switch(gametdb.GetRating(GameID))
|
|
|
|
{
|
|
|
|
case GAMETDB_RATING_TYPE_CERO:
|
|
|
|
if(RatingValue[0] == 'A')
|
|
|
|
TexHandle.fromImageFile(m_rating, fmt("%s/cero_a.png", m_imgsDir.c_str()));
|
|
|
|
else if(RatingValue[0] == 'B')
|
|
|
|
TexHandle.fromImageFile(m_rating, fmt("%s/cero_b.png", m_imgsDir.c_str()));
|
|
|
|
else if(RatingValue[0] == 'D')
|
|
|
|
TexHandle.fromImageFile(m_rating, fmt("%s/cero_d.png", m_imgsDir.c_str()));
|
|
|
|
else if(RatingValue[0] == 'C')
|
|
|
|
TexHandle.fromImageFile(m_rating, fmt("%s/cero_c.png", m_imgsDir.c_str()));
|
|
|
|
else if(RatingValue[0] == 'Z')
|
|
|
|
TexHandle.fromImageFile(m_rating, fmt("%s/cero_z.png", m_imgsDir.c_str()));
|
|
|
|
break;
|
|
|
|
case GAMETDB_RATING_TYPE_ESRB:
|
|
|
|
if(RatingValue[0] == 'E')
|
|
|
|
TexHandle.fromImageFile(m_rating, fmt("%s/esrb_e.jpg", m_imgsDir.c_str()));
|
|
|
|
else if(memcmp(RatingValue, "EC", 2) == 0)
|
|
|
|
TexHandle.fromImageFile(m_rating, fmt("%s/esrb_ec.jpg", m_imgsDir.c_str()));
|
|
|
|
else if(memcmp(RatingValue, "E10+", 4) == 0)
|
|
|
|
TexHandle.fromImageFile(m_rating, fmt("%s/esrb_eten.jpg", m_imgsDir.c_str()));
|
|
|
|
else if(RatingValue[0] == 'T')
|
|
|
|
TexHandle.fromImageFile(m_rating, fmt("%s/esrb_t.jpg", m_imgsDir.c_str()));
|
|
|
|
else if(RatingValue[0] == 'M')
|
|
|
|
TexHandle.fromImageFile(m_rating, fmt("%s/esrb_m.jpg", m_imgsDir.c_str()));
|
|
|
|
else if(memcmp(RatingValue, "AO", 2) == 0)
|
|
|
|
TexHandle.fromImageFile(m_rating, fmt("%s/esrb_ao.jpg", m_imgsDir.c_str()));
|
|
|
|
break;
|
|
|
|
case GAMETDB_RATING_TYPE_PEGI:
|
|
|
|
if(RatingValue[0] == '3')
|
|
|
|
TexHandle.fromImageFile(m_rating, fmt("%s/pegi_3.png", m_imgsDir.c_str()));
|
|
|
|
else if(RatingValue[0] == '7')
|
|
|
|
TexHandle.fromImageFile(m_rating, fmt("%s/pegi_7.png", m_imgsDir.c_str()));
|
|
|
|
else if(memcmp(RatingValue, "12", 2) == 0)
|
|
|
|
TexHandle.fromImageFile(m_rating, fmt("%s/pegi_12.png", m_imgsDir.c_str()));
|
|
|
|
else if(memcmp(RatingValue, "16", 2) == 0)
|
|
|
|
TexHandle.fromImageFile(m_rating, fmt("%s/pegi_16.png", m_imgsDir.c_str()));
|
|
|
|
else if(memcmp(RatingValue, "18", 2) == 0)
|
|
|
|
TexHandle.fromImageFile(m_rating, fmt("%s/pegi_18.png", m_imgsDir.c_str()));
|
|
|
|
break;
|
|
|
|
case GAMETDB_RATING_TYPE_GRB:
|
|
|
|
if(RatingValue[0] == 'A')
|
|
|
|
TexHandle.fromImageFile(m_rating, fmt("%s/grb_a.png", m_imgsDir.c_str()));
|
|
|
|
else if(memcmp(RatingValue, "12", 2) == 0)
|
|
|
|
TexHandle.fromImageFile(m_rating, fmt("%s/grb_12.png", m_imgsDir.c_str()));
|
|
|
|
else if(memcmp(RatingValue, "15", 2) == 0)
|
|
|
|
TexHandle.fromImageFile(m_rating, fmt("%s/grb_15.png", m_imgsDir.c_str()));
|
|
|
|
else if(memcmp(RatingValue, "18", 2) == 0)
|
|
|
|
TexHandle.fromImageFile(m_rating, fmt("%s/grb_18.png", m_imgsDir.c_str()));
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
m_btnMgr.setTexture(m_gameinfoLblRating, m_rating);
|
|
|
|
|
|
|
|
//Wifi players
|
|
|
|
int WifiPlayers = gametdb.GetWifiPlayers(GameID);
|
|
|
|
if(WifiPlayers == 1)
|
|
|
|
TexHandle.fromImageFile(m_wifi, fmt("%s/wifi1.png", m_imgsDir.c_str()));
|
|
|
|
else if(WifiPlayers == 2)
|
|
|
|
TexHandle.fromImageFile(m_wifi, fmt("%s/wifi2.png", m_imgsDir.c_str()));
|
|
|
|
else if(WifiPlayers == 4)
|
|
|
|
TexHandle.fromImageFile(m_wifi, fmt("%s/wifi4.png", m_imgsDir.c_str()));
|
|
|
|
else if(WifiPlayers == 8)
|
|
|
|
TexHandle.fromImageFile(m_wifi, fmt("%s/wifi8.png", m_imgsDir.c_str()));
|
|
|
|
else if(WifiPlayers == 10)
|
|
|
|
TexHandle.fromImageFile(m_wifi, fmt("%s/wifi10.png", m_imgsDir.c_str()));
|
|
|
|
else if(WifiPlayers == 12)
|
|
|
|
TexHandle.fromImageFile(m_wifi, fmt("%s/wifi12.png", m_imgsDir.c_str()));
|
|
|
|
else if(WifiPlayers == 16)
|
|
|
|
TexHandle.fromImageFile(m_wifi, fmt("%s/wifi16.png", m_imgsDir.c_str()));
|
|
|
|
else if(WifiPlayers == 18)
|
|
|
|
TexHandle.fromImageFile(m_wifi, fmt("%s/wifi18.png", m_imgsDir.c_str()));
|
|
|
|
else if(WifiPlayers == 32)
|
|
|
|
TexHandle.fromImageFile(m_wifi, fmt("%s/wifi32.png", m_imgsDir.c_str()));
|
|
|
|
if(WifiPlayers > 0)
|
|
|
|
m_btnMgr.setTexture(m_gameinfoLblWifiplayers, m_wifi);
|
|
|
|
else
|
|
|
|
m_btnMgr.setTexture(m_gameinfoLblWifiplayers, emptyTex);
|
|
|
|
|
|
|
|
//check required controlls
|
|
|
|
bool wiimote = false;
|
|
|
|
bool nunchuk = false;
|
|
|
|
bool classiccontroller = false;
|
|
|
|
bool balanceboard = false;
|
|
|
|
bool dancepad = false;
|
|
|
|
bool guitar = false;
|
|
|
|
bool gamecube = false;
|
|
|
|
bool motionplus = false;
|
|
|
|
bool drums = false;
|
|
|
|
bool microphone = false;
|
|
|
|
bool wheel = false;
|
|
|
|
bool keyboard = false;
|
|
|
|
bool udraw = false;
|
|
|
|
bool zapper = false;
|
|
|
|
|
|
|
|
vector<Accessory> Accessories;
|
|
|
|
gametdb.GetAccessories(GameID, Accessories);
|
|
|
|
for(vector<Accessory>::iterator acc_itr = Accessories.begin(); acc_itr != Accessories.end(); acc_itr++)
|
|
|
|
{
|
|
|
|
if(!acc_itr->Required)
|
|
|
|
continue;
|
|
|
|
if(strcmp((acc_itr->Name).c_str(), "wiimote") == 0)
|
|
|
|
wiimote = true;
|
|
|
|
else if(strcmp((acc_itr->Name).c_str(), "nunchuk") == 0)
|
|
|
|
nunchuk = true;
|
|
|
|
else if(strcmp((acc_itr->Name).c_str(), "guitar") == 0)
|
|
|
|
guitar = true;
|
|
|
|
else if(strcmp((acc_itr->Name).c_str(), "drums") == 0)
|
|
|
|
drums = true;
|
|
|
|
else if(strcmp((acc_itr->Name).c_str(), "dancepad") == 0)
|
|
|
|
dancepad = true;
|
|
|
|
else if(strcmp((acc_itr->Name).c_str(), "motionplus") == 0)
|
|
|
|
motionplus = true;
|
|
|
|
else if(strcmp((acc_itr->Name).c_str(), "microphone") == 0)
|
|
|
|
microphone = true;
|
|
|
|
else if(strcmp((acc_itr->Name).c_str(), "balanceboard") == 0)
|
|
|
|
balanceboard = true;
|
|
|
|
else if(strcmp((acc_itr->Name).c_str(), "udraw") == 0)
|
|
|
|
udraw = true;
|
|
|
|
}
|
|
|
|
u8 x = 0;
|
|
|
|
u8 max_controlsReq = ARRAY_SIZE(m_gameinfoLblControlsReq);
|
|
|
|
|
|
|
|
if(wiimote && x < max_controlsReq)
|
|
|
|
{
|
|
|
|
u8 players = gametdb.GetPlayers(GameID);
|
|
|
|
if(players >= 10)
|
|
|
|
players /= 10;
|
|
|
|
if(players == 1)
|
|
|
|
TexHandle.fromImageFile(m_controlsreq[x], fmt("%s/wiimote1.png", m_imgsDir.c_str()));
|
|
|
|
else if(players == 2)
|
|
|
|
TexHandle.fromImageFile(m_controlsreq[x], fmt("%s/wiimote2.png", m_imgsDir.c_str()));
|
|
|
|
else if(players == 3)
|
|
|
|
TexHandle.fromImageFile(m_controlsreq[x], fmt("%s/wiimote3.png", m_imgsDir.c_str()));
|
|
|
|
else if(players == 4)
|
|
|
|
TexHandle.fromImageFile(m_controlsreq[x], fmt("%s/wiimote4.png", m_imgsDir.c_str()));
|
|
|
|
else if(players == 5)
|
|
|
|
TexHandle.fromImageFile(m_controlsreq[x], fmt("%s/wiimote5.png", m_imgsDir.c_str()));
|
|
|
|
else if(players == 6)
|
|
|
|
TexHandle.fromImageFile(m_controlsreq[x], fmt("%s/wiimote6.png", m_imgsDir.c_str()));
|
|
|
|
else if(players == 8)
|
|
|
|
TexHandle.fromImageFile(m_controlsreq[x], fmt("%s/wiimote8.png", m_imgsDir.c_str()));
|
|
|
|
m_btnMgr.setTexture(m_gameinfoLblControlsReq[x] ,m_controlsreq[x], 20, 60);
|
|
|
|
x++;
|
|
|
|
}
|
|
|
|
if(nunchuk && x < max_controlsReq)
|
|
|
|
{
|
|
|
|
TexHandle.fromImageFile(m_controlsreq[x], fmt("%s/nunchukR.png", m_imgsDir.c_str()));
|
|
|
|
m_btnMgr.setTexture(m_gameinfoLblControlsReq[x] ,m_controlsreq[x], 52, 60);
|
|
|
|
x++;
|
|
|
|
}
|
|
|
|
if(guitar && x < max_controlsReq)
|
|
|
|
{
|
|
|
|
TexHandle.fromImageFile(m_controlsreq[x], fmt("%s/guitarR.png", m_imgsDir.c_str()));
|
|
|
|
m_btnMgr.setTexture(m_gameinfoLblControlsReq[x] ,m_controlsreq[x], 52, 60);
|
|
|
|
x++;
|
|
|
|
}
|
|
|
|
if(drums && x < max_controlsReq)
|
|
|
|
{
|
|
|
|
TexHandle.fromImageFile(m_controlsreq[x], fmt("%s/drumsR.png", m_imgsDir.c_str()));
|
|
|
|
m_btnMgr.setTexture(m_gameinfoLblControlsReq[x] ,m_controlsreq[x], 52, 60);
|
|
|
|
x++;
|
|
|
|
}
|
|
|
|
if(motionplus && x < max_controlsReq)
|
|
|
|
{
|
|
|
|
TexHandle.fromImageFile(m_controlsreq[x], fmt("%s/motionplusR.png", m_imgsDir.c_str()));
|
|
|
|
m_btnMgr.setTexture(m_gameinfoLblControlsReq[x] ,m_controlsreq[x], 20, 60);
|
|
|
|
x++;
|
|
|
|
}
|
|
|
|
if(dancepad && x < max_controlsReq)
|
|
|
|
{
|
|
|
|
TexHandle.fromImageFile(m_controlsreq[x], fmt("%s/dancepadR.png", m_imgsDir.c_str()));
|
|
|
|
m_btnMgr.setTexture(m_gameinfoLblControlsReq[x] ,m_controlsreq[x], 52, 60);
|
|
|
|
x++;
|
|
|
|
}
|
|
|
|
if(microphone && x < max_controlsReq)
|
|
|
|
{
|
|
|
|
TexHandle.fromImageFile(m_controlsreq[x], fmt("%s/microphoneR.png", m_imgsDir.c_str()));
|
|
|
|
m_btnMgr.setTexture(m_gameinfoLblControlsReq[x] ,m_controlsreq[x], 52, 60);
|
|
|
|
x++;
|
|
|
|
}
|
|
|
|
if(balanceboard && x < max_controlsReq)
|
|
|
|
{
|
|
|
|
TexHandle.fromImageFile(m_controlsreq[x], fmt("%s/balanceboardR.png", m_imgsDir.c_str()));
|
|
|
|
m_btnMgr.setTexture(m_gameinfoLblControlsReq[x] ,m_controlsreq[x], 52, 60);
|
|
|
|
x++;
|
|
|
|
}
|
|
|
|
if(udraw && x < max_controlsReq)
|
|
|
|
{
|
|
|
|
TexHandle.fromImageFile(m_controlsreq[x], fmt("%s/udrawR.png", m_imgsDir.c_str()));
|
|
|
|
m_btnMgr.setTexture(m_gameinfoLblControlsReq[x] ,m_controlsreq[x], 52, 60);
|
|
|
|
x++;
|
|
|
|
}
|
|
|
|
cnt_controlsreq = x;
|
|
|
|
|
|
|
|
//check optional controlls
|
|
|
|
wiimote = false;
|
|
|
|
nunchuk = false;
|
|
|
|
classiccontroller = false;
|
|
|
|
balanceboard = false;
|
|
|
|
dancepad = false;
|
|
|
|
guitar = false;
|
|
|
|
gamecube = false;
|
|
|
|
motionplus = false;
|
|
|
|
drums = false;
|
|
|
|
microphone = false;
|
|
|
|
wheel = false;
|
|
|
|
keyboard = false;
|
|
|
|
udraw = false;
|
|
|
|
zapper = false;
|
|
|
|
for(vector<Accessory>::iterator acc_itr = Accessories.begin(); acc_itr != Accessories.end(); acc_itr++)
|
|
|
|
{
|
|
|
|
if(acc_itr->Required)
|
|
|
|
continue;
|
|
|
|
if(strcmp((acc_itr->Name).c_str(), "classiccontroller") == 0)
|
|
|
|
classiccontroller = true;
|
|
|
|
else if(strcmp((acc_itr->Name).c_str(), "nunchuk") == 0)
|
|
|
|
nunchuk = true;
|
|
|
|
else if(strcmp((acc_itr->Name).c_str(), "guitar") == 0)
|
|
|
|
guitar = true;
|
|
|
|
else if(strcmp((acc_itr->Name).c_str(), "drums") == 0)
|
|
|
|
drums = true;
|
|
|
|
else if(strcmp((acc_itr->Name).c_str(), "dancepad") == 0)
|
|
|
|
dancepad = true;
|
|
|
|
else if(strcmp((acc_itr->Name).c_str(), "motionplus") == 0)
|
|
|
|
motionplus = true;
|
|
|
|
else if(strcmp((acc_itr->Name).c_str(), "balanceboard") == 0)
|
|
|
|
balanceboard = true;
|
|
|
|
else if(strcmp((acc_itr->Name).c_str(), "microphone") == 0)
|
|
|
|
microphone = true;
|
|
|
|
else if(strcmp((acc_itr->Name).c_str(), "gamecube") == 0)
|
|
|
|
gamecube = true;
|
|
|
|
else if(strcmp((acc_itr->Name).c_str(), "keyboard") == 0)
|
|
|
|
keyboard = true;
|
|
|
|
else if(strcmp((acc_itr->Name).c_str(), "zapper") == 0)
|
|
|
|
zapper = true;
|
|
|
|
else if(strcmp((acc_itr->Name).c_str(), "wheel") == 0)
|
|
|
|
wheel = true;
|
|
|
|
else if(strcmp((acc_itr->Name).c_str(), "udraw") == 0)
|
|
|
|
udraw = true;
|
|
|
|
}
|
|
|
|
x = 0;
|
|
|
|
u8 max_controls = ARRAY_SIZE(m_gameinfoLblControls);
|
|
|
|
if(classiccontroller && x < max_controls)
|
|
|
|
{
|
|
|
|
TexHandle.fromImageFile(m_controls[x], fmt("%s/classiccontroller.png", m_imgsDir.c_str()));
|
|
|
|
m_btnMgr.setTexture(m_gameinfoLblControls[x] ,m_controls[x], 52, 60);
|
|
|
|
x++;
|
|
|
|
}
|
|
|
|
if(nunchuk && x < max_controls)
|
|
|
|
{
|
|
|
|
TexHandle.fromImageFile(m_controls[x], fmt("%s/nunchuk.png", m_imgsDir.c_str()));
|
|
|
|
m_btnMgr.setTexture(m_gameinfoLblControls[x] ,m_controls[x], 52, 60);
|
|
|
|
x++;
|
|
|
|
}
|
|
|
|
if(guitar && x < max_controls)
|
|
|
|
{
|
|
|
|
TexHandle.fromImageFile(m_controls[x], fmt("%s/guitar.png", m_imgsDir.c_str()));
|
|
|
|
m_btnMgr.setTexture(m_gameinfoLblControls[x] ,m_controls[x], 52, 60);
|
|
|
|
x++;
|
|
|
|
}
|
|
|
|
if(drums && x < max_controls)
|
|
|
|
{
|
|
|
|
TexHandle.fromImageFile(m_controls[x], fmt("%s/drums.png", m_imgsDir.c_str()));
|
|
|
|
m_btnMgr.setTexture(m_gameinfoLblControls[x] ,m_controls[x], 52, 60);
|
|
|
|
x++;
|
|
|
|
}
|
|
|
|
if(dancepad && x < max_controls)
|
|
|
|
{
|
|
|
|
TexHandle.fromImageFile(m_controls[x], fmt("%s/dancepad.png", m_imgsDir.c_str()));
|
|
|
|
m_btnMgr.setTexture(m_gameinfoLblControls[x] ,m_controls[x], 52, 60);
|
|
|
|
x++;
|
|
|
|
}
|
|
|
|
if(motionplus && x < max_controls)
|
|
|
|
{
|
|
|
|
TexHandle.fromImageFile(m_controls[x], fmt("%s/motionplus.png", m_imgsDir.c_str()));
|
|
|
|
m_btnMgr.setTexture(m_gameinfoLblControls[x] ,m_controls[x], 20, 60);
|
|
|
|
x++;
|
|
|
|
}
|
|
|
|
if(balanceboard && x < max_controls)
|
|
|
|
{
|
|
|
|
TexHandle.fromImageFile(m_controls[x], fmt("%s/balanceboard.png", m_imgsDir.c_str()));
|
|
|
|
m_btnMgr.setTexture(m_gameinfoLblControls[x] ,m_controls[x], 52, 60);
|
|
|
|
x++;
|
|
|
|
}
|
|
|
|
if(microphone && x < max_controls)
|
|
|
|
{
|
|
|
|
TexHandle.fromImageFile(m_controls[x], fmt("%s/microphone.png", m_imgsDir.c_str()));
|
|
|
|
m_btnMgr.setTexture(m_gameinfoLblControls[x] ,m_controls[x], 48, 60);
|
|
|
|
x++;
|
|
|
|
}
|
|
|
|
if(gamecube && x < max_controls)
|
|
|
|
{
|
|
|
|
TexHandle.fromImageFile(m_controls[x], fmt("%s/gcncontroller.png", m_imgsDir.c_str()));
|
|
|
|
m_btnMgr.setTexture(m_gameinfoLblControls[x] ,m_controls[x], 48, 60);
|
|
|
|
x++;
|
|
|
|
}
|
|
|
|
if(keyboard && x < max_controls)
|
|
|
|
{
|
|
|
|
TexHandle.fromImageFile(m_controls[x], fmt("%s/keyboard.png", m_imgsDir.c_str()));
|
|
|
|
m_btnMgr.setTexture(m_gameinfoLblControls[x] ,m_controls[x], 52, 60);
|
|
|
|
x++;
|
|
|
|
}
|
|
|
|
if(udraw && x < max_controls)
|
|
|
|
{
|
|
|
|
TexHandle.fromImageFile(m_controls[x], fmt("%s/udraw.png", m_imgsDir.c_str()));
|
|
|
|
m_btnMgr.setTexture(m_gameinfoLblControls[x] ,m_controls[x], 52, 60);
|
|
|
|
x++;
|
|
|
|
}
|
|
|
|
if(zapper && x < max_controls)
|
|
|
|
{
|
|
|
|
TexHandle.fromImageFile(m_controls[x], fmt("%s/zapper.png", m_imgsDir.c_str()));
|
|
|
|
m_btnMgr.setTexture(m_gameinfoLblControls[x] ,m_controls[x], 52, 70);
|
|
|
|
x++;
|
|
|
|
}
|
|
|
|
if(wheel && x < max_controls)
|
|
|
|
{
|
|
|
|
TexHandle.fromImageFile(m_controls[x], fmt("%s/wheel.png", m_imgsDir.c_str()));
|
|
|
|
m_btnMgr.setTexture(m_gameinfoLblControls[x] ,m_controls[x], 52, 60);
|
|
|
|
x++;
|
|
|
|
}
|
|
|
|
cnt_controls = x;
|
2012-05-14 07:37:10 +02:00
|
|
|
gametdb.CloseFile();
|
2012-11-04 00:38:39 +01:00
|
|
|
}
|