Homebrew postLoader4

daxtsu

Well-Known Member
Member
Joined
Jun 9, 2007
Messages
5,627
Trophies
2
XP
5,194
Country
Antarctica
I made another minor addition to Postloader. I added in support for Parental Controls on hidden homebrew apps, games, channels, and emulators. I mean..if you want to hide that stuff, it should be locked as well, so the kids can't get into them, right?

Code:
Index: browserApps.c
===================================================================
--- browserApps.c	(revision 99)
+++ browserApps.c	(working copy)
@@ -22,7 +22,7 @@
#define INC_Y ICONH+25

#define AT_HBA 1
-#define AT_FOLDER 2
+#define AT_FOLDER 2
#define AT_FOLDERUP 3 // This is to clear subfolder...

/*
@@ -52,7 +52,7 @@

static u16 sortMode = 0;

-static int browserRet = 0;
+static int browserRet = 0;
static int showHidden = 0;
static int disableSpots;

@@ -871,6 +871,7 @@

if (item == 4)
{
+		if(!CheckParental()) return;
showHidden = 1 - showHidden;
AppsBrowse ();
}
@@ -934,7 +935,7 @@
static void ShowMainMenu (void)
{
char buff[512];
-	
+	
spotSelected = -1;

buff[0] = '\0';
@@ -1391,7 +1392,7 @@
//memset (&apps, 0, sizeof (apps));
apps = calloc (APPSMAX, sizeof(s_app));

-	subpath[0] = '\0';
+	subpath[0] = '\0';
submount[0] = '\0';
config.run.enabled = 0;

Index: browserChans.c
===================================================================
--- browserChans.c	(revision 99)
+++ browserChans.c	(working copy)
@@ -45,7 +45,7 @@
static bool redrawIcons = true;

static s_grlib_iconSetting is;
-
+
static void Redraw (void);
static int ChnBrowse (void);

@@ -670,7 +670,7 @@

// Update configuration
ReadTitleConfig (chansCnt);
-			
+			
if (chansCnt % 20 == 0) Video_WaitPanel (TEX_HGL, "Please wait...|Loading channels configuration");

chans[chansCnt].png = NULL;
@@ -1231,12 +1231,14 @@

if (item == 7)
{
+		if(!CheckParental()) return;
showHidden = 0;
AppsSort ();
}

if (item == 8)
{
+		if(!CheckParental()) return;
showHidden = 1;
AppsSort ();
}
@@ -1534,7 +1536,7 @@
if (mag >= 2.7 && ico.x == 320 && ico.y == y) break;
}

-	vars.useChannelCompatibleMode = 0;
+	vars.useChannelCompatibleMode = 0;

int fr = grlibSettings.fontReverse;
u32 btn;
Index: browserEmu.c
===================================================================
--- browserEmu.c	(revision 99)
+++ browserEmu.c	(working copy)
@@ -888,12 +888,14 @@

if (item == 6)
{
+		if(!CheckParental()) return;
showHidden = 0;
AppsSort ();
}

if (item == 7)
{
+		if(!CheckParental()) return;
showHidden = 1;
AppsSort ();
}
Index: browserGames.c
===================================================================
--- browserGames.c	(revision 99)
+++ browserGames.c	(working copy)
@@ -1292,6 +1292,7 @@

if (item == 10)
{
+		if(!CheckParental()) return;
showHidden = 0;
AppsSort ();
FeedCoverCache ();
@@ -1300,6 +1301,7 @@

if (item == 11)
{
+		if(!CheckParental()) return;
showHidden = 1;
AppsSort ();
FeedCoverCache ();

Aside from that, b29 appears to be working quite a treat. Thanks as always.
 

stfour

Well-Known Member
OP
Member
Joined
May 24, 2011
Messages
1,592
Trophies
0
XP
350
Country
Italy
Maybe this is the last beta...

postLoader 4.b30

* solved some issue with fonts
* now fonts have correct proportions
* smoother wiimote ir pointer movement during page tranitions
* now focus over icons can be gained even when botombar and topbar are opening/closing
* moved and reduced in size the text for emulators icon.
* new emu icons for roms without cover, with the space for the text
* new small font for emu icon text and filter selection. Let me know if it is readable.
* added in support for Parental Controls on hidden homebrew apps, games, channels, and emulators (thx daxtsu)
* chenged the way usb is mounted in (s/n)neek(2o)
* corrected daxsu to daxtsu :P ;)

@GartimusPrime, give a try to this version, maybe works better for your hdd under neek
 
  • Like
Reactions: 3 people

daxtsu

Well-Known Member
Member
Joined
Jun 9, 2007
Messages
5,627
Trophies
2
XP
5,194
Country
Antarctica
The new fonts look great, stfour. It's nice and clear on every page/category. Seems like this might be the next release candidate build? :P
 

gl1mml1ng

Well-Known Member
Member
Joined
Jun 26, 2012
Messages
112
Trophies
1
Website
tuetenmensch.blogspot.com
XP
434
Country
Gambia, The
Thanks for your hard work, stfour. I'm waiting for the final release :)

I have some small feature requests, which could be possibly usefull for the other users of this great homebrew too.

Custom quicklaunch shortcuts
In PL4 are the two new shortcuts 'Settings Editor Gui' & 'Wiimod' availble. I and maybe others do not activeliy use this 2 homebrews.
My idea is not to hardcode this two paths in the postloader boot.dol. Instead we could use a file 'quicklaunch.conf' in the ploader directory, where the user can define his one or two favourite homebrews with an icon.

example:

Code:
[quicklaunch_1]
name=WiiXplorer
path=/apps/wiixplorer/boot.dol
icon=

[quicklaunch_2]
.
.

My second idea is the ability to choose multiple nands for the channels page.

Code:
Nand Sources:

[x] real nand
[ ] nand_a
[x] nand_b
.
.

I don't know, if this propably won't work. Maybe it' only a stupid idea ;-)

Another thing.
I compiled the latest sources with the quicklaunch shortcuts for WiiXplorer (I use it very often) and WiiMC just for my needs. Furthermore Ihave replaced some images/icons in the sources, adapted the theme and made some icons for the emulator page.
All in all I reduced the look to be more simple and flat (it's ANdroid ICS inspired). I made some screenshots in dolphin, if someone is interested:

0000000100000002-3.png


0000000100000002-4.png


0000000100000002-5.png


0000000100000002-8.png


0000000100000002-9.png


Greetings! ...and sorry for my English.
 
  • Like
Reactions: 2 people

GartimusPrime

Well-Known Member
Member
Joined
Jul 3, 2011
Messages
271
Trophies
0
Age
43
Location
Ellsworth, Maine
XP
150
Country
United States
Thanks for your hard work, stfour. I'm waiting for the final release :)

I have some small feature requests, which could be possibly usefull for the other users of this great homebrew too.

Custom quicklaunch shortcuts
In PL4 are the two new shortcuts 'Settings Editor Gui' & 'Wiimod' availble. I and maybe others do not activeliy use this 2 homebrews.
My idea is not to hardcode this two paths in the postloader boot.dol. Instead we could use a file 'quicklaunch.conf' in the ploader directory, where the user can define his one or two favourite homebrews with an icon.

example:

Code:
[quicklaunch_1]
name=WiiXplorer
path=/apps/wiixplorer/boot.dol
icon=

[quicklaunch_2]
.
.

My second idea is the ability to choose multiple nands for the channels page.

Code:
Nand Sources:

[x] real nand
[ ] nand_a
[x] nand_b
.
.

I don't know, if this propably won't work. Maybe it' only a stupid idea ;-)

Another thing.
I compiled the latest sources with the quicklaunch shortcuts for WiiXplorer (I use it very often) and WiiMC just for my needs. Furthermore Ihave replaced some images/icons in the sources, adapted the theme and made some icons for the emulator page.
All in all I reduced the look to be more simple and flat (it's ANdroid ICS inspired). I made some screenshots in dolphin, if someone is interested:

0000000100000002-3.png


0000000100000002-4.png


0000000100000002-5.png


0000000100000002-8.png


0000000100000002-9.png


Greetings! ...and sorry for my English.

I want this theme....it is awesome!!


 
  • Like
Reactions: 1 person

daxtsu

Well-Known Member
Member
Joined
Jun 9, 2007
Messages
5,627
Trophies
2
XP
5,194
Country
Antarctica
I'm attempting to add GC retail disk launching support to Postloader(via the Run Disc icon). I'll report back if I have any luck. So far I get the dios mios screen and it hangs, presumably because I'm not passing it a config struct that tells it to run off the DVD. Hopefully I can figure out how that works.

Edit 1: I got it working with regular MIOS from Nintendo. Now to figure out how to give stfour's di code a struct I can copy for DIOS-MIOS...
Edit 2: I now have Postloader looking for di.dol in /apps/postloader to have the launcher code be seperate from Postloader. I still need to copy the DM struct into RAM as if I were going to launch DM, but I'll examine the code for that shortly. Where does postloader usually look for di.dol, stfour?
 

stfour

Well-Known Member
OP
Member
Joined
May 24, 2011
Messages
1,592
Trophies
0
XP
350
Country
Italy
Also stfour....neek for me still doesnt like PL. I have no idea what I am doing wrong or if it is just an issue on my end. Also, would it ever be possible, like wiiflow and gx, could pl read seperate partitions on one hdd?

I don't think the problem is in postloader side... have you tryed other homebrew with usb access in neek2o ? Maybe overjoy has changed something and obcd's uneek_fs library doesn't works more...

What version of neek2o are you using ?
 

stfour

Well-Known Member
OP
Member
Joined
May 24, 2011
Messages
1,592
Trophies
0
XP
350
Country
Italy
di.dol is embedded in postloader, see disc.c.... but I think you need just this to boot GC disc (untested)

Code:
int DMLRunDisc (void)
{
DML_CFG cfg;

memset (&cfg, 0, sizeof (DML_CFG));

cfg.Config |= DML_CFG_BOOT_DISC;

Shutdown (0);
cfg.Magicbytes = 0xD1050CF6;
cfg.CfgVersion = 0x00000001;

//Write options into memory
memcpy((void *)0x80001700, &cfg, sizeof(DML_CFG));
DCFlushRange((void *)(0x80001700), sizeof(DML_CFG));
//DML v1.2+
memcpy((void *)0x81200000, &cfg, sizeof(DML_CFG));
DCFlushRange((void *)(0x81200000), sizeof(DML_CFG));
/* Boot BC */
WII_Initialize();
return WII_LaunchTitle(0x100000100LL);
}
 

daxtsu

Well-Known Member
Member
Joined
Jun 9, 2007
Messages
5,627
Trophies
2
XP
5,194
Country
Antarctica
That code just reboots the Wii back to Priiloader(and priibooter). I'm not sure why.

Edit: It reboots when I have a normal Nintendo MIOS installed, and DIOS MIOS still hangs.

Code:
DIOS-MIOS v2.0b
Built: Jun 30 2012 23:59:30
This software is licensed under GPLv3, for more details visit:
http://code.google.com/p/diosmios
DIP:f_mount():0
EHCI:port 0 has usb2 device connected! reset it...
EHCI:port 0 reseted status:1005...
EHCI:device 1: BC2 2101...
ehci_discover():0
udd.bNumConfigurations:1
00000081:00000081
00000002:00000002
00000001:00000001
00000000:00000000
00000000:00000000
DIP: Drive size: 114473MB SectorSize:512
Config:00000400
GCLoader
Built   : Jun 30 2012 06:40:17
Version : 0.5
VI:TVNtsc480Prog
Using config from RAM
Booting disc
MenuMode:1
AppLoader Size:0001C2D4
Apploader Entry:81200268
Apploader Init: 81200290
Apploader Main: 81200514
Apploader Final:81200ce4
Apploader Initialized.  $Revision: 27 $.
This Apploader built Nov 14 2001 02:04:39
Game:RunGame->dvd_read( 0x0x812013a0, 00000020, 00000420)
Game:RunGame->dvd_read( 0x0x812014e0, 00000020, 00000440)
Game:RunGame->dvd_read( 0x0x817f6ac0, 00002000, 00000440)
Game:RunGame->dvd_read( 0x0x812013c0, 00000100, 0001e800)
Game:RunGame->dvd_read( 0x0x80003100, 00002420, 0001e900)
Game:RunGame->dvd_read( 0x0x80005940, 003b1900, 00020d20)
Patch:Found VI pattern:8034F830
Patch:Found [PADRead A]: 0x8034DA00

1. The weird thing is that I was able to get retail disks to boot when I modified the seperate di code and ran that DOL with a Nintendo MIOS, but when I run a Nintendo MIOS with postloader, it just reboots..
Edit: Yeah, it's definitely related to copying that DML struct into memory, or postloader's embedded di.dol code. It must corrupt something that the Nintendo MIOS needs in order to run properly. If I boot the game from the seperate di.dol code, it boots a game beautifully.

2. It appears that DM hanging isn't related to Postloader, since It also hangs from the System Menu Disk Channel, and Fix94's DM Booter. Something got borked in Dios Mios, it looks like, relating to running real disks.
Edit: Yep, it's Dios Mios' problem with the hanging. I went back to an earlier WAD I had of DM 2.X and suddenly retail disks began booting again. So that solves this portion.

That still leaves #1, though. Something funky is going on with how Postloader boots its disks. It reboots both DM(if I don't directly boot the title 0x00000101) -and- the Nintendo MIOS(even if it's directly booted).
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    OctoAori20 @ OctoAori20: Nice nice-