2012-09-28 19:24:04 +02:00
|
|
|
/***************************************************************************
|
|
|
|
* Copyright (C) 2011
|
|
|
|
* by Dimok
|
|
|
|
* Modifications by xFede
|
|
|
|
* Wiiflowized and heavily improved by Miigotu
|
|
|
|
* 2012 Converted, corrected and extended by FIX94
|
|
|
|
*
|
|
|
|
* This software is provided 'as-is', without any express or implied
|
|
|
|
* warranty. In no event will the authors be held liable for any
|
|
|
|
* damages arising from the use of this software.
|
|
|
|
*
|
|
|
|
* Permission is granted to anyone to use this software for any
|
|
|
|
* purpose, including commercial applications, and to alter it and
|
|
|
|
* redistribute it freely, subject to the following restrictions:
|
|
|
|
*
|
|
|
|
* 1. The origin of this software must not be misrepresented; you
|
|
|
|
* must not claim that you wrote the original software. If you use
|
|
|
|
* this software in a product, an acknowledgment in the product
|
|
|
|
* documentation would be appreciated but is not required.
|
|
|
|
*
|
|
|
|
* 2. Altered source versions must be plainly marked as such, and
|
|
|
|
* must not be misrepresented as being the original software.
|
|
|
|
*
|
|
|
|
* 3. This notice may not be removed or altered from any source
|
|
|
|
* distribution.
|
|
|
|
***************************************************************************/
|
2012-10-14 19:18:13 +02:00
|
|
|
#include <gctypes.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
|
2012-09-28 19:24:04 +02:00
|
|
|
#include "cios.h"
|
2012-10-14 19:18:13 +02:00
|
|
|
#include "gecko.h"
|
2012-09-28 19:24:04 +02:00
|
|
|
|
2012-11-12 21:12:00 +01:00
|
|
|
bool Hermes_shadow_mload()
|
2012-09-28 19:24:04 +02:00
|
|
|
{
|
2012-11-12 21:12:00 +01:00
|
|
|
if(CurrentIOS.Revision >= 5 && CurrentIOS.SubRevision >= 1)
|
2012-09-28 19:24:04 +02:00
|
|
|
{
|
2012-10-14 19:18:13 +02:00
|
|
|
IOS_Open("/dev/mload/OFF",0); // shadow /dev/mload supported in hermes cios v5.1
|
|
|
|
gprintf("Shadow mload\n");
|
|
|
|
return true;
|
2012-09-28 19:24:04 +02:00
|
|
|
}
|
2012-10-14 19:18:13 +02:00
|
|
|
return false;
|
2012-09-28 19:24:04 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void Hermes_Disable_EHC()
|
|
|
|
{
|
2012-10-14 19:18:13 +02:00
|
|
|
IOS_Open("/dev/usb123/OFF", 0);// this disables ehc completely
|
|
|
|
gprintf("Hermes EHC Disabled\n");
|
2012-09-28 19:24:04 +02:00
|
|
|
}
|