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

Allow options override via CLI #93

Closed
Tracked by #130
x87 opened this issue Nov 16, 2020 · 4 comments
Closed
Tracked by #130

Allow options override via CLI #93

x87 opened this issue Nov 16, 2020 · 4 comments
Labels
priority:p3 Low priority scope:IDE type:feature New feature or request type:nice-to-have minor enhancements
Milestone

Comments

@x87
Copy link
Collaborator

x87 commented Nov 16, 2020

Can make command in CLI where used concrete case converting text strings? By default compiler use the setting SB. For example:

-string_case upper // or lower, as is

It will help avoid the need to edit settings. Useful when need to use formatting text:

0AD0: show_formatted_text_lowpriority "Text: %d" time 2000 1 // uppercase: INCORRECT FORMAT
0AD0: show_formatted_text_lowpriority "Text: %d" time 2000 1 // lowercase: good format. But other text is always small
0AD0: show_formatted_text_lowpriority "Text: %d" time 2000 1 // as is: GOOD

Or is this feature already there?

Originally posted by @wmysterio in #14 (comment)

@x87 x87 changed the title Can make command in CLI where used concrete case converting text strings? By default compiler use the setting SB. For example: Allow options override via CLI Nov 16, 2020
@x87 x87 added scope:IDE type:feature New feature or request type:nice-to-have minor enhancements priority:p3 Low priority labels Nov 16, 2020
@x87
Copy link
Collaborator Author

x87 commented Nov 16, 2020

CLI should allow overriding Sanny's settings. Example:

sanny.exe -o Decompiler::AlwaysWriteOpcodes=0

sets the Write opcodes to off.

  • Should support hot updating (when Sanny is running)
  • Need to cleanup and standardize settings names

@wmysterio
Copy link

wmysterio commented Nov 16, 2020

when Sanny is running

I had a problem with Sunny before using the CLI. If the SB process is running, the IDE opens the input file without compiling (opens as a new tab).

And after compilation, the SB process continue to work. It is necessary to forcibly abort the process in the program before a new call (Maybe this program does not allow the process to terminate on its own; need to test in detail).

@x87 x87 mentioned this issue Jun 6, 2021
48 tasks
@x87
Copy link
Collaborator Author

x87 commented Jun 6, 2021

Added new --option parameter
https://docs.sannybuilder.com/cli#option

@x87 x87 added this to the v3.8.0 milestone Jun 6, 2021
@x87
Copy link
Collaborator Author

x87 commented Jun 19, 2021

Renamed some options in v3.8.0-alpha.4

Smart --> Editor::SemanticConstHighlighting
Engine::ShowProgress --> Editor::ShowProgress
Engine::ShowReport --> Editor::ShowReport
QuickGameLoading --> Editor::QuickGameLoading
Editor::LookingDepth --> Editor::ScanDistance
Lang --> Editor::Lang
Formats::HexadimalOffsets --> Decompiler::HexadimalOffsets
Formats::LabelsFormat --> Decompiler::LabelsFormat
CustomNames::CustomNamesFormat --> CustomNames::Format

@x87 x87 closed this as completed Jul 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority:p3 Low priority scope:IDE type:feature New feature or request type:nice-to-have minor enhancements
Projects
None yet
Development

No branches or pull requests

2 participants