Skip to content

Commit

Permalink
環境変数が小文字になっているのを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
XenonAbe committed Oct 27, 2022
1 parent 8d0daa7 commit 8102f5b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions PlayService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ protected override void OnStart(string[] args)
}
}

foreach (DictionaryEntry env in envs) {
foreach (var env in envs) {
if (psi.EnvironmentVariables.ContainsKey((string)env.Key)) {
psi.EnvironmentVariables.Remove((string)env.Key);
}
Expand Down Expand Up @@ -481,9 +481,9 @@ private Encoding GetOutputEncoding(Config config)
/// </summary>
/// <param name="config"></param>
/// <returns></returns>
private StringDictionary GetEnv(Config config)
private Dictionary<string,string> GetEnv(Config config)
{
var result = new StringDictionary();
var result = new Dictionary<string,string>();
if (Program.Param.Env != null) {

Program.Param.Env.Split(',')
Expand Down Expand Up @@ -567,14 +567,14 @@ private string GetPidfilePath(Config config)
return result;
}

private string GenerateTrialLauncher(string appHome, string launcher, StringDictionary envs, Encoding outputEncoding)
private string GenerateTrialLauncher(string appHome, string launcher, Dictionary<string,string> envs, Encoding outputEncoding)
{
var builder = new StringBuilder();
builder.AppendLine(@"set local");
builder.AppendLine($@"chcp {outputEncoding.CodePage}");
builder.AppendLine($@"cd {appHome}");
builder.AppendLine(@"@echo.");
foreach (DictionaryEntry env in envs) {
foreach (var env in envs) {
builder.AppendLine($@"set {env.Key}={Utils.BatchEscape((string)env.Value)}");
}
builder.AppendLine(@"@echo.");
Expand Down

0 comments on commit 8102f5b

Please sign in to comment.