diff options
author | Jeff Ames | 2008-05-01 18:49:42 +0000 |
---|---|---|
committer | Jeff Ames | 2008-05-01 18:49:42 +0000 |
commit | 239228abd8dc1553577eaf4167a49f64fa50814c (patch) | |
tree | 6f2536aac0c07489e576eb1e0e9eb03e1d85ca77 /OpenSim/Tools/LaunchSLClient/LaunchSLClient/WindowsConfig.cs | |
parent | added in IUserService functions. These don't do anything yet, (diff) | |
download | opensim-SC_OLD-239228abd8dc1553577eaf4167a49f64fa50814c.zip opensim-SC_OLD-239228abd8dc1553577eaf4167a49f64fa50814c.tar.gz opensim-SC_OLD-239228abd8dc1553577eaf4167a49f64fa50814c.tar.bz2 opensim-SC_OLD-239228abd8dc1553577eaf4167a49f64fa50814c.tar.xz |
Attempt to locate SL client in LaunchSLClient under other Unices.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Tools/LaunchSLClient/LaunchSLClient/WindowsConfig.cs | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/OpenSim/Tools/LaunchSLClient/LaunchSLClient/WindowsConfig.cs b/OpenSim/Tools/LaunchSLClient/LaunchSLClient/WindowsConfig.cs index df56bfe..7988d96 100644 --- a/OpenSim/Tools/LaunchSLClient/LaunchSLClient/WindowsConfig.cs +++ b/OpenSim/Tools/LaunchSLClient/LaunchSLClient/WindowsConfig.cs | |||
@@ -47,7 +47,7 @@ namespace LaunchSLClient | |||
47 | string exe = regKey.GetValue("Exe").ToString(); | 47 | string exe = regKey.GetValue("Exe").ToString(); |
48 | exeFlags = regKey.GetValue("Flags").ToString(); | 48 | exeFlags = regKey.GetValue("Flags").ToString(); |
49 | exePath = regKey.GetValue("").ToString(); | 49 | exePath = regKey.GetValue("").ToString(); |
50 | runLine = exePath + "\\" + exe; | 50 | runLine = Path.Combine(exePath, exe); |
51 | Registry.LocalMachine.Flush(); | 51 | Registry.LocalMachine.Flush(); |
52 | Registry.LocalMachine.Close(); | 52 | Registry.LocalMachine.Close(); |
53 | } | 53 | } |
@@ -56,7 +56,14 @@ namespace LaunchSLClient | |||
56 | { | 56 | { |
57 | RegistryKey key = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\OpenSim\OpenSim"); | 57 | RegistryKey key = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\OpenSim\OpenSim"); |
58 | 58 | ||
59 | return key == null ? "" : key.GetValue("Path").ToString(); | 59 | if (key == null) |
60 | { | ||
61 | return string.Empty; | ||
62 | } | ||
63 | else | ||
64 | { | ||
65 | return key.GetValue("Path").ToString(); | ||
66 | } | ||
60 | } | 67 | } |
61 | } | 68 | } |
62 | } | 69 | } |