mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-14 19:29:36 +01:00
Hotpatch for map loading test fail.
This commit is contained in:
@@ -71,7 +71,7 @@ public sealed partial class MapLoaderSystem
|
||||
{
|
||||
result = null;
|
||||
|
||||
if (!TryReadFile(file, out var data))
|
||||
if (!TryReadFile(file.ToRootedPath(), out var data))
|
||||
return false;
|
||||
|
||||
return TryLoadGeneric(data, file.ToString(), out result, options);
|
||||
@@ -227,7 +227,7 @@ public sealed partial class MapLoaderSystem
|
||||
DeserializationOptions? options = null)
|
||||
{
|
||||
entity = null;
|
||||
if (!TryGetReader(file, out var reader))
|
||||
if (!TryGetReader(file.ToRootedPath(), out var reader))
|
||||
return false;
|
||||
|
||||
using (reader)
|
||||
@@ -281,7 +281,7 @@ public sealed partial class MapLoaderSystem
|
||||
Angle rot = default)
|
||||
{
|
||||
grid = null;
|
||||
if (!TryGetReader(file, out var reader))
|
||||
if (!TryGetReader(file.ToRootedPath(), out var reader))
|
||||
return false;
|
||||
|
||||
using (reader)
|
||||
@@ -340,7 +340,7 @@ public sealed partial class MapLoaderSystem
|
||||
{
|
||||
grid = null;
|
||||
map = null;
|
||||
if (!TryGetReader(file, out var reader))
|
||||
if (!TryGetReader(file.ToRootedPath(), out var reader))
|
||||
return false;
|
||||
|
||||
using (reader)
|
||||
|
||||
@@ -32,7 +32,7 @@ public sealed partial class MapLoaderSystem
|
||||
{
|
||||
map = null;
|
||||
grids = null;
|
||||
if (!TryGetReader(file, out var reader))
|
||||
if (!TryGetReader(file.ToRootedPath(), out var reader))
|
||||
return false;
|
||||
|
||||
using (reader)
|
||||
@@ -101,7 +101,7 @@ public sealed partial class MapLoaderSystem
|
||||
{
|
||||
map = null;
|
||||
grids = null;
|
||||
if (!TryGetReader(file, out var reader))
|
||||
if (!TryGetReader(file.ToRootedPath(), out var reader))
|
||||
return false;
|
||||
|
||||
using (reader)
|
||||
@@ -168,7 +168,7 @@ public sealed partial class MapLoaderSystem
|
||||
Angle rot = default)
|
||||
{
|
||||
grids = null;
|
||||
if (!TryGetReader(file, out var reader))
|
||||
if (!TryGetReader(file.ToRootedPath(), out var reader))
|
||||
return false;
|
||||
|
||||
using (reader)
|
||||
|
||||
Reference in New Issue
Block a user