This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Development offering
#12
I have updated pspautotests. In the end I have decided that a good way to have psp-compatible executables in usermode and allow to output to a simple hookable file is doing the following:
  • Try to open "emulator:/Kprintf" file. If the file was able to open, that means that we are running the program in a compatible emulator. If not, we are on a psp.
  • Hook the stdout FILE handle.
  • If we are in a compatible emulator, we will send printf output to the "emulator:/Kprintf" stream.
  • If we are on the PSP, we will output the contents to 'ms0:/__testoutput.txt'.
  • Also we will output all the stuff using pspDebugScreenPrintf. So if we have a display, we will be able to see the output directly.
  • If we are on the PSP, the program will wait until the user press X button, so we can see the output on the display.

You can see the implementation here:
http://code.google.com/p/pspautotests/so...n/common.c
http://code.google.com/p/pspemu/source/detail?r=303
Reply


Messages In This Thread
Development offering - by soywiz - 07-26-2011, 11:40 AM
RE: Development offering - by Hykem - 07-26-2011, 05:13 PM
RE: Development offering - by gid15 - 07-26-2011, 08:28 PM
RE: Development offering - by soywiz - 07-26-2011, 10:53 PM
RE: Development offering - by Hykem - 07-27-2011, 03:38 PM
RE: Development offering - by Butz_san - 07-27-2011, 03:58 AM
RE: Development offering - by soywiz - 07-27-2011, 05:21 PM
RE: Development offering - by Orphis - 07-29-2011, 01:06 PM
RE: Development offering - by gid15 - 07-30-2011, 07:30 AM
RE: Development offering - by gid15 - 07-30-2011, 11:27 AM
RE: Development offering - by soywiz - 07-31-2011, 12:47 PM
RE: Development offering - by soywiz - 08-01-2011, 01:04 AM
RE: Development offering - by soywiz - 08-01-2011, 04:01 AM
RE: Development offering - by hlide - 08-02-2011, 02:45 AM
RE: Development offering - by Orphis - 08-05-2011, 12:17 AM
RE: Development offering - by soywiz - 08-05-2011, 04:03 PM
RE: Development offering - by Orphis - 08-05-2011, 04:22 PM
RE: Development offering - by soywiz - 08-07-2011, 09:50 PM
RE: Development offering - by Orphis - 08-08-2011, 02:15 AM
RE: Development offering - by beanclr - 08-14-2011, 10:55 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)