mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-25 20:56:53 +01:00
*Added back license that was removed by mistake
*Fixed bug i added right before commit for Brawl+ *Some compile warnings removed
This commit is contained in:
parent
eb052a0fe9
commit
52a44ef10f
@ -2,8 +2,8 @@
|
||||
<app version="1">
|
||||
<name> USB Loader GX</name>
|
||||
<coder>USB Loader GX Team</coder>
|
||||
<version>1.0 r916</version>
|
||||
<release_date>201002251225</release_date>
|
||||
<version>1.0 r919</version>
|
||||
<release_date>201002271854</release_date>
|
||||
<short_description>Loads games from USB-devices</short_description>
|
||||
<long_description>USB Loader GX is a libwiigui based USB iso loader with a wii-like GUI. You can install games to your HDDs and boot them with shorter loading times.
|
||||
The interactive GUI is completely controllable with WiiMote, Classic Controller or GC Controller.
|
||||
|
@ -110,14 +110,19 @@ void app_loadgameconfig(char *discid)
|
||||
//tempgameconfsize = defaultgameconfig_size + 1;
|
||||
|
||||
char filepath[200];
|
||||
snprintf(filepath, "%s/gameconfig.txt", Settings.Cheatcodespath);
|
||||
snprintf(filepath, sizeof(filepath), "%s/gameconfig.txt", Settings.Cheatcodespath);
|
||||
|
||||
fp = fopen(filepath, "rb");
|
||||
|
||||
if (!fp)
|
||||
{
|
||||
snprintf(filepath, "%s/gameconfig.txt", bootDevice);
|
||||
snprintf(filepath, sizeof(filepath), "SD:/gameconfig.txt");
|
||||
fp = fopen(filepath, "rb");
|
||||
if(!fp)
|
||||
{
|
||||
snprintf(filepath, sizeof(filepath), "USB:/gameconfig.txt");
|
||||
fp = fopen(filepath, "rb");
|
||||
}
|
||||
}
|
||||
|
||||
if (fp) {
|
||||
|
@ -1,3 +1,23 @@
|
||||
/*
|
||||
* Copyright (C) 2008 Nuke (wiinuke@gmail.com)
|
||||
*
|
||||
* this file is part of GeckoOS for USB Gecko
|
||||
* http://www.usbgecko.com
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
@ -282,8 +282,6 @@ s32 USBStorage2_WriteSectors(u32 sector, u32 numSectors, const void *buffer)
|
||||
|
||||
static bool __usbstorage_Startup(void)
|
||||
{
|
||||
|
||||
|
||||
return USBStorage2_Init()==0;
|
||||
}
|
||||
|
||||
@ -340,20 +338,6 @@ const DISC_INTERFACE __io_usbstorage2 = {
|
||||
(FN_MEDIUM_SHUTDOWN)&__usbstorage_Shutdown
|
||||
};
|
||||
|
||||
static bool __io_usb_Startup(void)
|
||||
{
|
||||
return USBStorage2_Init() >= 0;
|
||||
}
|
||||
|
||||
static bool __io_usb_IsInserted(void)
|
||||
{
|
||||
s32 ret;
|
||||
if (fd < 0) return false;
|
||||
ret = USBStorage2_GetCapacity(NULL);
|
||||
if (ret == 0) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool __io_usb_ReadSectors(u32 sector, u32 count, void *buffer)
|
||||
{
|
||||
s32 ret = USBStorage2_ReadSectors(sector, count, buffer);
|
||||
@ -366,17 +350,6 @@ bool __io_usb_WriteSectors(u32 sector, u32 count, void *buffer)
|
||||
return ret > 0;
|
||||
}
|
||||
|
||||
static bool __io_usb_ClearStatus(void)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool __io_usb_Shutdown(void)
|
||||
{
|
||||
// do nothing
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool __io_usb_NOP(void)
|
||||
{
|
||||
// do nothing
|
||||
|
Loading…
Reference in New Issue
Block a user