From 8fd06a729c7db6392bb3d8a55144b66e4a5b1c58 Mon Sep 17 00:00:00 2001 From: Pilzinsel64 Date: Fri, 4 Dec 2020 11:10:57 +0100 Subject: [PATCH] change to const --- Pilz/Runtime/RuntimeInformationsEx.vb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Pilz/Runtime/RuntimeInformationsEx.vb b/Pilz/Runtime/RuntimeInformationsEx.vb index 1a5dd21..d6f53c3 100644 --- a/Pilz/Runtime/RuntimeInformationsEx.vb +++ b/Pilz/Runtime/RuntimeInformationsEx.vb @@ -33,10 +33,10 @@ Namespace Runtime If t Is Nothing Then Dim windir = Environment.GetEnvironmentVariable("windir") - Dim ostypeDirWine = "Z:\proc\sys\kernel\ostype" - Dim ostypeDirNative = "/proc/sys/kernel/ostype" - Dim systemVersionWine = "Z:\System\Library\CoreServices\SystemVersion.plist" - Dim systemVersionNative = "/System/Library/CoreServices/SystemVersion.plist" + Const ostypeDirWine = "Z:\proc\sys\kernel\ostype" + Const ostypeDirNative = "/proc/sys/kernel/ostype" + Const systemVersionWine = "Z:\System\Library\CoreServices\SystemVersion.plist" + Const systemVersionNative = "/System/Library/CoreServices/SystemVersion.plist" If File.Exists(ostypeDirWine) Then ' Linux using wine Dim osTypeString As String = File.ReadAllText(ostypeDirWine)