memsom / PSPDNA

PSP DNA - a small DotNet runtime for Sony PSP
BSD 2-Clause "Simplified" License
24 stars 2 forks source link

Installing corlib?? #3

Open Treemaster134 opened 1 year ago

Treemaster134 commented 1 year ago

Apologies if this is a stupid question, but how on earth am i supposed to get the psp module to work? I can provide more details if you need me to.

memsom commented 1 year ago

Hi - sorry I missed this comment.

You need to build the dan runtime with the appropriate PSPSDK. I am using one built for MacOS - I hand built it. If you are using Windows, I believe the pre made one works fine. Once that is done, you will have a bunch of dna exes in pop format. I believe you need the EBOOT.PBP, Fonts and apps directories - copy those to your PSP in to a directory under the standard homebrew location (mine is PSP/GAME/DNA.)

You then need to build the .Net stuff. This has become a lot harder because .Net 7 has broken the /nostdlib flag, which we rely on. You need to build with classic DotNet framework, Mono (I guess), or the botnet command line at 6 or less. I have just discovered this tonight, so I will try and work out a fix. That will make you a number of assembles, themes important is corelib.dll - this needs to go in the root of DNA, same place as the EBOOT.PBP. Then your app will either go int he root too, or the apps folder, and you need to put the Dna.AppMenu.exe int he root. Basically, DNA will load the first exe it finds in the root. If you use the AppMenu, it will let you load any app int he apps folder (up to a point, this bit was a little experimental.)

I am going to start working on this again so hopefully the weirdness above with .Net 7 will be sorted out.

If you use one of the releases, you should just be able to take the prebuilt files and put them int he right location on the PSP as described above.

memsom commented 1 year ago

Okay - update... it all now compiles again with caveats (see the readme.)

Unfortunately, I am just going to need more time to make it 100%.

testSimple seems to now work, and I have ported the texture/surface code for the working branch so it demonstrates using images.

let seems to not work under PPSSPP - it might be okay on a real device, not sure. I will give it a go when I get a change. I think getting the PSP remote debugger working again might be needed (I remember that PPSSPP, as great as it is, is not always great at this running demo code stuff.)

I have added a bunch of make files, but if you are under Windows you will need to either adapt them or use something like MSYS or WSL to run them as they assume you have UNIX style cp and rm command available. I have these on my Windows box and I have them under macOS, but YMMV.

If you are still interested and still have questions, ask me.

memsom commented 1 year ago

@Treemaster134 okay - I have everything sort of working again. I have uploaded a working PSPSDK for macOS to the releases. You should now be able to use it to build the DNA native code again.

Turned out to be a bad PSPSDK compiler toolchain that was breaking my DotNet runtime for some reason.

Let me know if you need anything else.