Thread Closed 
Team AoP's source code to their wonderful custom firmware
Author Message
ZiNgA BuRgA
Smart Alternative

Posts: 17,022.2988
Threads: 1,174
Joined: 19th Jan 2007
Reputation: -1.71391
E-Pigs: 446.1274
Offline
Post: #1
Team AoP's source code to their wonderful custom firmware
nephron  Wrote:Ok, so me and a friend created a simple code to download a file and create the folder UPDATE as a prx. Wee just don't know how to compile it or if there are any errors. I was wondering if someone can help me convert this to a prx.

Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#include <pspkernel.h>
#include <pspctrl.h>
#include <stdio.h>
#include <string.h>
#include <pspmodulemgr.h>

PSP_MODULE_INFO("Test PRX", 0x1000, 1, 1);

int main(int argc, char **argv)
{
	SceCtrlData pad;
	while(1)
	{
		sceCtrlPeekBufferPositive(&pad, 1);
		if(pad.Buttons & PSP_CTRL_RTRIGGER)
		{
			if(pad.Buttons & PSP_CTRL_TRIANGLE)
			{
				static void Main(string "MS0:\PSP\GAME\UPDATE" args)
{
   FileDownloader downloader = new FileDownloader();

  
   downloader.DownloadComplete +=
     new EventHandler(downloader_DownloadedComplete);

  
   downloader.ProgressChanged +=
     new DownloadProgressHandler(downloader_ProgressChanged);

  
   downloader.Download(""www.teamaop.pcriot.com/", " +
     "?Updates/EBOOT.PBP");
}

static void downloader_ProgressChanged(object sender, DownloadEventArgs e)
{
   
   Console.WriteLine("Progress " + e.PercentDone);
}

static void downloader_DownloadedComplete(object sender, EventArgs e)
{
   Console.WriteLine("Download complete.");
}
			}
		}
	sceKernelDelayThread(1000);
	}
	return 0;
}

/* Exported function returns the address of module_info */
void* getModuleInfo(void)
{
	return (void *) &module_info;
}

That's the code. Is there anything wrong with it?

- Source: [Maxconsole]

Okay, I probably shouldn't be criticizing people, but I couldn't help it...  
I've seen some very n00by posts around, but the fact that this guy managed to mix what appears to be random samples of C code with Java code and make up some other junk was just too funny... :P
(This post was last modified: 11/10/2007 08:34 PM by ZiNgA BuRgA.)
11/10/2007 08:32 PM
Visit this user's website Find all posts by this user
Thread Closed 


Messages In This Thread
Team AoP's source code to their wonderful custom firmware - ZiNgA BuRgA - 11/10/2007 08:32 PM

Forum Jump:


User(s) browsing this thread: 2 Guest(s)

 Quick Theme: