*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:
dimok321 2010-02-27 20:08:47 +00:00
parent eb052a0fe9
commit 52a44ef10f
4 changed files with 57 additions and 59 deletions

View File

@ -2,8 +2,8 @@
<app version="1"> <app version="1">
<name> USB Loader GX</name> <name> USB Loader GX</name>
<coder>USB Loader GX Team</coder> <coder>USB Loader GX Team</coder>
<version>1.0 r916</version> <version>1.0 r919</version>
<release_date>201002251225</release_date> <release_date>201002271854</release_date>
<short_description>Loads games from USB-devices</short_description> <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. <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. The interactive GUI is completely controllable with WiiMote, Classic Controller or GC Controller.

View File

@ -110,14 +110,19 @@ void app_loadgameconfig(char *discid)
//tempgameconfsize = defaultgameconfig_size + 1; //tempgameconfsize = defaultgameconfig_size + 1;
char filepath[200]; char filepath[200];
snprintf(filepath, "%s/gameconfig.txt", Settings.Cheatcodespath); snprintf(filepath, sizeof(filepath), "%s/gameconfig.txt", Settings.Cheatcodespath);
fp = fopen(filepath, "rb"); fp = fopen(filepath, "rb");
if (!fp) if (!fp)
{ {
snprintf(filepath, "%s/gameconfig.txt", bootDevice); snprintf(filepath, sizeof(filepath), "SD:/gameconfig.txt");
fp = fopen(filepath, "rb"); fp = fopen(filepath, "rb");
if(!fp)
{
snprintf(filepath, sizeof(filepath), "USB:/gameconfig.txt");
fp = fopen(filepath, "rb");
}
} }
if (fp) { if (fp) {

View File

@ -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 <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>

View File

@ -282,9 +282,7 @@ s32 USBStorage2_WriteSectors(u32 sector, u32 numSectors, const void *buffer)
static bool __usbstorage_Startup(void) static bool __usbstorage_Startup(void)
{ {
return USBStorage2_Init()==0;
return USBStorage2_Init()==0;
} }
static bool __usbstorage_IsInserted(void) static bool __usbstorage_IsInserted(void)
@ -340,20 +338,6 @@ const DISC_INTERFACE __io_usbstorage2 = {
(FN_MEDIUM_SHUTDOWN)&__usbstorage_Shutdown (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) bool __io_usb_ReadSectors(u32 sector, u32 count, void *buffer)
{ {
s32 ret = USBStorage2_ReadSectors(sector, count, 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; 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) static bool __io_usb_NOP(void)
{ {
// do nothing // do nothing