Hotpatch for map loading test fail.

This commit is contained in:
Moony
2026-02-08 15:33:30 +01:00
committed by PJB3005
parent 686c47a193
commit 48dbcf7fd4
2 changed files with 7 additions and 7 deletions

View File

@@ -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)

View File

@@ -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)