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

Editor --plugin command line argument #602

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

Conversation

gleblebedev
Copy link
Contributor

Editor now accepts --plugin command as an argument.

The plugin name treated as an "implicit plugin", i.e it is injected into project even if it is not mentioned in the project configuration.

nt->OptionalHeader.Magic is ignored because netstandard2.0 assembly seems to be marked as 32-bit even if built for x64 platform and it works just fine.

@@ -363,7 +363,7 @@ ModuleType DynamicModule::ReadModuleInformation(Context* context, const ea::stri
return MODULE_INVALID;

auto* nt = reinterpret_cast<PIMAGE_NT_HEADERS>(data.data() + dos->e_lfanew);
if (!IsValidPtr(data, dos) || nt->OptionalHeader.Magic != IMAGE_NT_OPTIONAL_HDR_MAGIC)
if (!IsValidPtr(data, dos))// || nt->OptionalHeader.Magic != IMAGE_NT_OPTIONAL_HDR64_MAGIC)
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't do that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

But it's wrong?

@rokups
Copy link
Member

rokups commented Sep 3, 2023

User will definitely want to have more than one plugin. IMO this should better be in a shape of adding multiple additional plugin search paths. All plugins can be enabled by default if plugin state is not configured in the editor (not sure how it works now).

@gleblebedev
Copy link
Contributor Author

User will definitely want to have more than one plugin. IMO this should better be in a shape of adding multiple additional plugin search paths. All plugins can be enabled by default if plugin state is not configured in the editor (not sure how it works now).

Is it absolute must?

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