mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-14 19:29:36 +01:00
Add system for loading extra serializer strings.
"fixture-0" comes up a LOT so we load this manually now.
This commit is contained in:
@@ -371,6 +371,19 @@ namespace Robust.Server
|
||||
var reg = factory.GetRegistration(regType);
|
||||
_stringSerializer.AddString(reg.Name);
|
||||
}
|
||||
|
||||
using var extraMappedStrings = typeof(BaseServer).Assembly
|
||||
.GetManifestResourceStream("Robust.Server.ExtraMappedSerializerStrings.txt");
|
||||
|
||||
if (extraMappedStrings != null)
|
||||
{
|
||||
using var sr = new StreamReader(extraMappedStrings);
|
||||
string? line;
|
||||
while ((line = sr.ReadLine()) != null)
|
||||
{
|
||||
_stringSerializer.AddString(line);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private bool SetupLoki()
|
||||
|
||||
1
Robust.Server/ExtraMappedSerializerStrings.txt
Normal file
1
Robust.Server/ExtraMappedSerializerStrings.txt
Normal file
@@ -0,0 +1 @@
|
||||
fixture-0
|
||||
@@ -29,6 +29,9 @@
|
||||
<Content Include="server_config.toml">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<EmbeddedResource Include="ExtraMappedSerializerStrings.txt">
|
||||
<LogicalName>Robust.Server.ExtraMappedSerializerStrings.txt</LogicalName>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
<Import Project="..\MSBuild\Robust.Engine.targets" />
|
||||
</Project>
|
||||
|
||||
Reference in New Issue
Block a user