Changeset 402 for binary-improvements2/WebServer/src/WebPermissions.cs
- Timestamp:
- Jan 27, 2023, 7:28:00 PM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements2/WebServer/src/WebPermissions.cs
r399 r402 36 36 private readonly ReadOnlyCollection<WebModulePermission> allModulesListRo; 37 37 38 private static string SettingsFilePath => GamePrefs.GetString (EnumUtils.Parse<EnumGamePrefs> ( "SaveGameFolder"));38 private static string SettingsFilePath => GamePrefs.GetString (EnumUtils.Parse<EnumGamePrefs> (nameof (EnumGamePrefs.SaveGameFolder))); 39 39 private static string SettingsFileName => permissionsFileName; 40 private static string SettingsFullPath => SettingsFilePath + "/" + SettingsFileName;40 private static string SettingsFullPath => $"{SettingsFilePath}/{SettingsFileName}"; 41 41 42 42 private WebPermissions () { … … 184 184 185 185 private void OnFileChanged (object _source, FileSystemEventArgs _e) { 186 Log.Out ( "[Web] [Perms] Reloading " + SettingsFileName);186 Log.Out ($"[Web] [Perms] Reloading {SettingsFileName}"); 187 187 Load (); 188 188 } … … 205 205 xmlDoc.Load (SettingsFullPath); 206 206 } catch (XmlException e) { 207 Log.Error ( "[Web] [Perms] Failed loading permissions file: " + e.Message);207 Log.Error ($"[Web] [Perms] Failed loading permissions file: {e.Message}"); 208 208 return; 209 209 }
Note:
See TracChangeset
for help on using the changeset viewer.