Skip to content
This repository was archived by the owner on Mar 10, 2026. It is now read-only.

Hot swap dev button properly placed#1

Closed
ilyvion wants to merge 3 commits intoZetrith:masterfrom
ilyvion-contrib:hot-swap-button
Closed

Hot swap dev button properly placed#1
ilyvion wants to merge 3 commits intoZetrith:masterfrom
ilyvion-contrib:hot-swap-button

Conversation

@ilyvion
Copy link
Copy Markdown

@ilyvion ilyvion commented May 25, 2024

In addition to the titular change, I've also done a few small quality-of-life changes:

  • HotSwap.csproj now has a property RimWorldVersion that can be set to 1.4 to build for 1.4 and 1.5 to build for 1.5. Defaults to 1.5 if not overridden. This sets the right OutputPath and depends on the correct Krafs.Rimworld.Ref version in each case.
  • Fixed a tiny bug in HotSwapKeyDefOf.cs where the DefOfHelper.EnsureInitializedInCtor was called on the wrong type
  • Created and assigned a custom hot swap icon to the dev button instead of using the icon for paste:
    HotSwap
  • Also added a mod icon for extra snazziness on 1.5:
    ModIcon

I have not updated the dlls because I don't think it's sensible to rely on external contributors providing safe ones in PRs.

@Zetrith
Copy link
Copy Markdown
Owner

Zetrith commented Mar 10, 2026

The project is getting archived. You can check out https://github.com/Zetrith/EditCompileReload for a different approach.

@Zetrith Zetrith closed this Mar 10, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants