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

feat: Encourage developers to use DLLs for devPlugins #1958

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

NotNite
Copy link
Contributor

@NotNite NotNite commented Jul 22, 2024

Discussed here.

Adds a button to pick a .dll for the dev plugin path, as well as removes the directory scan logic. While directory search hasn't been encouraged for a while now, there may still be people who use it, so this probably is gonna break someone's workflow.

image

@NotNite NotNite requested a review from a team as a code owner July 22, 2024 14:46
@Haselnussbomber
Copy link
Contributor

Text above the plugin needs to be updated. Still says can be either directory or dll path.

@NotNite
Copy link
Contributor Author

NotNite commented Jul 22, 2024

Text above the plugin needs to be updated. Still says can be either directory or dll path.

I'm blind

@Haselnussbomber
Copy link
Contributor

Sorry meant button, not plugin. But you got it. 👍

@KazWolfe KazWolfe changed the title Dev plugin stuff feat: Encourage developers to use DLLs for devPlugins Jul 22, 2024
Comment on lines -789 to -793
if (Directory.Exists(setting.Path))
{
devDllFiles.AddRange(new DirectoryInfo(setting.Path).GetFiles("*.dll", SearchOption.AllDirectories));
}
else if (File.Exists(setting.Path))
Copy link
Member

Choose a reason for hiding this comment

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

For now, let's keep the recursive loading mode but just block setting folders in UI.

Removing this behavior should be an api11 todo so we have time to announce it.

ImGuiHelpers.SafeTextColoredWrapped(ImGuiColors.DalamudGrey, Loc.Localize("DalamudSettingsDevPluginLocationsHint", "Add dev plugin load locations.\nThese can be either the directory or DLL path."));
ImGuiHelpers.SafeTextColoredWrapped(ImGuiColors.DalamudGrey, Loc.Localize("DalamudSettingsDevPluginLocationsHint", "Add dev plugin load locations.\nThis must be a path to the plugin DLL."));

var locationSelect = Loc.Localize("DalamudDevPluginLocationSelect", "Select Dev Plugin Location");
Copy link
Member

Choose a reason for hiding this comment

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

Please change this label to Select DLL or similar.

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.

3 participants