public virtual int sceUsbStop(PspString driverName, int size, TPointer args) { usbStarted = false; SceModule module = loadedModules.Remove(driverName.String); if (module != null) { HLEModuleManager moduleManager = HLEModuleManager.Instance; moduleManager.UnloadFlash0Module(module); } notifyCallback(); return(0); }
public virtual int sceUsbStart(string driverName, int size, TPointer args) { usbStarted = true; HLEModuleManager moduleManager = HLEModuleManager.Instance; if (moduleManager.hasFlash0Module(driverName)) { Console.WriteLine(string.Format("Loading HLE module '{0}'", driverName)); int sceModuleId = moduleManager.LoadFlash0Module(driverName); SceModule module = Managers.modules.getModuleByUID(sceModuleId); loadedModules[driverName] = module; } notifyCallback(); return(0); }
/// <param name="firmwareVersion"> : in this format: "A.BB", where A = major and B = /// minor, for example "2.71" </param> public virtual void setFirmwareVersion(string firmwareVersion) { setFirmwareVersion(HLEModuleManager.psfFirmwareVersionToInt(firmwareVersion)); }