void DirSeparator()
 {
     using (var pfs = new PhysFS(""))
     {
         Assert.NotNull(pfs.GetDirSeparator());
         Assert.NotEqual("", pfs.GetDirSeparator());
     }
 }
Пример #2
0
        public void SetupFileSystems()
        {
            var seporator    = filesystemLink.GetDirSeparator();
            var BaseDataDir  = Environment.CurrentDirectory + seporator + "GameData";
            var UnPackedData = BaseDataDir + seporator + "Unpacked";
            var Packed       = BaseDataDir + seporator + "Packed";
            var saveData     = BaseDataDir + seporator + "SaveData";

            filesystemLink.PermitSymbolicLinks(true);
            Directory.CreateDirectory(BaseDataDir);
            Directory.CreateDirectory(UnPackedData);
            Directory.CreateDirectory(Packed);
            Directory.CreateDirectory(saveData);
            filesystemLink.SetWriteDir(saveData);
            filesystemLink.Mount(UnPackedData, "", true);
            SetupPackedData(Packed);
        }
 static bool GetDirSeparator(string[] args)
 {
     Console.WriteLine(physFS.GetDirSeparator());
     return(true);
 }
Пример #4
0
 public void DirSeparator()
 {
     using var pfs = new PhysFS("");
     pfs.GetDirSeparator().Should().NotBeNullOrEmpty();
 }