diff --git a/source/gui/boxmesh.cpp b/source/gui/boxmesh.cpp index 1cb75e6f..adaf5990 100644 --- a/source/gui/boxmesh.cpp +++ b/source/gui/boxmesh.cpp @@ -21,7 +21,7 @@ const Vector3D g_boxSize( #define h(y) ((float)y / 256.0f) -const SMeshVert g_boxMeshQ ATTRIBUTE_ALIGN(32)[] = { // Quads +const SMeshVert g_boxMeshQ[] ATTRIBUTE_ALIGN(32) = { // Quads // Bordure du bas devant { { g_frontCoverBL.x, g_frontCoverBL.y, g_frontCoverBL.z }, CTexCoord(w(0), h(256)) }, { { g_frontCoverBL.x, g_frontCoverBL.y - g_boxBorderWidth, g_frontCoverBL.z - g_boxBorderWidth }, CTexCoord(w(10), h(256)) }, @@ -101,7 +101,7 @@ const SMeshVert g_boxMeshQ ATTRIBUTE_ALIGN(32)[] = { // Quads { { g_backCoverBL.x, g_backCoverBL.y - g_boxBorderWidth, g_backCoverBL.z + g_boxBorderWidth }, CTexCoord(w(0), h(0)) } }; -const SMeshVert g_boxMeshT ATTRIBUTE_ALIGN(32)[] = { // Triangles +const SMeshVert g_boxMeshT[] ATTRIBUTE_ALIGN(32) = { // Triangles // Haut devant { { g_frontCoverTR.x, g_frontCoverTR.y, g_frontCoverBL.z }, CTexCoord(w(0), h(16)) }, { { g_frontCoverTR.x + g_boxBorderWidth, g_frontCoverTR.y, g_frontCoverBL.z - g_boxBorderWidth }, CTexCoord(w(10), h(0)) }, @@ -126,7 +126,7 @@ const SMeshVert g_boxMeshT ATTRIBUTE_ALIGN(32)[] = { // Triangles #undef h #undef w -const SMeshVert g_flatCoverMesh ATTRIBUTE_ALIGN(32)[] = { +const SMeshVert g_flatCoverMesh[] ATTRIBUTE_ALIGN(32) = { { { g_coverBL.x, g_coverBL.y, g_coverBL.z }, CTexCoord(0.f, 1.f) }, { { g_coverTR.x, g_coverBL.y, g_coverBL.z }, CTexCoord(1.f, 1.f) }, { { g_coverTR.x, g_coverTR.y, g_coverBL.z }, CTexCoord(1.f, 0.f) }, @@ -140,7 +140,7 @@ const CTexCoord g_flatCoverBoxTex[sizeof g_flatCoverMesh / sizeof g_flatCoverMes CTexCoord(1.46f / 2.76f, 0.f) }; -const SMeshVert g_boxBackCoverMesh ATTRIBUTE_ALIGN(32)[] = { +const SMeshVert g_boxBackCoverMesh[] ATTRIBUTE_ALIGN(32) = { { { g_backCoverTR.x, g_backCoverBL.y, g_backCoverBL.z }, CTexCoord(0.f, 1.f) }, { { g_backCoverBL.x, g_backCoverBL.y, g_backCoverBL.z }, CTexCoord(1.3f / 2.76f, 1.f) }, { { g_backCoverBL.x, g_backCoverTR.y, g_backCoverBL.z }, CTexCoord(1.3f / 2.76f, 0.f) }, @@ -152,7 +152,7 @@ const SMeshVert g_boxBackCoverMesh ATTRIBUTE_ALIGN(32)[] = { { { g_backCoverBL.x, g_backCoverBL.y, g_backCoverBL.z }, CTexCoord(1.3f / 2.76f, 1.f) }, }; -const SMeshVert g_boxCoverMesh ATTRIBUTE_ALIGN(32)[] = { +const SMeshVert g_boxCoverMesh[] ATTRIBUTE_ALIGN(32) = { { { g_frontCoverBL.x, g_frontCoverBL.y, g_frontCoverBL.z }, CTexCoord(1.46f / 2.76f, 1.f) }, { { g_frontCoverTR.x, g_frontCoverBL.y, g_frontCoverBL.z }, CTexCoord(1.f, 1.f) }, { { g_frontCoverTR.x, g_frontCoverTR.y, g_frontCoverBL.z }, CTexCoord(1.f, 0.f) }, diff --git a/source/loader/disc.c b/source/loader/disc.c index 829be454..364c3fcb 100644 --- a/source/loader/disc.c +++ b/source/loader/disc.c @@ -72,9 +72,6 @@ void __Disc_SetLowMem() // Fix for Sam & Max (WiiPower) *(vu32 *)0x80003184 = 0x80000000; - - /* Copy disc ID */ - memcpy((void *) Online_Check, (void *) Disc_ID, 4); } GXRModeObj * __Disc_SelectVMode(u8 videoselected, u64 chantitle) diff --git a/source/menu/menu_config.cpp b/source/menu/menu_config.cpp index 77909fb8..77be2c2b 100644 --- a/source/menu/menu_config.cpp +++ b/source/menu/menu_config.cpp @@ -58,12 +58,6 @@ void CMenu::_showConfig(void) m_btnMgr.show(m_configBtnPageM); m_btnMgr.show(m_configBtnPageP); - if(m_current_view != COVERFLOW_HOMEBREW && m_current_view != COVERFLOW_DML && m_current_view != COVERFLOW_USB) - { - m_btnMgr.show(m_configBtnEmulation); - m_btnMgr.show(m_configLblEmulation); - } - m_btnMgr.show(m_locked ? m_configBtnUnlock : m_configBtnSetCode); bool disable = m_current_view == COVERFLOW_CHANNEL && m_cfg.getBool("NAND", "disable", true); @@ -82,18 +76,14 @@ void CMenu::_showConfig(void) m_btnMgr.setText(m_configLblPage, wfmt(L"%i / %i", g_curPage, m_locked ? g_curPage + 1 : CMenu::_nbCfgPages)); bool isON = false; - switch(m_current_view) + if (m_current_view == COVERFLOW_CHANNEL) { - case COVERFLOW_CHANNEL: - m_btnMgr.setText(m_configLblEmulation, _t("cfg12", L"NAND Emulation")); - isON = m_cfg.getBool("NAND", "disable", true); - break; - case COVERFLOW_USB: - m_btnMgr.setText(m_configLblEmulation, _t("cfg11", L"USB Saves Emulation")); - isON = !m_cfg.getBool("GAMES", "save_emulation", false); - break; + m_btnMgr.show(m_configBtnEmulation); + m_btnMgr.show(m_configLblEmulation); + m_btnMgr.setText(m_configLblEmulation, _t("cfg12", L"NAND Emulation")); + isON = m_cfg.getBool("NAND", "disable", true); + m_btnMgr.setText(m_configBtnEmulation, isON ? _t("off", L"Off") : _t("on", L"On")); } - m_btnMgr.setText(m_configBtnEmulation, isON ? _t("off", L"Off") : _t("on", L"On")); } void CMenu::_config(int page) diff --git a/wiiflow.pnproj b/wiiflow.pnproj index 21269391..79250537 100644 --- a/wiiflow.pnproj +++ b/wiiflow.pnproj @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file