@@ -95,7 +95,7 @@ public void Dispose()
95
95
96
96
public void LoadProfiles ( )
97
97
{
98
- _logger . Information ( "Loading profiles from directory ..." ) ;
98
+ _logger . Information ( "Loading profiles..." ) ;
99
99
100
100
//todo: hot reload was not tested
101
101
//save temp profiles
@@ -105,6 +105,8 @@ public void LoadProfiles()
105
105
List < ( Profile , string ) > invalidNames = new ( ) ;
106
106
foreach ( var file in _saveService . FileNames . Profiles ( ) )
107
107
{
108
+ _logger . Debug ( $ "Reading profile { file . FullName } ") ;
109
+
108
110
try
109
111
{
110
112
var text = File . ReadAllText ( file . FullName ) ;
@@ -146,7 +148,7 @@ public void LoadProfiles()
146
148
_logger . Information (
147
149
$ "Moved { invalidNames . Count - failed } profiles to correct names.{ ( failed > 0 ? $ " Failed to move { failed } profiles to correct names." : string . Empty ) } ") ;
148
150
149
- _logger . Information ( "Directory load complete" ) ;
151
+ _logger . Information ( "Profiles load complete" ) ;
150
152
_event . Invoke ( ProfileChanged . Type . ReloadedAll , null , null ) ;
151
153
}
152
154
@@ -506,7 +508,7 @@ bool IsProfileAppliesToCurrentActor(Profile profile)
506
508
return profile . CharacterName . Text == name &&
507
509
( ! profile . LimitLookupToOwnedObjects ||
508
510
( actorIdentifier . Type == IdentifierType . Owned &&
509
- actorIdentifier . PlayerName ! = _actorManager . GetCurrentPlayer ( ) . PlayerName ) ) ;
511
+ actorIdentifier . PlayerName = = _actorManager . GetCurrentPlayer ( ) . PlayerName ) ) ;
510
512
}
511
513
512
514
if ( _templateEditorManager . IsEditorActive && _templateEditorManager . EditorProfile . Enabled && IsProfileAppliesToCurrentActor ( _templateEditorManager . EditorProfile ) )
0 commit comments