![]() |
| Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact |
| ||||||
This is a discussion on Anyone know how to read an image from an eboot / iso / cso etc? within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; I need to be able to read the image from an Eboot, an ISO, a CSO, a JSO or a ...
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 |
![]() ![]() ![]() Developer
|
I need to be able to read the image from an Eboot, an ISO, a CSO, a JSO or a DAX file and then populate an image object. I know there are tons of things in C that do it but I need to do it from VB.NET.
Proof of concept we managed to bytestream the Eboot but I still have two problems, 1) how to populate the bytestream to an image object and 2) how to read this info from ISO/CSO/JSO/DAX files. Anyone got any ideas? Thanks in advance if anyone can offer any advice on this.
__________________
PSP History Bought Dec 15th 2006 @ 2.6 -> 2.71 HEND -> 1.5 -> 3.02 OE-A -> 3.02 OE-B -> 3.03 OE-A -> 3.03OE-A' -> 3.03 OE-B -> 3.10 OE-A -> 3.10 OE-A' -> 3.30 OE-A. |
|
|
|
|
|
#2 |
![]() ![]() Bush Programmer
|
Why not search for the header then read in data from there?
That's how I read a PNG file from an eboot (the icon0.PNG). I must admit it is a known size though. Bitmaps wouldn't be a problem there because you can calculate the size given the dimensions (which are in it's file header). I imagine other image formats give similar info in their file headers? Art. |
|
|
|
|
|
#3 |
![]() ![]() ![]() Developer
|
That is what we are doing with the bytestreaming on the Eboots but I have no idea how to populate the results into an image short of streaming it to a file and loading the file which is extremely messy
. I also have no idea how to get to the header in a CSO etc .We can succesfuly find the PNG information in the eboot header but that is where I then get lost . I can stream it to a variable and manually take that result and paste it into a file in notepad, rename it to test.png and open it and it IS the image, Like I said though, I am stuck at that point. Just need a couple of pointers to go off and research as right now, I don't even know what I am looking for in order to be able to search for it online and learn how to do it .
__________________
PSP History Bought Dec 15th 2006 @ 2.6 -> 2.71 HEND -> 1.5 -> 3.02 OE-A -> 3.02 OE-B -> 3.03 OE-A -> 3.03OE-A' -> 3.03 OE-B -> 3.10 OE-A -> 3.10 OE-A' -> 3.30 OE-A. |
|
|
|
|
|
#4 | |
![]() |
Quote:
|
|
|
|
|
|
|
#5 |
![]() ![]() Bush Programmer
|
Once you have the image in an array (which you have) you're set. Particularly if it's a PNG.
The sample I posted at the end of this page: http://forums.qj.net/f-developers-du...005/page3.html demonstrates how to use it. You need to replace your graphics.c/h with the one in the zip package because it contains Shine's function to load images from memory (what you want to do). Reading from a cso... dunno. Let me know if you find out. There must be some code to read them in the forbidden leaked firmware files so that they can be played. Art. |
|
|
|
|
|
#6 |
![]() ![]() ![]() Developer
|
Thanks man but here lies my problem, I am trying to do this in VB.NET, not C
I found this code ages ago called ExtractPic but again, it is in C .
__________________
PSP History Bought Dec 15th 2006 @ 2.6 -> 2.71 HEND -> 1.5 -> 3.02 OE-A -> 3.02 OE-B -> 3.03 OE-A -> 3.03OE-A' -> 3.03 OE-B -> 3.10 OE-A -> 3.10 OE-A' -> 3.30 OE-A. |
|
|
|
|
|
#7 | |
![]() |
Quote:
sorry, wasnt payin attention the first time. |
|
|
|
|
|
|
#8 |
![]() ![]() ![]() Developer
|
Tis all good, I will have a poke around the net and see what I can discover
.Thanks to both of you for your help, I at least have a starting point for my searches now .
__________________
PSP History Bought Dec 15th 2006 @ 2.6 -> 2.71 HEND -> 1.5 -> 3.02 OE-A -> 3.02 OE-B -> 3.03 OE-A -> 3.03OE-A' -> 3.03 OE-B -> 3.10 OE-A -> 3.10 OE-A' -> 3.30 OE-A. |
|
|
|
|
|
#9 |
![]() ![]() ![]() Developer
|
A little bit of headway on this:
Code:
PSPGame.Image = System.Drawing.Bitmap.FromStream(StreamVar) ![]() Next I need to work out how to read the header from a CSO
__________________
PSP History Bought Dec 15th 2006 @ 2.6 -> 2.71 HEND -> 1.5 -> 3.02 OE-A -> 3.02 OE-B -> 3.03 OE-A -> 3.03OE-A' -> 3.03 OE-B -> 3.10 OE-A -> 3.10 OE-A' -> 3.30 OE-A. |
|
|
|
|
|
#11 |
![]() ![]() ![]() Developer
|
Excelent, thankyou
. If I can cover some ground on this over the weekend then maybe a new version soon
__________________
PSP History Bought Dec 15th 2006 @ 2.6 -> 2.71 HEND -> 1.5 -> 3.02 OE-A -> 3.02 OE-B -> 3.03 OE-A -> 3.03OE-A' -> 3.03 OE-B -> 3.10 OE-A -> 3.10 OE-A' -> 3.30 OE-A. |
|
|
|
![]() |
| Tags |
| cso , eboot , image , iso , read |
| Thread Tools | |
|
|