mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-11-23 19:59:16 +01:00
-added a special signature check for modified hdds to skip the wiiu format asking (thx jayjay123)
-fixed the adjust coverflow button didnt work
This commit is contained in:
parent
51625a7507
commit
41a7ad5734
@ -254,7 +254,7 @@ s8 PartitionHandle::FindPartitions()
|
||||
}
|
||||
|
||||
// If this is the devices master boot record
|
||||
if(mbr->signature != MBR_SIGNATURE)
|
||||
if(mbr->signature != MBR_SIGNATURE && mbr->signature != MBR_SIGNATURE_MOD)
|
||||
{
|
||||
MEM2_free(mbr);
|
||||
return -1;
|
||||
@ -300,7 +300,7 @@ void PartitionHandle::CheckEBR(u8 PartNum, sec_t ebr_lba)
|
||||
MEM2_free(ebr);
|
||||
return;
|
||||
}
|
||||
if(ebr->signature != EBR_SIGNATURE)
|
||||
if(ebr->signature != EBR_SIGNATURE && ebr->signature != EBR_SIGNATURE_MOD)
|
||||
{
|
||||
MEM2_free(ebr);
|
||||
return;
|
||||
|
@ -38,6 +38,10 @@ using namespace std;
|
||||
#define MBR_SIGNATURE 0x55AA
|
||||
#define EBR_SIGNATURE MBR_SIGNATURE
|
||||
|
||||
/* for WiiU modified drives to ignore formatting it (thx jayjay123) */
|
||||
#define MBR_SIGNATURE_MOD 0x55AB
|
||||
#define EBR_SIGNATURE_MOD MBR_SIGNATURE_MOD
|
||||
|
||||
#define PARTITION_BOOTABLE 0x80 /* Bootable (active) */
|
||||
#define PARTITION_NONBOOTABLE 0x00 /* Non-bootable */
|
||||
#define PARTITION_TYPE_GPT 0xEE /* Indicates that a GPT header is available */
|
||||
|
@ -118,7 +118,7 @@ int CMenu::_configAdv(void)
|
||||
break; /* Settings changed */
|
||||
_showConfigAdv();
|
||||
}
|
||||
else if (m_btnMgr.selected(m_configAdvBtnCurThemeP) || m_btnMgr.selected(m_configAdvBtnCurThemeM))
|
||||
else if(m_btnMgr.selected(m_configAdvBtnCurThemeP) || m_btnMgr.selected(m_configAdvBtnCurThemeM))
|
||||
{
|
||||
_cfNeedsUpdate();
|
||||
s8 direction = m_btnMgr.selected(m_configAdvBtnCurThemeP) ? 1 : -1;
|
||||
@ -127,13 +127,13 @@ int CMenu::_configAdv(void)
|
||||
m_cfg.setInt(_domainFromView(), "last_cf_mode", 1);
|
||||
_showConfigAdv();
|
||||
}
|
||||
else if (m_configAdvBtnLanguage)
|
||||
else if(m_btnMgr.selected(m_configAdvBtnLanguage))
|
||||
{
|
||||
_hideConfigAdv();
|
||||
lang_changed = _LangSettings();
|
||||
_showConfigAdv();
|
||||
}
|
||||
else if (m_btnMgr.selected(m_configAdvBtnCFTheme))
|
||||
else if(m_btnMgr.selected(m_configAdvBtnCFTheme))
|
||||
{
|
||||
_cfNeedsUpdate();
|
||||
_hideConfigAdv();
|
||||
|
Loading…
Reference in New Issue
Block a user