Browse Source

加入磨刀石启动

master
С·æ 4 years ago
parent
commit
55cd9ebb06
  1. 24
      客户端/齐越慧眼/齐越慧眼/MemoryHelper.cs

24
客户端/齐越慧眼/齐越慧眼/MemoryHelper.cs

@ -7,6 +7,30 @@ namespace Utils
{ {
public class MemoryHelper public class MemoryHelper
{ {
public static string GetMemoryToken()
{
string memoryName = string.Empty;
string[] args = Environment.GetCommandLineArgs();
foreach (var arg in args)
{
if (arg.StartsWith("uid:"))
{
memoryName = arg;
}
}
var result = MemoryHelper.ReadMMF(memoryName);
if (result.isOk)
{
return result.content;
}
else
{
System.Environment.Exit(0);
return string.Empty;
}
}
/// <summary> /// <summary>
/// 写入映射文件 /// 写入映射文件

Loading…
Cancel
Save