Changes

Jump to navigation Jump to search
→‎Mod path: use 'this.Helper' form so it works outside Entry method
Line 11: Line 11:  
You don't need to worry about that when using SMAPI APIs, which take relative paths and automatically fix the path format if needed:
 
You don't need to worry about that when using SMAPI APIs, which take relative paths and automatically fix the path format if needed:
 
<source lang="c#">
 
<source lang="c#">
var data = helper.Data.ReadJsonFile<SomeDataModel>("assets/data.json");
+
var data = this.Helper.Data.ReadJsonFile<SomeDataModel>("assets/data.json");
 
</source>
 
</source>
  
translators
8,404

edits

Navigation menu