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 

What is the correct way to use Outpatch.exe?

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
steddy



Joined: 04 Apr 2005
Posts: 139

PostPosted: Sun May 29, 2005 8:26 am    Post subject: What is the correct way to use Outpatch.exe? Reply with quote

I am trying to compile the RIN source code for version 1.17 to confirm the setup of my PS2Dev Toolchain. I can compile Hello PSP ok, but I am having problems with the Outpatch step in the RIN makefile.

I have placed outpatch.exe from HelloPSP into my C:\ps2dev\bin directory which is in the path, and its is found by the makefile but reports the following error:-

Quote:
modulename not found


Looking at Outpatch.cpp it seems to have a hardcoded application name. Surely I don't have to recompile a new version of Outpatch for every application I want to compile (or do I?).

These are the lines from the RIN makefile I an referring too:-

Code:
$(BINARY): $(OBJECTS)
   ee-ld -s -O0 $(OBJECTS) $(LIBRARY) -M -Ttext 8900000 -q -o $@ > rin.map
   outpatch
   elf2pbp outp "RIN GB/GBC Emulator"


The out file is created ok, but is not patched so the make fails.

Cheers
Steddy[/b]
Back to top
View user's profile Send private message
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Sun May 29, 2005 10:05 am    Post subject: Reply with quote

Why don't you just add code to look at argv[1] to get the module name? Then you can pass it on the command line.
Back to top
View user's profile Send private message
qubitz



Joined: 03 Apr 2005
Posts: 32

PostPosted: Sun May 29, 2005 10:11 am    Post subject: Reply with quote

The module name that is used in startup.s is hard coded in outpatch.exe. If they do not match, outpatch will not work. So yes, you do have to recompile every time you change the module name. Unless of course, you change the source to take the module name as an argument.
Back to top
View user's profile Send private message
steddy



Joined: 04 Apr 2005
Posts: 139

PostPosted: Sun May 29, 2005 7:50 pm    Post subject: Reply with quote

Thanks Both

I just wondered to understand how it worked. Since the RIN sources didn't include a modified Outpatch.exe, I thought I was missing something.

I will change it to take a command line arg as stated.

Also, is there something I could hexedit in the toolchain to avoid this step entirely? I am not compiling anything other than PSP code with it.

Cheers
Steddy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    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