void IInjectInitialize.Initialize()
        {
            var iso = IsoLoader.GetIso("../../../pspautotests/input/iotest.iso");
            var umd = new HleIoDriverIso(iso);

            HleIoManager.SetDriver("disc:", umd);
            HleIoManager.Chdir("disc0:/PSP_GAME/USRDIR");
            BootBinFileHandle =
                IoFileMgrForUser.sceIoOpen("disc0:/PSP_GAME/SYSDIR/BOOT.BIN", HleIoFlags.Read, SceMode.All);
        }
Esempio n. 2
0
        public IsoFile SetIso(string isoFile)
        {
            //"../../../TestInput/cube.iso"
            var iso = IsoLoader.GetIso(isoFile);
            var umd = new HleIoDriverIso(iso);

            HleIoManager.SetDriver("disc:", umd);
            HleIoManager.SetDriver("umd:", umd);
            //HleIoManager.SetDriver("host:", Umd);
            HleIoManager.SetDriver(":", umd);
            HleIoManager.Chdir("disc0:/PSP_GAME/USRDIR");
            return(iso);
        }
 //[HlePspNotImplemented]
 public int sceIoChdir(string DirectoryPath)
 {
     try
     {
         HleIoManager.Chdir(DirectoryPath);
         //var Info = HleIoManager.ParsePath(DirectoryPath);
         //return Info.HleIoDriver.IoChdir(Info.HleIoDrvFileArg, Info.LocalPath);
         return(0);
     }
     finally
     {
         _DelayIo(IoDelayType.Chdir);
     }
 }