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

📰 Warn User if Redmodding Tools not Available Either when Installing or when REDdeploying #330

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

effs
Copy link
Collaborator

@effs effs commented Dec 4, 2022

Creating another feature type to support this case.

Closes #305

@effs effs force-pushed the feat/308/warn-when-reddeploy-with-no-redtools branch from 9f150e7 to 2124524 Compare December 4, 2022 22:57
effs added 5 commits December 8, 2022 22:49
Split feature type stuff out for testability, re-export for now

Removed unused vortex settings path record. The paths are different
for the get/set cases so it's not useful.

Removed unused `IfFeatureEnabled`, might be useful later.
Because that's what it is. And we'll have a separate non-user-controlled
dynamic feature coming up next..
@effs effs force-pushed the feat/308/warn-when-reddeploy-with-no-redtools branch 2 times, most recently from dde38ff to 9d985ce Compare December 9, 2022 17:48
Comment on lines -41 to -48
export const detectREDmoddingDlc = (state: VortexState, gameId: string): VortexToolDiscovered => {
const tools = state.settings.gameMode.discovered[gameId]?.tools || {};
return Object.keys(tools).map((id) => tools[id])
.filter((iter) => (iter !== undefined) && (iter.path !== undefined))
.find((iter) => path.basename(iter.path).toLowerCase() === `redMod.exe`);
};


Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is removed because it wasn't used?

Copy link
Owner

@E1337Kat E1337Kat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good so far... I think

@effs effs force-pushed the feat/308/warn-when-reddeploy-with-no-redtools branch from 802322e to 1d1010b Compare December 15, 2022 01:53
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.

Warn User if Redmodding Support Not Detected when REDdeploying
2 participants