A simple source code compile request

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

Moderators: cheriff, TyRaNiD

Post Reply
Rploesser
Posts: 3
Joined: Fri Sep 30, 2005 4:44 pm

A simple source code compile request

Post by Rploesser »

Hello I have a little request if someone doesn't mind helping me with this. I have a small frustration when using homebrew apps on my psp. For some reason everybody that makes them codes them with the X and O buttons reversed from what normal US playstation and psp games use. IE on an actual psp game pressing X selects/executes an option, and O back the user out. However say in NestorJ the NES emulator this is the opposite. Pressing X backs out and pressing O selects. This has become frustrating. when you have to press X to start the emulator and then switch your thought proccess to pressing O to select once the Emu is started. I do know enough that I found the configuration file (NES_PAD.H)in the NestorJ source code that NestorJ uses to set which buttons operate which functions.

NES_A = 0x01,
NES_B = 0x02,
NES_SELECT = 0x04, // PLAYER2 MIC
NES_START = 0x08,
NES_UP = 0x10,
NES_DOWN = 0x20,
NES_LEFT = 0x40,
NES_RIGHT = 0x80

If my Assumptions are correct Switching the values for the lines NES_A
NES_B (switch 1 to 2 and 2 to 1)should switch the X and O buttons so that they react the same as a us psp.

I am nowhere near being a programmer nor do I understand how to use the psp sdk. if there is someone who can make this change and compile the emulator so that I can see if this works. If it does work I would like to convert all my Emulators like this as these backwards buttons drive me up the wall. I thanks all who might lend there help and time

Thanks
Rploesser
Heran_Bago
Posts: 7
Joined: Sat Sep 17, 2005 1:19 pm

Post by Heran_Bago »

PSPSDK cannot just compile anything for the PSP. NesterJ is an example, it uses a different compiler and the normal PSPSDK won't do the trick. It's likely that modified PS2 one.
For example, PSPSDK doesn't recognize the ee-gcc comand.
Rploesser
Posts: 3
Joined: Fri Sep 30, 2005 4:44 pm

Thanks for your info on this issue

Post by Rploesser »

Do you possibly know what compiler nestorj uses, or where I can find out that info? Although this seems like a very minor issue. It bugs me alot and I would love to be able to make this change and recompile nestorj.

Thanks
Rploesser
User avatar
groepaz
Posts: 305
Joined: Thu Sep 01, 2005 7:44 am
Contact:

Post by groepaz »

ee-gcc indicates the old ps2dev toolchain...
Rploesser
Posts: 3
Joined: Fri Sep 30, 2005 4:44 pm

getting a little further

Post by Rploesser »

Well im getting a little further with my quest to fix these annoying buttons. I followed your advice and downloaded the ps2sdk. and used that to attempt to compile nestorj. I got alot further it went through alot of data scrolling up the cmd window as it was compiling. However it did spit out an error. below are the last four line it displayed before stopping.



g -o out > nestorj.map
outpatch
modulename not found
make: *** [out] error 1

Like I said following your advice I got alot further. Before it wouldnt even begin to compile anything. So it appears you have led me down the right road. but now this is where im stuck

Thanks
Rploesser
User avatar
groepaz
Posts: 305
Joined: Thu Sep 01, 2005 7:44 am
Contact:

Post by groepaz »

hard to tell :) could be the author used a custom version of outpatch... mmh :) what about simply mailing him? :=P
Heran_Bago
Posts: 7
Joined: Sat Sep 17, 2005 1:19 pm

Post by Heran_Bago »

The author is japanese. What english he uses is translated via friends or just common knowledge. If you email him, good luck.

The commands used by the modded PS2 one, are there PSP equivilents?
If so, are they listed? and where?

Where could one find this modded PS2 compiler anyway?
Post Reply