Page 1 of 1
How to call another application
Posted: June 8th, 2013, 12:54 am
by earlyProg
I want to call another application (.exe) . How i do this ?
Re: How to call another application
Posted: June 8th, 2013, 1:12 am
by t0rxe
Learn from Sony's examples. They have many of these examples on executing other PS-EXE's off of the CD-ROM (or from RAM). We can't keep answering all your simple questions. You need to be able to learn yourself
If you're completely stuck and frustrated, I'll make an example for you anyway.
The lesson I have learnt over the years is to never take the easy way out
Re: How to call another application
Posted: June 8th, 2013, 2:24 am
by Orion_
I have a function called System_LoadExecutable in my psx dev library, here it is:
ResetGraph(0);
StopCallback();
_96_init();
LoadExec("cdrom:\\YOURFILE.EXE;1", 0x801ffff0, 0);
Re: How to call another application
Posted: October 27th, 2018, 8:59 am
by New Nova
I love to find tricks here
Re: How to call another application
Posted: October 27th, 2018, 10:04 pm
by New Nova
RE !
I need some informations about System_LoadExecutable ORION. Because I tried to run an Exec by pressing "X", but all that I have is a black screen in ePSXe.
Can you help me out ?
Re: How to call another application
Posted: October 27th, 2018, 11:06 pm
by gwald
Might help if you post code, but I would look at what the exe needs in RAM and where and obliviously where you're loading the exe.
Re: How to call another application
Posted: October 27th, 2018, 11:48 pm
by New Nova
You have the full code and exec (the HI.EXE is the HELLO WORLD Tutorial)
pong.zip
Re: How to call another application
Posted: October 28th, 2018, 2:48 am
by New Nova
The "HI.EXE" is in the same folder. I tried just "System_LoadExecutable("HI.EXE");" and "System_LoadExecutable("C:\psyq\projects\pong\HI.EXE");", but I always have a black screen.
Re: How to call another application
Posted: October 28th, 2018, 11:38 am
by gwald
your call to the exe is wrong, it's should be like orion's
Orion_ wrote: ↑June 8th, 2013, 2:24 am
"cdrom:\\HI.EXE;1"
I assume your making an iso and HI.EXE is in root.
Re: How to call another application
Posted: October 28th, 2018, 7:20 pm
by Orion_
New Nova wrote: ↑October 28th, 2018, 2:48 am
The "HI.EXE" is in the same folder. I tried just "System_LoadExecutable("HI.EXE");" and "System_LoadExecutable("C:\psyq\projects\pong\HI.EXE");", but I always have a black screen.
do you realise that your Playstation will never have access to your computer's harddrive ?
how can the playstation could be aware of this path "C:\psyq\projects\pong\" ???
the emulator won't magically translate this, the emulator emulate a real playstation, and a real playstation only access files from the CDROM, so you need to make an ISO file with all the file on it, the ISO must be playstation compatible/signed of course ...
http://onorisoft.free.fr/psx/tutorial/tuto.htm#cd
Re: How to call another application
Posted: October 28th, 2018, 7:47 pm
by NITROYUASH
PS1 can read data from PS-EXE file or CD-ROM.
Hmmm... It is possible to hide PS-EXE within another PS-EXE? xddd
Re: How to call another application
Posted: October 28th, 2018, 8:48 pm
by Orion_
NITROYUASH wrote: ↑October 28th, 2018, 7:47 pm
PS1 can read data from
PS-EXE RAM or CD-ROM.
Fixed
NITROYUASH wrote: ↑October 28th, 2018, 7:47 pm
Hmmm... It is possible to hide PS-EXE within another PS-EXE? xddd
What's the point ? The only purpose of loading another PS-EXE is because you don't have enough memory to implement features in the main PS-EXE currently running.
Re: How to call another application
Posted: October 28th, 2018, 9:07 pm
by New Nova
Thanks for helping. So you say that I need to make an iso of my EXE. Do I need to burn it on a real CD ?
Re: How to call another application
Posted: October 29th, 2018, 12:01 am
by NITROYUASH
What's the point ?
idk, just curious. Maybe someone will try to hide EXE in this way?
New Nova wrote: ↑October 28th, 2018, 9:07 pm
Do I need to burn it on a real CD ?
nope