EmuNewz Network
Memory stick customizable location - Printable Version

+- EmuNewz Network (https://www.emunewz.net/forum)
+-- Forum: PSP Emulation (https://www.emunewz.net/forum/forumdisplay.php?fid=191)
+--- Forum: JPCSP Official Forum (https://www.emunewz.net/forum/forumdisplay.php?fid=51)
+---- Forum: JPCSP builds and releases (https://www.emunewz.net/forum/forumdisplay.php?fid=53)
+---- Thread: Memory stick customizable location (/showthread.php?tid=157452)



Memory stick customizable location - pal1000 - 02-06-2014

I tried implementing this myself, but after successfully implemented the GUI part I ended up overwhelmed by the code complexity and failed making the functional part.
In essence it needs to allow usage of other locations than JPCSP\ms0 for memory stick. I attached the patch file with the work I made. The patch is compatible with r3454-3455.


RE: Memory stick customizable location - gid15 - 02-06-2014

(02-06-2014, 01:56 PM)pal1000 Wrote: I tried implementing this myself, but after successfully implemented the GUI part I ended up overwhelmed by the code complexity and failed making the functional part.
In essence it needs to allow usage of other locations than JPCSP\ms0 for memory stick. I attached the patch file with the work I made. The patch is compatible with r3454-3455.
This is a good start! Smile

I started a long time ago a "virtual file system" (VFS) concept where devices can be easily mounted. This is mostly complete, but not yet active as this might break a lot of games. When the VFS will be active, the functional part for your change will be quite easy: see IoFileMgrForUser, line 674:
Code:
            vfsManager.register("ms0", new LocalVirtualFileSystem("ms0/"));
The fixed string "ms0/" would just need to be replaced by the path selected by the user...