Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add toggle option to core mode trigger #671

Merged

Conversation

microlith57
Copy link
Member

this adds an CoreModeTrigger.Modes enum, which is the same as Session.CoreModes but with an extra Toggle option at the end.
this is used for the mode attribute, and when it is set to Toggle, the trigger toggles the core mode.
this means that when it is cold, it becomes hot, and vice versa; nothing happens if the core mode is None.

@microlith57
Copy link
Member Author

@Kalobi pointed out that this could in theory break existing core mode triggers; as such do not merge until this is tested

@microlith57
Copy link
Member Author

now tested with existing triggers!

@Kalobi Kalobi merged commit 0e63a48 into EverestAPI:dev Nov 9, 2023
1 check passed
@microlith57 microlith57 deleted the feature/core_mode_toggle_trigger branch November 12, 2023 01:46
SnipUndercover added a commit to SnipUndercover/Everest that referenced this pull request Apr 27, 2024
EverestModuleAssemblyContext.LoadUnmanagedFromThisMod() accesses the
module meta's Hash. If a P/Invoke occurs in EverestModule.Load, the Hash
has not yet been computed. This commit fixes that by calculating the
hash if it is null.

Fixes EverestAPI#671.
SnipUndercover added a commit to SnipUndercover/Everest that referenced this pull request Apr 27, 2024
EverestModuleAssemblyContext.LoadUnmanagedFromThisMod() accesses the
module meta's Hash. If a P/Invoke occurs in EverestModule.Load(), the
Hash has not yet been computed. This commit fixes that by calculating
the Hash if it is null.

Fixes EverestAPI#671.
SnipUndercover added a commit to SnipUndercover/Everest that referenced this pull request Apr 27, 2024
EverestModuleAssemblyContext.LoadUnmanagedFromThisMod(string) accesses
the module meta's Hash. If a P/Invoke occurs in EverestModule.Load(),
the Hash has not yet been computed, which crashes the game.

This commit fixes that by calculating the Hash if it is null.

Fixes EverestAPI#671.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants