mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-09-25 00:05:07 +00:00
Handle future model fix
This commit is contained in:
@@ -127,6 +127,15 @@ namespace SabreTools.Serialization
|
||||
if (rsdsProgramDatabase.Signature != 0x53445352)
|
||||
return null;
|
||||
|
||||
#if NET20 || NET35 || NET40 || NET452 || NET462
|
||||
// Convert ASCII string to UTF-8
|
||||
if (rsdsProgramDatabase.PathAndFileName != null)
|
||||
{
|
||||
byte[] bytes = Encoding.ASCII.GetBytes(rsdsProgramDatabase.PathAndFileName);
|
||||
rsdsProgramDatabase.PathAndFileName = Encoding.UTF8.GetString(bytes);
|
||||
}
|
||||
#endif
|
||||
|
||||
return rsdsProgramDatabase;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user