Skip to content

Commit

Permalink
rename some internal fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Ybalrid committed May 10, 2021
1 parent 44e9afe commit 5f80f5f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions OpenXR-Runtime-Manager/OpenXR-Runtime-Manager/RuntimeManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace OpenXR_Runtime_Manager
class RuntimeManager
{
//TODO make a database of paths to manifest for known OpenXR runtimes that are compatible with MS Windows
string[] WellKnwonOpenXRRuntimeManifestPaths =
readonly string[] WellKnwonOpenXRRuntimeManifestPaths =
{
"%ProgramFiles(x86)%\\Steam\\steamapps\\common\\SteamVR\\steamxr_win64.json",
"%ProgramFiles%\\Oculus\\Support\\oculus-runtime\\oculus_openxr_32.json",
Expand Down Expand Up @@ -47,13 +47,13 @@ private struct RuntimeInfo
[JsonProperty("api_version")]
public string ApiVersion;
[JsonProperty("VALVE_runtime_is_steamvr")]
public bool VALVE_runtime_is_steamvr;
public bool ValveRuntimeIsSteamvr;
}

private struct RuntimeManifest
{
[JsonProperty("file_format_version")] public string versionTag;
[JsonProperty("runtime")] public RuntimeInfo runtime;
[JsonProperty("file_format_version")] public string VersionTag;
[JsonProperty("runtime")] public RuntimeInfo Runtime;
}

private Runtime ReadManifest(string runtimeManifestPath)
Expand All @@ -65,8 +65,8 @@ private Runtime ReadManifest(string runtimeManifestPath)
var json = r.ReadToEnd();
var manifest = JsonConvert.DeserializeObject<RuntimeManifest>(json);

return new Runtime(manifest.runtime.Name, runtimeManifestPath,
manifest.runtime.LibraryPath, new Version(1));
return new Runtime(manifest.Runtime.Name, runtimeManifestPath,
manifest.Runtime.LibraryPath, new Version(1));
}
}
catch (Exception e)
Expand Down

0 comments on commit 5f80f5f

Please sign in to comment.