本文整理汇总了C#中CSPspEmu.Hle.Vfs.HleIoDrvFileArg类的典型用法代码示例。如果您正苦于以下问题:C# HleIoDrvFileArg类的具体用法?C# HleIoDrvFileArg怎么用?C# HleIoDrvFileArg使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
HleIoDrvFileArg类属于CSPspEmu.Hle.Vfs命名空间,在下文中一共展示了HleIoDrvFileArg类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: IoOpen
public int IoOpen(HleIoDrvFileArg HleIoDrvFileArg, string FileName, HleIoFlags Flags, SceMode Mode)
{
//HleInterop.ExecuteFunctionNow(PspIoDrvFuncs->IoOpen);
ConsoleUtils.SaveRestoreConsoleColor(ConsoleColor.Red, () => { Console.WriteLine("Not Implemented: GuestHleIoDriver.IoOpen"); });
//throw new NotImplementedException();
return 0;
}
示例2: GetStat
public static SceIoStat GetStat(this IHleIoDriver HleIoDriver, string FileName)
{
var HleIoDrvFileArg = new HleIoDrvFileArg("none", HleIoDriver, 0, null);
var SceIoStat = default(SceIoStat);
HleIoDriver.IoGetstat(HleIoDrvFileArg, FileName, &SceIoStat);
return SceIoStat;
}
示例3: ListDir
public static IEnumerable<HleIoDirent> ListDir(this IHleIoDriver HleIoDriver, string Path)
{
var HleIoDrvFileArg = new HleIoDrvFileArg("none", HleIoDriver, 0, null);
var HleIoDirent = default(HleIoDirent);
var List = new List<HleIoDirent>();
HleIoDriver.IoDopen(HleIoDrvFileArg, Path);
while (HleIoDriver.IoDread(HleIoDrvFileArg, &HleIoDirent) > 0)
{
List.Add(HleIoDirent);
}
HleIoDriver.IoDclose(HleIoDrvFileArg);
return List;
}
示例4: FileExists
public static bool FileExists(this IHleIoDriver HleIoDriver, string FileName)
{
try
{
var HleIoDrvFileArg = new HleIoDrvFileArg("none", HleIoDriver, 0, null);
var SceIoStat = default(SceIoStat);
HleIoDriver.IoGetstat(HleIoDrvFileArg, FileName, &SceIoStat);
return true;
}
catch
{
return false;
}
}
示例5: IoRename
public override int IoRename(HleIoDrvFileArg HleIoDrvFileArg, string OldFileName, string NewFileName)
{
throw (new NotImplementedException());
}
示例6: IoMkdir
public override int IoMkdir(HleIoDrvFileArg HleIoDrvFileArg, string Name, SceMode Mode)
{
Console.Error.WriteLine("Tried to create directory on a readonly filesystem '{0}'", Name);
//throw(new NotImplementedException());
return 0;
}
示例7: IoOpen
public unsafe int IoOpen(HleIoDrvFileArg HleIoDrvFileArg, string FileName, HleIoFlags Flags, SceMode Mode)
{
ReLocatePathHandle(ref HleIoDrvFileArg, ref FileName);
return HleIoDrvFileArg.HleIoDriver.IoOpen(HleIoDrvFileArg, FileName, Flags, Mode);
}
示例8: IoMkdir
public unsafe int IoMkdir(HleIoDrvFileArg HleIoDrvFileArg, string Name, SceMode Mode)
{
ReLocatePathHandle(ref HleIoDrvFileArg, ref Name);
return HleIoDrvFileArg.HleIoDriver.IoMkdir(HleIoDrvFileArg, Name, Mode);
}
示例9: IoIoctl
public unsafe int IoIoctl(HleIoDrvFileArg HleIoDrvFileArg, uint Command, byte* InputPointer, int InputLength, byte* OutputPointer, int OutputLength)
{
throw new NotImplementedException();
}
示例10: IoDread
public unsafe int IoDread(HleIoDrvFileArg HleIoDrvFileArg, HleIoDirent* dir)
{
throw new NotImplementedException();
}
示例11: IoOpen
public virtual int IoOpen(HleIoDrvFileArg HleIoDrvFileArg, string FileName, HleIoFlags Flags, SceMode Mode)
{
return ParentDriver.IoOpen(HleIoDrvFileArg, FileName, Flags, Mode);
}
示例12: IoMount
public virtual int IoMount(HleIoDrvFileArg HleIoDrvFileArg)
{
return ParentDriver.IoMount(HleIoDrvFileArg);
}
示例13: IoMkdir
public virtual int IoMkdir(HleIoDrvFileArg HleIoDrvFileArg, string Name, SceMode Mode)
{
return ParentDriver.IoMkdir(HleIoDrvFileArg, Name, Mode);
}
示例14: IoLseek
public virtual long IoLseek(HleIoDrvFileArg HleIoDrvFileArg, long Offset, SeekAnchor Whence)
{
return ParentDriver.IoLseek(HleIoDrvFileArg, Offset, Whence);
}
示例15: IoIoctl
public virtual int IoIoctl(HleIoDrvFileArg HleIoDrvFileArg, uint Command, byte* InputPointer, int InputLength, byte* OutputPointer, int OutputLength)
{
return ParentDriver.IoIoctl(HleIoDrvFileArg, Command, InputPointer, InputLength, OutputPointer, OutputLength);
}