Got The code... Cant compile it!

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Locked
nephron
Posts: 11
Joined: Sat Oct 06, 2007 7:31 am

Got The code... Cant compile it!

Post by nephron »

Ok, so me and a friend created a simple code to download a file and create the folder UPDATE as a prx. We just dont know how to compile it or if there are any errors. I was wondering if someone can help me convert this to a prx.
Last edited by nephron on Fri Oct 12, 2007 7:43 am, edited 1 time in total.
MaTiAz
Posts: 3
Joined: Fri Nov 17, 2006 6:05 am

Post by MaTiAz »

Wow. Just wow.

You're a member of a CFW team and you can't even compile your own code? (not that the code would even compile anyway...)
I guess AoP was just some project to get 15 minutes of internet fame :)
ufoz
Posts: 86
Joined: Thu Nov 10, 2005 2:36 am
Location: Tokyo
Contact:

Post by ufoz »

Is that... C#?

Wow. Just wow.
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

That's the sort of question that will get you mocked and ridiculed. It doesn't matter how "1337" you think you are in C#, if you don't undetstand the fundamentals. Don't ask! That's what old threads and sample code are for. If you can't pick up the easy stuff from examples and old threads, you aren't going to make it here. Now don't post again until you can answer this post on your own.
jas0nuk
Posts: 137
Joined: Thu Apr 27, 2006 8:00 am

Post by jas0nuk »

Interesting language you've invented there... It's blatently obvious that you've copypasta'd it (from here) without understanding any of it.
Last edited by jas0nuk on Fri Oct 12, 2007 3:01 am, edited 2 times in total.
PiCkDaT
Posts: 69
Joined: Thu Oct 04, 2007 9:49 pm

Post by PiCkDaT »

wow... C# or Java right? hey just a pointer cause no one has said it yet because this is so outrageous... C++ or C k?... grab the toolchain look up on the toolchain and cgywin and install all that stuff, check out the samples, learn how to use it...
Enlighten me, Reveal my fate -- Follow - Breaking Benjamin
crazyc
Posts: 408
Joined: Fri Jun 17, 2005 10:13 am

Post by crazyc »

jas0nuk wrote:Interesting language you've invented there... It's blatently obvious that you've copypasta'd it (from here) without understanding any of it.
Heh, cargo cult progamming.
jas0nuk
Posts: 137
Joined: Thu Apr 27, 2006 8:00 am

Post by jas0nuk »

crazyc wrote:
jas0nuk wrote:Interesting language you've invented there... It's blatently obvious that you've copypasta'd it (from here) without understanding any of it.
Heh, cargo cult progamming.
http://lolcode.com/ xD
PiCkDaT
Posts: 69
Joined: Thu Oct 04, 2007 9:49 pm

Post by PiCkDaT »

ohhh dear god... lolcode.com
HAI
CAN HAS STDIO?
I HAS A VAR
GIMMEH VAR
IZ VAR BIGGER THAN 10?
YARLY
BTW this is true
VISIBLE "BIG NUMBER!"
NOWAI
BTW this is false
VISIBLE "LITTLE NUMBER!"
KTHX
KTHXBYE
XD cracks me up ...
Enlighten me, Reveal my fate -- Follow - Breaking Benjamin
nephron
Posts: 11
Joined: Sat Oct 06, 2007 7:31 am

Post by nephron »

i dont make the codes on the team. I work with other stuff like rcos and hex editing prxs. I am just trying to learn so i am sorry if its that bad.
jas0nuk
Posts: 137
Joined: Thu Apr 27, 2006 8:00 am

Post by jas0nuk »

nephron wrote:i dont make the codes on the team. I work with other stuff like rcos and hex editing prxs. I am just trying to learn so i am sorry if its that bad.
RCOs are part of the VSH theme, you can't make a custom firmware out of themes.

Hex editing PRXs? That's gonna get you real far...

Funny that you removed the code.
cyanide
Posts: 7
Joined: Mon Sep 26, 2005 1:19 pm
Location: India

Post by cyanide »

bastard edited it out.

thank the internet, here's the code again.

Code: Select all

#include <pspkernel.h>
#include <pspctrl.h>
#include <stdio.h>
#include <string.h>
#include <pspmodulemgr.h>

PSP_MODULE_INFO&#40;"Test PRX", 0x1000, 1, 1&#41;;

int main&#40;int argc, char **argv&#41;
&#123;
	SceCtrlData pad;
	while&#40;1&#41;
	&#123;
		sceCtrlPeekBufferPositive&#40;&pad, 1&#41;;
		if&#40;pad.Buttons & PSP_CTRL_RTRIGGER&#41;
		&#123;
			if&#40;pad.Buttons & PSP_CTRL_TRIANGLE&#41;
			&#123;
				static void Main&#40;string "MS0&#58;\PSP\GAME\UPDATE" args&#41;
&#123;
   FileDownloader downloader = new FileDownloader&#40;&#41;;

  
   downloader.DownloadComplete +=
     new EventHandler&#40;downloader_DownloadedComplete&#41;;

  
   downloader.ProgressChanged +=
     new DownloadProgressHandler&#40;downloader_ProgressChanged&#41;;

  
   downloader.Download&#40;""www.teamaop.pcriot.com/", " +
     "?Updates/EBOOT.PBP"&#41;;
&#125;

static void downloader_ProgressChanged&#40;object sender, DownloadEventArgs e&#41;
&#123;
   
   Console.WriteLine&#40;"Progress " + e.PercentDone&#41;;
&#125;

static void downloader_DownloadedComplete&#40;object sender, EventArgs e&#41;
&#123;
   Console.WriteLine&#40;"Download complete."&#41;;
&#125;
			&#125;
		&#125;
	sceKernelDelayThread&#40;1000&#41;;
	&#125;
	return 0;
&#125;

/* Exported function returns the address of module_info */
void* getModuleInfo&#40;void&#41;
&#123;
	return &#40;void *&#41; &module_info;
&#125;
don't think you even know that the code you've copied from someone's sample is c# code. real winner.

eat shit and die liars.
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

Locked because I don't see this ending well.
Locked