mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-11-30 15:14:18 +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 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);
|
MEM2_free(mbr);
|
||||||
return -1;
|
return -1;
|
||||||
@ -300,7 +300,7 @@ void PartitionHandle::CheckEBR(u8 PartNum, sec_t ebr_lba)
|
|||||||
MEM2_free(ebr);
|
MEM2_free(ebr);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(ebr->signature != EBR_SIGNATURE)
|
if(ebr->signature != EBR_SIGNATURE && ebr->signature != EBR_SIGNATURE_MOD)
|
||||||
{
|
{
|
||||||
MEM2_free(ebr);
|
MEM2_free(ebr);
|
||||||
return;
|
return;
|
||||||
|
@ -38,6 +38,10 @@ using namespace std;
|
|||||||
#define MBR_SIGNATURE 0x55AA
|
#define MBR_SIGNATURE 0x55AA
|
||||||
#define EBR_SIGNATURE MBR_SIGNATURE
|
#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_BOOTABLE 0x80 /* Bootable (active) */
|
||||||
#define PARTITION_NONBOOTABLE 0x00 /* Non-bootable */
|
#define PARTITION_NONBOOTABLE 0x00 /* Non-bootable */
|
||||||
#define PARTITION_TYPE_GPT 0xEE /* Indicates that a GPT header is available */
|
#define PARTITION_TYPE_GPT 0xEE /* Indicates that a GPT header is available */
|
||||||
|
@ -118,7 +118,7 @@ int CMenu::_configAdv(void)
|
|||||||
break; /* Settings changed */
|
break; /* Settings changed */
|
||||||
_showConfigAdv();
|
_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();
|
_cfNeedsUpdate();
|
||||||
s8 direction = m_btnMgr.selected(m_configAdvBtnCurThemeP) ? 1 : -1;
|
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);
|
m_cfg.setInt(_domainFromView(), "last_cf_mode", 1);
|
||||||
_showConfigAdv();
|
_showConfigAdv();
|
||||||
}
|
}
|
||||||
else if (m_configAdvBtnLanguage)
|
else if(m_btnMgr.selected(m_configAdvBtnLanguage))
|
||||||
{
|
{
|
||||||
_hideConfigAdv();
|
_hideConfigAdv();
|
||||||
lang_changed = _LangSettings();
|
lang_changed = _LangSettings();
|
||||||
_showConfigAdv();
|
_showConfigAdv();
|
||||||
}
|
}
|
||||||
else if (m_btnMgr.selected(m_configAdvBtnCFTheme))
|
else if(m_btnMgr.selected(m_configAdvBtnCFTheme))
|
||||||
{
|
{
|
||||||
_cfNeedsUpdate();
|
_cfNeedsUpdate();
|
||||||
_hideConfigAdv();
|
_hideConfigAdv();
|
||||||
|
Loading…
Reference in New Issue
Block a user