Skip to content

Commit

Permalink
fix to save Options mobile & corpose unicode
Browse files Browse the repository at this point in the history
  • Loading branch information
jeannsebold6666 committed Aug 28, 2024
1 parent 3001823 commit ef617bd
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/ClassicUO.Client/Game/Managers/NameOverHeadManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
// ## BEGIN - END ## // NAMEOVERHEAD IMPROVEMENTS // PKRION
using ClassicUO.Utility;
// ## BEGIN - END ## // NAMEOVERHEAD IMPROVEMENTS // PKRION
using System.Text.RegularExpressions;

namespace ClassicUO.Game.Managers
{
Expand Down Expand Up @@ -165,8 +166,17 @@ public static NameOverheadTypeAllowed TypeAllowed
// ## BEGIN - END ## // NAMEOVERHEAD
public static string LastActiveNameOverheadOption
{
get => ProfileManager.CurrentProfile.LastActiveNameOverheadOption;
set => ProfileManager.CurrentProfile.LastActiveNameOverheadOption = value;
get
{
string value = ProfileManager.CurrentProfile.LastActiveNameOverheadOption;
value = Regex.Unescape(value);
return value;
}
set
{
string decodedValue = Regex.Unescape(value);
ProfileManager.CurrentProfile.LastActiveNameOverheadOption = decodedValue;
}
}
// ## BEGIN - END ## // NAMEOVERHEAD

Expand Down

0 comments on commit ef617bd

Please sign in to comment.