Skip to content

Conversation

@TheBestAstroNOT
Copy link
Contributor

@TheBestAstroNOT TheBestAstroNOT commented Dec 10, 2025

No description provided.

@TheBestAstroNOT TheBestAstroNOT changed the title Prompt user to select supported applications for a mod in the case wh… Check Downloaded and Drag & Dropped Mods for Targetted Game and Warn If None Dec 10, 2025
@TheBestAstroNOT
Copy link
Contributor Author

Only works for drag and dropping right now, working on support for mods installed via the R2 protocol (it isn't going well)

@TheBestAstroNOT TheBestAstroNOT marked this pull request as ready for review December 10, 2025 19:39
@TheBestAstroNOT
Copy link
Contributor Author

PR for #751

@TheBestAstroNOT
Copy link
Contributor Author

I also made these two mods to test it https://github.com/TheBestAstroNOT/psychic-happiness/releases/tag/1.0.0

@TheBestAstroNOT
Copy link
Contributor Author

@dreamsyntax are there any changes you would like to see?

@dreamsyntax
Copy link
Contributor

dreamsyntax commented Dec 11, 2025

Ok, now I've properly tested this build.

Drag & Drop
image

"No" instead of "Cancel" makes more sense, since the mod itself still gets installed, we just don't set the supported app.

Ideally there would be three options
"No" -> no edit, but keeps the mod installed
"Yes" -> edit screen
"Abort/Cancel" -> does not install the mod at all

Since this happens after a download for example though, I think its fine to just change it to
"No" and "Yes" to be more clear that the mod will still be installed.

--

Mod Loader Download Button

  • Does not seem to invoke this flow at all

R2 Links (Gamebanana)

  • Invokes flow successfully

@TheBestAstroNOT
Copy link
Contributor Author

@dreamsyntax Can you test the mod loader's one click download button again, I'd do it myself but I don't know of any mods that I can test with.

@dreamsyntax
Copy link
Contributor

@dreamsyntax Can you test the mod loader's one click download button again, I'd do it myself but I don't know of any mods that I can test with.

I'll try later today.

If you want to test in interim:

If you add any exe renamed as tsonic_win.exe, it will add Sonic Heroes as a gamebanana source. You'll be able to see 64 Mario skin for that game in the download manager, which has the issue.

1 similar comment
@dreamsyntax
Copy link
Contributor

@dreamsyntax Can you test the mod loader's one click download button again, I'd do it myself but I don't know of any mods that I can test with.

I'll try later today.

If you want to test in interim:

If you add any exe renamed as tsonic_win.exe, it will add Sonic Heroes as a gamebanana source. You'll be able to see 64 Mario skin for that game in the download manager, which has the issue.

@TheBestAstroNOT
Copy link
Contributor Author

image Ok it seems to be working

Comment on lines -13 to -16
public XamlResourceMessageBoxOkCancel(string titleResourceName, string descriptionResourceName, string okButtonTextResourceName, string cancelButtonTextResourceName) : base(new XamlResource<string>(titleResourceName).Get(), new XamlResource<string>(descriptionResourceName).Get())
public XamlResourceMessageBoxOkCancel(string title, string message, string okText, string cancelText) : base(title, message)
{
this.CancelBtn.Content = Lib.Static.Resources.ResourceProvider.Get<string>(cancelButtonTextResourceName);
this.OKBtn.Content = Lib.Static.Resources.ResourceProvider.Get<string>(okButtonTextResourceName);
Copy link
Contributor

Choose a reason for hiding this comment

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

Unless I'm missing something, wouldn't this replace every instance of Ok/Cancel to Yes/No?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Uhh no? You are passing the text every time you call it. Plus other message boxes use another delegate to display their text. Only I'm using this one.

@dreamsyntax
Copy link
Contributor

Tested.

Feature works as expected now.

@Sewer56 on any objections with the code?

I left a comment about the resource, the rest looks fine.

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