mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-02-13 21:31:04 +00:00
29 lines
726 B
C#
29 lines
726 B
C#
using System;
|
|
using System.IO;
|
|
|
|
namespace BurnOutSharp.ProtectionType
|
|
{
|
|
public class Zzxzz
|
|
{
|
|
public static string CheckPath(string path, bool isDirectory)
|
|
{
|
|
if (isDirectory)
|
|
{
|
|
if (File.Exists(Path.Combine(path, "Zzxzz", "Zzz.aze")))
|
|
return "Zzxzz";
|
|
|
|
else if (Directory.Exists(Path.Combine(path, "Zzxzz")))
|
|
return "Zzxzz";
|
|
}
|
|
else
|
|
{
|
|
string filename = Path.GetFileName(path);
|
|
if (filename.Equals("Zzz.aze", StringComparison.OrdinalIgnoreCase))
|
|
return "Zzxzz";
|
|
}
|
|
|
|
return null;
|
|
}
|
|
}
|
|
}
|