I've just updated the PL4 masterpiece addon pack with the wads folder needed for the on the fly mios stfour, any news about direct neek2o launching method (without using the neekbooter)?
I've just updated the PL4 masterpiece addon pack with the wads folder needed for the on the fly mios stfour, any news about direct neek2o launching method (without using the neekbooter)?
--- channels.c.old2013-07-02 21:41:18.942508207 -0400
+++ channels.c2013-07-02 21:38:00.178497837 -0400
@@ -293,87 +293,38 @@
// to identify title we should look of 0x00 0x00 0x00 0x00 0x00 [Printable char]
static char *find_title_name (u8 *buff, int buffsize)
{
-char printable[] = "1234567890QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm ";
-char pattern[] = {'\0', '\0', '\0', '\0', '\0', '\0'};
-
-int printableLen = sizeof(printable);
-int patternLen = sizeof(pattern);
-int pid = patternLen-1;
-
-char *outbuff;
-char tempbuff[256];
-
-char *p, *eob;
-
-int start, j;
+char *p, *outbuff;
+u8 *endbuff = buff + buffsize;
+
+int i, pos = 0;
p = (char*)ms_FindStringInBuffer (buff, buffsize, "IMET");
if (!p) return NULL;
-
-start = (u8*)p - buff;
-
-p = (char*)buff+start;
-eob = (char *) ((buff+buffsize) - (patternLen+2));
-
-while (p < eob)
-{
-for (j = 0; j < printableLen; j++)
-{
-if (printable[j])
-pattern[pid] = printable[j];
-
-if (memcmp(p, pattern, patternLen) == 0)
-{
-int pos, err;
-
-// We have found something valid
-memset (tempbuff, 0, sizeof(tempbuff));
-
-p += patternLen-1;
-pos = 0;
-err = -10;
-
-while (p < eob)
-{
-if (*p == '\0' && *(p+1) == '\0')
-{
-err = 0;
-break;
-}
-if (*p < 32)
-{
-err = -1;
-break;
-}
-if (*(p+1) != '\0')
-{
-err = -2;
-break;
-}
-if (pos >= 255)
-{
-err = -3;
-break;
-}
-tempbuff[pos] = *p;
-p += 2;
-pos++;
-}
-if (pos > 3 && err == 0)
-{
-outbuff = malloc (pos + 16);
-
-if (outbuff)
-strcpy (outbuff, tempbuff);
-
-return outbuff;
-}
-}
-}
-p++;
-}
-
-return NULL;
+
+ //Jump to english title (from IMET struct in usbloader-gui's nandtitle.h)
+p += 0x71;
+
+outbuff = malloc(0x2b);
+
+ // 0x2a is max IMET title size
+while (pos < 0x2a && (int) p < (int) endbuff)
+{
+if (*p == '\0')
+break;
+if (*p >= 32 && *p <= 127)
+outbuff[pos] = *p;
+ else
+outbuff[pos] = '_';
+
+pos++;
+p += 2;
+}
+
+// Null terminate title
+outbuff[pos] = '\0';
+
+return outbuff;
+
}
char *read_name_from_banner_app(u64 titleid, char *nandmountpoint)
@@ -504,10 +455,10 @@
low = TITLE_LOWER(titleid);
-temp = read_name_from_banner_bin(titleid, nandmountpoint);
+temp = read_name_from_banner_app(titleid, nandmountpoint);
if (temp == NULL)
{
-temp = read_name_from_banner_app(titleid, nandmountpoint);
+temp = read_name_from_banner_bin(titleid, nandmountpoint);
}
if (temp != NULL)
So, a problem that's been bothering me a long time was that some nand games have the wrong title (*cough*Mega Man 9*cough*). Seeing as how usbloader gx did it* makes it clear that's a structure to IMET and it's actually rather easy to pull out the english title. Further, it seems necessary to try pulling out of banner apps before banner bins as otherwise you'll just get the garbled result out of a .bin file. :/ Anyways, here's a patch I did which seems to work:
Code:--- channels.c.old2013-07-02 21:41:18.942508207 -0400 +++ channels.c2013-07-02 21:38:00.178497837 -0400 @@ -293,87 +293,38 @@ // to identify title we should look of 0x00 0x00 0x00 0x00 0x00 [Printable char] static char *find_title_name (u8 *buff, int buffsize) { -char printable[] = "1234567890QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm "; -char pattern[] = {'\0', '\0', '\0', '\0', '\0', '\0'}; - -int printableLen = sizeof(printable); -int patternLen = sizeof(pattern); -int pid = patternLen-1; - -char *outbuff; -char tempbuff[256]; - -char *p, *eob; - -int start, j; +char *p, *outbuff; +u8 *endbuff = buff + buffsize; + +int i, pos = 0; p = (char*)ms_FindStringInBuffer (buff, buffsize, "IMET"); if (!p) return NULL; - -start = (u8*)p - buff; - -p = (char*)buff+start; -eob = (char *) ((buff+buffsize) - (patternLen+2)); - -while (p < eob) -{ -for (j = 0; j < printableLen; j++) -{ -if (printable[j]) -pattern[pid] = printable[j]; - -if (memcmp(p, pattern, patternLen) == 0) -{ -int pos, err; - -// We have found something valid -memset (tempbuff, 0, sizeof(tempbuff)); - -p += patternLen-1; -pos = 0; -err = -10; - -while (p < eob) -{ -if (*p == '\0' && *(p+1) == '\0') -{ -err = 0; -break; -} -if (*p < 32) -{ -err = -1; -break; -} -if (*(p+1) != '\0') -{ -err = -2; -break; -} -if (pos >= 255) -{ -err = -3; -break; -} -tempbuff[pos] = *p; -p += 2; -pos++; -} -if (pos > 3 && err == 0) -{ -outbuff = malloc (pos + 16); - -if (outbuff) -strcpy (outbuff, tempbuff); - -return outbuff; -} -} -} -p++; -} - -return NULL; + + //Jump to english title (from IMET struct in usbloader-gui's nandtitle.h) +p += 0x71; + +outbuff = malloc(0x2b); + + // 0x2a is max IMET title size +while (pos < 0x2a && (int) p < (int) endbuff) +{ +if (*p == '\0') +break; +if (*p >= 32 && *p <= 127) +outbuff[pos] = *p; + else +outbuff[pos] = '_'; + +pos++; +p += 2; +} + +// Null terminate title +outbuff[pos] = '\0'; + +return outbuff; + } char *read_name_from_banner_app(u64 titleid, char *nandmountpoint) @@ -504,10 +455,10 @@ low = TITLE_LOWER(titleid); -temp = read_name_from_banner_bin(titleid, nandmountpoint); +temp = read_name_from_banner_app(titleid, nandmountpoint); if (temp == NULL) { -temp = read_name_from_banner_app(titleid, nandmountpoint); +temp = read_name_from_banner_bin(titleid, nandmountpoint); } if (temp != NULL)
*PS - I noticed that usbloader gui is GPL v3 and postloader is GPL v2. But, the whole Goggle/Oracle, Linux/SCO, BSD/AT&T thing would indicate the indicated information in the header files providing interoperating information on an ABI is probably not copyrighted. This is just a CYOA note.


NTFS sucks for Wii HDD's.Hey i just saw you uploaded 4.4.14t1 on google code 6, count it 6 days ago! Woah, what's going on there?
Something about mounting Fat32 Partitions, does it mount NTFS partitions toolol

and whatever happened to the wiimod lite icon buddy hmm..?? 
I found out you use NTFS and I deleted it. I don't help your kind.whatever happened to the wiimod lite icon buddy hmm..??![]()
Hey i just saw you uploaded 4.4.14t1 on google code 6, count it 6 days ago! Woah, what's going on there?
Something about mounting Fat32 Partitions, does it mount NTFS partitions toolol



Here's one for ya: https://www.dropbox.com/s/3k35yk26ay12ynr/Postloader Channel Silver v5.15 for vWii - POST.wadAbz any chance you can get around to making your PL4 Silver channel for vWii as well? I'm currently migrating as much of my setup as possible to be compatible with my vWii. I usually make channels with customizemii with no fear, but unfortunately since there is no brick protection even from banner bricks I feel less inclined to try my luck @ making vWii channels.



Can you please try this fixed wad: https://www.dropbox.com/s/3k35yk26ay12ynr/Postloader Channel Silver v5.15 for vWii - POST.wadI trust your methods bro.. and... no just got a blackscreen for now,also the channel had no sound, scratch that sound is fine and all the graphic goodness was there, now just functionality to follow.
I'm going to do a couple of things to see if I can get it to work, but tried a couple of times and nothing yet. My postloader app and configuration files are all on SD, I doubt it, but this isn't looking for postLoader on USB only is it?

Worked like a charm this time bud, thanks again, all is well in the PL4 forwarding world for the vWii.Can you please try this fixed wad: https://www.dropbox.com/s/3k35yk26ay12ynr/Postloader Channel Silver v5.15 for vWii - POST.wad




