MCPcopy Create free account
hub / github.com/PenguLoader/PenguLoader / ExtractValueFromCommandLine

Method ExtractValueFromCommandLine

loader/Main/LCU.cs:129–142  ·  view source on GitHub ↗
(string cmdline, string parameter)

Source from the content-addressed store, hash-verified

127 }
128
129 private static string ExtractValueFromCommandLine(string cmdline, string parameter)
130 {
131 int index = cmdline.IndexOf(parameter);
132 if (index >= 0)
133 {
134 index += parameter.Length;
135 int endIndex = cmdline.IndexOf("\"", index);
136 if (endIndex > index)
137 {
138 return cmdline.Substring(index, endIndex - index);
139 }
140 }
141 return null;
142 }
143
144 public static bool IsValidDir(string path)
145 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected