Skip to content

Add experimental debug-only file association for Multiplayer saves#711

Merged
notfood merged 2 commits intorwmt:devfrom
mibac138:file-assoc
Sep 27, 2025
Merged

Add experimental debug-only file association for Multiplayer saves#711
notfood merged 2 commits intorwmt:devfrom
mibac138:file-assoc

Conversation

@mibac138
Copy link

Introduces a .rwmts extension for the assocation. Currently unused by Multiplayer itself - only created manually.

Introduces a .rwmts extension for the assocation. Currently unused by Multiplayer itself - only created manually.
@notfood notfood added the enhancement New feature or request. label Sep 23, 2025
@notfood
Copy link
Member

notfood commented Sep 27, 2025

I can't test this under Linux. Won't having Microsoft.Win32 cause issues for other OSes? I've skimmed through some random reports on the internet.

@mibac138
Copy link
Author

From my understanding just referencing Microsoft.Win32 isn't enough to cause issues by itself. (see here)

Platform-specific APIs will fail on other platforms. For example, Microsoft.Win32.Registry will succeed on Windows and throw PlatformNotSupportedException when used on any other OS.

Because of that, all access to the FileAssoc class is guarded by the platform == Windows check, so this shouldn't cause issues on other platforms - the functionality just isn't available. I've also added the platform check to the methods of FileAssoc to guard against accidental misuse.

@notfood notfood merged commit c13c0f9 into rwmt:dev Sep 27, 2025
1 check passed
@mibac138 mibac138 deleted the file-assoc branch September 27, 2025 22:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants