feat: initial commit - HJHA game server full source
6 major server modules (PdkFriendServer/GlobalSever/ServerCore/GameModule/GameNetModule) + game logic (GameFix/GameDAL/ServerData) + network layer (NetWorkMessage) + data layer (ObjectModel) + utilities (MrWu/Core/Config/CloudAPI/dll) + adapters (zyxAdapter/base) .NET 8.0 C# solution, 16 projects, 958 source files
This commit is contained in:
24
CloudAPI/Cloud/EnvironmentVariableHelper.cs
Normal file
24
CloudAPI/Cloud/EnvironmentVariableHelper.cs
Normal file
@ -0,0 +1,24 @@
|
||||
using System;
|
||||
|
||||
namespace Cloud
|
||||
{
|
||||
public static class EnvironmentVariableHelper
|
||||
{
|
||||
public static string GetEnvironmentVariable(string name)
|
||||
{
|
||||
string value = Environment.GetEnvironmentVariable(name, EnvironmentVariableTarget.User);
|
||||
if (!string.IsNullOrEmpty(value))
|
||||
{
|
||||
return value;
|
||||
}
|
||||
|
||||
value = Environment.GetEnvironmentVariable(name, EnvironmentVariableTarget.Machine);
|
||||
if (!string.IsNullOrEmpty(value))
|
||||
{
|
||||
return value;
|
||||
}
|
||||
|
||||
return Environment.GetEnvironmentVariable(name, EnvironmentVariableTarget.Process);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user