diff --git a/SharpPluginLoader.Core/IO/MtFile.cs b/SharpPluginLoader.Core/IO/MtFile.cs index 842a217..489c3cb 100644 --- a/SharpPluginLoader.Core/IO/MtFile.cs +++ b/SharpPluginLoader.Core/IO/MtFile.cs @@ -21,7 +21,7 @@ public unsafe class MtFile : MtObject, IDisposable public static MtFile? Open(string path, OpenMode mode, bool createPath = true) { var dti = MtDti.Find("MtFile"); - if (dti is null) + if (dti is null) return null; var file = new MtFile(MemoryUtil.Alloc(dti.Size)) @@ -38,7 +38,7 @@ public unsafe class MtFile : MtObject, IDisposable /// /// Gets the path of the file. /// - public string Path => new(GetPtr(0x10)); + public string Path => new(GetPtrInline(0x10)); /// /// Gets the file pointer.