Changes

Jump to navigation Jump to search
→‎JSON files: rm 2.8 note to prevent confusion
Line 25: Line 25:  
* store JSON files in a subfolder, by specifying a path relative to your mod folder (like <code>"data/some-file.json"</code>). SMAPI will create the folders automatically if needed.
 
* store JSON files in a subfolder, by specifying a path relative to your mod folder (like <code>"data/some-file.json"</code>). SMAPI will create the folders automatically if needed.
 
* create per-save JSON files by using the save ID in the name, like <code>$"data/{Constants.SaveFolderName}.json"</code>.
 
* create per-save JSON files by using the save ID in the name, like <code>$"data/{Constants.SaveFolderName}.json"</code>.
  −
{{SMAPI upcoming|2.8|content=The methods are now <tt>this.Helper.Data.ReadJsonFile</tt> and <tt>this.Helper.Data.WriteJsonFile</tt>.}}
      
===Save data===
 
===Save data===
translators
8,437

edits

Navigation menu