[ps vita port][need help] Auto load rom for gba games bubbles. - Printable Version +- mGBA Forums (https://forums.mgba.io) +-- Forum: mGBA (https://forums.mgba.io/forumdisplay.php?fid=1) +--- Forum: Development (https://forums.mgba.io/forumdisplay.php?fid=11) +--- Thread: [ps vita port][need help] Auto load rom for gba games bubbles. (/showthread.php?tid=533) |
[ps vita port][need help] Auto load rom for gba games bubbles. - shim80 - 10-19-2016 Hi. I want to recompile mgba and add auto-load gba rom from directorie inside the vpk file. Why? To make bubbles of gba games directly in the live area. I need help to find the load rom section in the code and compile it. Thanks. RE: [ps vita port][need help] Auto load rom for gba games bubbles. - endrift - 10-19-2016 I was thinking of making something like a forwarder for this now that we know how to load argument strings back out, but I haven't gotten around to it yet. Anyway, what you want to do is replace the call to mGUIRunloop in platform/psp2/main.c with a call to mGUIRun with the filename. Take a look at how the Wii version does it in platform/wii/main.c RE: [ps vita port][need help] Auto load rom for gba games bubbles. - shim80 - 10-19-2016 "mGUIRunloop"? Are you sure it is not "GBAGUIRunner"? I see "font, "cache0:" (main.c psp2, 71th line). I need to replace it with "font, "/nameoftherom.gba""? "/" (main.c Wii, 162th line) is the root directorie of the app folder? Howto compile it? (PSDK3v3 don't work, and cmake don't find vitasdk...) RE: [ps vita port][need help] Auto load rom for gba games bubbles. - endrift - 10-19-2016 That "/" is the initial folder, not a filename. You can't change it that way. (I should know, I wrote it.) To compile it, make a build directory at the root of the source code, cd into it and do VITASDK=[path to SDK] cmake .. -DCMAKE_TOOLCHAIN_FILE=../src/platform/psp2/CMakeToolchain.vitasdk. RE: [ps vita port][need help] Auto load rom for gba games bubbles. - shim80 - 10-21-2016 "CMake Error at CMakeLists.txt:2 (project): The CMAKE_C_COMPILER: c:/vitasdk/bin/arm-vita-eabi-gcc is not a full path to an existing compiler tool." ? RE: [ps vita port][need help] Auto load rom for gba games bubbles. - endrift - 10-21-2016 is your Vita SDK in C:\vitasdk? Looking at this, I think there's a bug in my toolchain file that's not expecting it to be run on Windows, so I might need to fix that. RE: [ps vita port][need help] Auto load rom for gba games bubbles. - shim80 - 10-21-2016 Quote:is your Vita SDK in C:\vitasdk?Yes. Quote:I thinkĀ there's a bug in my toolchain file that's not expecting it to be run on Windows, so I might need to fix that. Do you use linux to compile ? Can I do it in Live-USB? RE: [ps vita port][need help] Auto load rom for gba games bubbles. - endrift - 10-21-2016 I use macOS, but Linux generally works fine too. A LiveUSB might work if you have enough RAM to download the prebuilt (LiveUSB boots don't write the files back to the USB stick, but instead store them in RAM), but I should really fix that bug. RE: [ps vita port][need help] Auto load rom for gba games bubbles. - endrift - 10-26-2016 The bug might be fixed now, so please try again with a newer master. |