mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-11-01 00:55:06 +01:00
-fixed wii game launching from sd card (excite truck doesnt work from sd)
This commit is contained in:
parent
cd9f2675a7
commit
7575c33e07
@ -1,3 +1,8 @@
|
|||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C"
|
||||||
|
{
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef _SDHC_H_
|
#ifndef _SDHC_H_
|
||||||
#define _SDHC_H_
|
#define _SDHC_H_
|
||||||
|
|
||||||
@ -16,3 +21,7 @@ extern int sdhc_mode_sd;
|
|||||||
extern int sdhc_inited;
|
extern int sdhc_inited;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
@ -431,7 +431,11 @@ s32 Disc_WiiBoot(u8 vidMode, bool vipatch, bool countryString, u8 patchVidModes,
|
|||||||
|
|
||||||
/* Find game partition offset */
|
/* Find game partition offset */
|
||||||
s32 ret = __Disc_FindPartition(&offset);
|
s32 ret = __Disc_FindPartition(&offset);
|
||||||
if (ret < 0) return ret;
|
if (ret < 0)
|
||||||
|
{
|
||||||
|
gprintf("Game Partition not found!\n");
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
/* Boot partition */
|
/* Boot partition */
|
||||||
return Disc_BootPartition(offset, vidMode, vipatch, countryString, patchVidModes, disableIOSreload, aspectRatio);
|
return Disc_BootPartition(offset, vidMode, vipatch, countryString, patchVidModes, disableIOSreload, aspectRatio);
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
#include "savefile.h"
|
#include "savefile.h"
|
||||||
#include "wip.h"
|
#include "wip.h"
|
||||||
#include "channel_launcher.h"
|
#include "channel_launcher.h"
|
||||||
|
#include "devicemounter/sdhc.h"
|
||||||
|
|
||||||
#include "loader/frag.h"
|
#include "loader/frag.h"
|
||||||
#include "loader/fst.h"
|
#include "loader/fst.h"
|
||||||
@ -1071,7 +1072,6 @@ void CMenu::_launchGame(dir_discHdr *hdr, bool dvd)
|
|||||||
if(!DeviceHandler::Instance()->IsInserted(currentPartition))
|
if(!DeviceHandler::Instance()->IsInserted(currentPartition))
|
||||||
DeviceHandler::Instance()->Mount(currentPartition);
|
DeviceHandler::Instance()->Mount(currentPartition);
|
||||||
DeviceHandler::Instance()->Mount(emuPartition);
|
DeviceHandler::Instance()->Mount(emuPartition);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!m_directLaunch)
|
if (!m_directLaunch)
|
||||||
@ -1116,7 +1116,9 @@ void CMenu::_launchGame(dir_discHdr *hdr, bool dvd)
|
|||||||
cleanup();
|
cleanup();
|
||||||
Close_Inputs();
|
Close_Inputs();
|
||||||
USBStorage_Deinit();
|
USBStorage_Deinit();
|
||||||
|
if(currentPartition == 0)
|
||||||
|
SDHC_Init();
|
||||||
|
|
||||||
if(gc)
|
if(gc)
|
||||||
{
|
{
|
||||||
memcpy((char*)hdr->hdr.id, id.c_str(),6);
|
memcpy((char*)hdr->hdr.id, id.c_str(),6);
|
||||||
|
Loading…
Reference in New Issue
Block a user