mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-12-18 16:01:58 +01:00
*Fixed some issues
*Added 16:9 forwarder *Changed video mode change behaviour *Added new GameSetting "Online fix" NOTE: Online fix is ONLY needed if you initialize network inside the loader and start an Online Game and ONLY if your boot cios is the same as GameSettings IOS (which is default). That Game would need an IOS Reload before start to be able to play it online BUT this IOS Reload mostly causes Blackscreens. I made this option so you dont have to avoid initializing network. If you have different boot IOS than gamesettings IOS this fix doesnt matter too.
This commit is contained in:
parent
70d8b4f4a4
commit
02d53a5e09
@ -14,4 +14,7 @@
|
||||
extern const u8 background_png[];
|
||||
extern const u32 background_png_size;
|
||||
|
||||
extern const u8 background169_png[];
|
||||
extern const u32 background169_png_size;
|
||||
|
||||
#endif
|
||||
|
BIN
source/images/background169.png
Normal file
BIN
source/images/background169.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 113 KiB |
@ -53,9 +53,15 @@ u8 * GetImageData(void) {
|
||||
|
||||
int ret;
|
||||
|
||||
ctx = PNGU_SelectImageFromBuffer(background_png);
|
||||
if (!ctx)
|
||||
return NULL;
|
||||
if (CONF_GetAspectRatio()) {
|
||||
ctx = PNGU_SelectImageFromBuffer(background169_png);
|
||||
if (!ctx)
|
||||
return NULL;
|
||||
} else {
|
||||
ctx = PNGU_SelectImageFromBuffer(background_png);
|
||||
if (!ctx)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
ret = PNGU_GetImageProperties(ctx, &imgProp);
|
||||
if (ret != PNGU_OK)
|
||||
@ -80,7 +86,7 @@ void Background_Show(int x, int y, int z, u8 * data, int angle, int scaleX, int
|
||||
}
|
||||
|
||||
|
||||
int main(int argc, char **argv)
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
u32 cookie;
|
||||
FILE *exeFile = NULL;
|
||||
@ -103,7 +109,7 @@ int main(int argc, char **argv)
|
||||
SDCard_Init();
|
||||
USBDevice_Init();
|
||||
char cfgpath[256];
|
||||
|
||||
|
||||
sprintf(cfgpath, "SD:/config/GXGlobal.cfg");
|
||||
if(!cfg_parsefile(cfgpath, &cfg_set)) //no cfg-File on SD: try USB:
|
||||
{
|
||||
@ -157,7 +163,7 @@ int main(int argc, char **argv)
|
||||
SYS_ResetSystem(SYS_RETURNTOMENU, 0, 0);
|
||||
}
|
||||
fclose (exeFile);
|
||||
|
||||
|
||||
/* load entry point */
|
||||
struct __argv args;
|
||||
bzero(&args, sizeof(args));
|
||||
|
Loading…
Reference in New Issue
Block a user