Skip to content

[Bug] Hot Reload problem #4

Description

@Doushabo

Game Version: v5.0.0
Melonloader Version: v0.6.1
Mod Version: v1.4.1
Log file: Latest.log

I don't know if it's a bug
I modified the cfg file with Notepad and saved it without any problems,
But after I modified and saved it with vscode, the hot reload failed

Error:

[SelectiveEffects] Error while Loading Preferences from UserData/SelectiveEffects.cfg: System.IO.IOException: The process cannot access the file 'G:\Steam\steamapps\common\Muse Dash\UserData\SelectiveEffects.cfg' because it is being used by another process.
   at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)
   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
   at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
   at System.IO.Strategies.FileStreamHelpers.ChooseStrategy(FileStream fileStream, String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, Int64 preallocationSize)
   at System.IO.StreamReader.ValidateArgsAndOpenPath(String path, Encoding encoding, Int32 bufferSize)
   at System.IO.File.InternalReadAllText(String path, Encoding encoding)
   at System.IO.File.ReadAllText(String path)
   at Tomlet.TomlParser.ParseFile(String filePath) in /_/Tomlet/TomlParser.cs:line 27
   at MelonLoader.Preferences.IO.File.Load() in D:\a\MelonLoader\MelonLoader\MelonLoader\Preferences\IO\File.cs:line 84
   at MelonLoader.MelonPreferences.LoadFileAndRefreshCategories(File file, Boolean printmsg) in D:\a\MelonLoader\MelonLoader\MelonLoader\Preferences\MelonPreferences.cs:line 313

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions