dvize / Donuts

MIT License
16 stars 14 forks source link

Question: Where are the default preset values defined? #39

Closed GavinRay97 closed 6 months ago

GavinRay97 commented 6 months ago

I've tried to grep the codebase for starting-pmcs but I can't seem to find anything.

Curious how the default preset configs and JSON files are defined + written out? Thank you =)

(I ask because I am testing the GUI branch which doesn't seem to have a UI yet for swapping presets, and I want to change to starting-pmcs-only-live-like but it seems to use the display name as the preset, which I'm unsure of exactly:

{
  "pmcScenarioSelection": "Live Like (Random)",
}

image

dvize commented 6 months ago

The default values are defined in DefaultPluginVars > DefaultPluginVars. There is a constructor with the same name inside that cs file that has default values defined. Similar to how bepinex config is setup