void SetVirtualFolder(string virtualDirectory) { MemoryStickMountable.Mount( "/PSP/GAME/virtual", new HleIoDriverLocalFileSystem(virtualDirectory) //.AsReadonlyHleIoDriver() ); }
void RegisterDevices() { var memoryStickRootFolder = ApplicationPaths.MemoryStickRootFolder; //Console.Error.WriteLine(MemoryStickRootFolder); //Console.ReadKey(); try { Directory.CreateDirectory(memoryStickRootFolder); } catch (Exception e) { Console.WriteLine(e); } /* */ MemoryStickMountable = new HleIoDriverMountable(); MemoryStickMountable.Mount("/", new HleIoDriverLocalFileSystem(memoryStickRootFolder)); var memoryStick = new HleIoDriverMemoryStick(PspMemory, HleCallbackManager, MemoryStickMountable); //var MemoryStick = new HleIoDriverMemoryStick(new HleIoDriverLocalFileSystem(VirtualDirectory).AsReadonlyHleIoDriver()); // http://forums.ps2dev.org/viewtopic.php?t=5680 HleIoManager.SetDriver("host:", memoryStick); HleIoManager.SetDriver("ms:", memoryStick); HleIoManager.SetDriver("fatms:", memoryStick); HleIoManager.SetDriver("fatmsOem:", memoryStick); HleIoManager.SetDriver("mscmhc:", memoryStick); HleIoManager.SetDriver("msstor:", new ReadonlyHleIoDriver(memoryStick)); HleIoManager.SetDriver("msstor0p:", new ReadonlyHleIoDriver(memoryStick)); HleIoManager.SetDriver("disc:", memoryStick); HleIoManager.SetDriver("umd:", memoryStick); HleIoManager.SetDriver("emulator:", HleIoDriverEmulator); HleIoManager.SetDriver("kemulator:", HleIoDriverEmulator); HleIoManager.SetDriver("flash:", new HleIoDriverZip(new ZipArchive(ResourceArchive.GetFlash0ZipFileStream()))); }
void RegisterDevices() { string MemoryStickRootFolder = Path.GetDirectoryName(Application.ExecutablePath) + "/ms"; try { Directory.CreateDirectory(MemoryStickRootFolder); } catch { } /* */ MemoryStickMountable = new HleIoDriverMountable(); MemoryStickMountable.Mount("/", new HleIoDriverLocalFileSystem(MemoryStickRootFolder)); HleIoDriverEmulator = new HleIoDriverEmulator(HleState); var MemoryStick = new HleIoDriverMemoryStick(MemoryStickMountable); //var MemoryStick = new HleIoDriverMemoryStick(new HleIoDriverLocalFileSystem(VirtualDirectory).AsReadonlyHleIoDriver()); HleState.HleIoManager.SetDriver("ms:", MemoryStick); HleState.HleIoManager.SetDriver("fatms:", MemoryStick); HleState.HleIoManager.SetDriver("mscmhc:", MemoryStick); HleState.HleIoManager.SetDriver("disc:", MemoryStick); HleState.HleIoManager.SetDriver("emulator:", HleIoDriverEmulator); HleState.HleIoManager.SetDriver("kemulator:", HleIoDriverEmulator); }