Allow LLPeEditor the ability to name the output file; Fix plugin imports. #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello folks! I am the author of BedrockManagementService, A windows service that allows for the automation behind building and maintaining multiple server endpoints. A fellow user and developer contacted me one day, curious as to whether or not I believed BMS would be capable of running LL modified software.
Fast forward to yesterday - I have added functionality via command-line option ("o" or "out") to LLPeEditor that would allow the production of modded executable of a chosen name. As it was already found to be more of a challange than simply renaming the file, a pair of functions were written to process dll files in the plugins folder, renaming the named import to the new, designated filename.
A second command option was added to allow the use of LLPeEditor to simply fix existing plugins to a named executable. The idea here is to allow the user (or in my case, the software), to add a plugin and quickly fix the import, then immediately exit, providing that noPause is also used.
Lastly, I recommend that "q" (for "quiet") be added as an alternative shortcut to noPause. I also recommend here that mPause, the local variable behind noPause, be renamed to "mShouldPause" for clarity purposes.
With all of these changes, running "LLPeEditor" with no command-line options still behaves the same as it did prior to these modifications, minus a few string variations.
Please, let me know what you think, and if some changes should be made to make it work in situations I cannot test for (I see we convert wide-char to char for paths, hopefully I met qualifications here.), I am more than happy to oblige!
Thank you and my best regards,
Crowbarmaster (Tad).