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:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Demos from pspdemocenter are not working and I identified a place of failure
#2
I did some more debugging on this thing and it looks to me at this point that mabe the code is broken in a simple way ? On maingui.java line 137:

ByteBuffer readbuffer = roChannel.map(FileChannel.MapMode.READ_ONLY, 0, (int) roChannel.size());

which obviously creates a readonly buffer . Later on at PSP.java line 146 reference from my first post the same ByteBuffer object now referenced by f tries to use a the method that requires read-write access : .array() . I also checked that with a watch on f.isReadOnly() that returned true :

byte[] inBuf = f.array();

So my problem seems to not related to having a 'bad rom' but on poor implementation .

Also I find the lack of response to my post disturbing . I do not intend to hack on the codebase using complete downloaded roms and there are 37 demos that I have to test stuff so I don't have to download any released game roms of psp games . If anyone is concered with that I may fork the code and create a github or mercurial repository if I ever decide to hack seriously on jpcsp so you will not stop anything .

ps Last paragraph is not meant as a threat but to mabe get an answer . If noone wants to have anything to do with me you can certainly give me an answer that you don't care about anything I may have found out in the limited time I spent debugging .
Reply


Messages In This Thread
RE: Demos from pspdemocenter are not working and I identified a place of failure - by branco - 04-30-2011, 09:30 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)