Changes

Jump to navigation Jump to search
m
→‎Mod path: tweak wording for readability
Line 6: Line 6:  
===Mod path===
 
===Mod path===
 
Before handling mod folder paths, be aware that:
 
Before handling mod folder paths, be aware that:
* The '''mod's folder path is not consistent'''. The game is installed to different paths, Nexus mods are often unzipped into a folder like <tt>Mods/Your Mod Name 1.27.5-541-1-27-5-1598664794/YourModFolder</tt> by default, and players can organize their mod folders like <tt>Mods/For single-player/YourModFolder</tt>.
+
* The '''mod's folder path is not consistent'''. The game is installed to different folders, Nexus mods are often unzipped into a folder like <tt>Mods/Your Mod Name 1.27.5-541-1-27-5-1598664794/YourModFolder</tt> by default, and players can organize their mod folders like <tt>Mods/For single-player/YourModFolder</tt>.
 
* Paths are formatted differently on Linux/Mac/Android vs Windows.
 
* Paths are formatted differently on Linux/Mac/Android vs Windows.
   −
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 format if needed:
 
<source lang="c#">
 
<source lang="c#">
 
var data = this.Helper.Data.ReadJsonFile<SomeDataModel>("assets/data.json");
 
var data = this.Helper.Data.ReadJsonFile<SomeDataModel>("assets/data.json");
translators
8,403

edits

Navigation menu