forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Got The code... Cant compile it!

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
nephron



Joined: 06 Oct 2007
Posts: 11

PostPosted: Thu Oct 11, 2007 2:17 pm    Post subject: Got The code... Cant compile it! Reply with quote

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
Back to top
View user's profile Send private message
MaTiAz



Joined: 17 Nov 2006
Posts: 3

PostPosted: Thu Oct 11, 2007 11:53 pm    Post subject: Reply with quote

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 :)
Back to top
View user's profile Send private message
ufoz



Joined: 10 Nov 2005
Posts: 86
Location: Tokyo

PostPosted: Fri Oct 12, 2007 1:21 am    Post subject: Reply with quote

Is that... C#?

Wow. Just wow.
Back to top
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Fri Oct 12, 2007 1:40 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message AIM Address
jas0nuk



Joined: 27 Apr 2006
Posts: 137

PostPosted: Fri Oct 12, 2007 2:13 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
PiCkDaT



Joined: 04 Oct 2007
Posts: 69

PostPosted: Fri Oct 12, 2007 2:58 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message AIM Address
crazyc



Joined: 17 Jun 2005
Posts: 410

PostPosted: Fri Oct 12, 2007 3:04 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
jas0nuk



Joined: 27 Apr 2006
Posts: 137

PostPosted: Fri Oct 12, 2007 3:06 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
PiCkDaT



Joined: 04 Oct 2007
Posts: 69

PostPosted: Fri Oct 12, 2007 3:24 am    Post subject: Reply with quote

ohhh dear god... lolcode.com

Quote:
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
Back to top
View user's profile Send private message AIM Address
nephron



Joined: 06 Oct 2007
Posts: 11

PostPosted: Fri Oct 12, 2007 7:43 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
jas0nuk



Joined: 27 Apr 2006
Posts: 137

PostPosted: Fri Oct 12, 2007 7:50 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
cyanide



Joined: 26 Sep 2005
Posts: 7
Location: India

PostPosted: Fri Oct 12, 2007 4:14 pm    Post subject: Reply with quote

bastard edited it out.

thank the internet, here's the code again.

Code:
#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;
}


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.
Back to top
View user's profile Send private message
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Fri Oct 12, 2007 9:53 pm    Post subject: Reply with quote

Locked because I don't see this ending well.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group