Ignore:
Timestamp:
Jan 27, 2023, 7:28:00 PM (22 months ago)
Author:
alloc
Message:
  • Major refactoring
  • Using Utf8Json for (de)serialization
  • Moving APIs to REST
  • Removing dependencies from WebServer and MapRenderer to ServerFixes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements2/WebServer/src/WebPermissions.cs

    r399 r402  
    3636                private readonly ReadOnlyCollection<WebModulePermission> allModulesListRo;
    3737
    38                 private static string SettingsFilePath => GamePrefs.GetString (EnumUtils.Parse<EnumGamePrefs> ("SaveGameFolder"));
     38                private static string SettingsFilePath => GamePrefs.GetString (EnumUtils.Parse<EnumGamePrefs> (nameof (EnumGamePrefs.SaveGameFolder)));
    3939                private static string SettingsFileName => permissionsFileName;
    40                 private static string SettingsFullPath => SettingsFilePath + "/" + SettingsFileName;
     40                private static string SettingsFullPath => $"{SettingsFilePath}/{SettingsFileName}";
    4141
    4242                private WebPermissions () {
     
    184184
    185185                private void OnFileChanged (object _source, FileSystemEventArgs _e) {
    186                         Log.Out ("[Web] [Perms] Reloading " + SettingsFileName);
     186                        Log.Out ($"[Web] [Perms] Reloading {SettingsFileName}");
    187187                        Load ();
    188188                }
     
    205205                                xmlDoc.Load (SettingsFullPath);
    206206                        } 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}");
    208208                                return;
    209209                        }
Note: See TracChangeset for help on using the changeset viewer.