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

Feature Request: variables #117

Open
CatcherITGF opened this issue Aug 29, 2024 · 1 comment
Open

Feature Request: variables #117

CatcherITGF opened this issue Aug 29, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@CatcherITGF
Copy link

It will make it possible to define parameters in one place and then use them throughout the package. This can be useful for kip offsets. When updating the kip, it will be possible to change only the values of variables that will be applied in all declared places.

Definition:

var SwitchCraft = '/atmosphere/kips/sc_loader.kip'

var SCCustTable = [
  commonCpuBoostClock = 4,
  commonCpuUV = 8,
  marikoCpuMinVolt = 12,
  eristaGpuUV = 16
]

Сalling:

Wizard Configurator

[*UV Level]
catch_errors
json_mark_cur_kip '/switch/.packages/SC Wizard/Configure/CPU/json/eristaCpuUV.json' name SCCustTable.commonCpuUV
hex-by-cust-offset-dec SwitchCraft SCCustTable.commonCpuUV {json_mark_cur_kip(*,dec)}
back

Kip Management:

  {
    "name": "UV Level",
    "offset": "SCCustTable.commonCpuUV",
    "length": "1"
  },

I do not insist on such an implementation, these are just an example of how it can be used.

@CatcherITGF
Copy link
Author

var may not be a very good name for a data warehouse in this context. It will depend on the implementation. If they can be redefined anywhere, then yes. And if not, then you can implement const.

@IrneRacoonovich IrneRacoonovich added the enhancement New feature or request label Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants