Closed chbfiv closed 10 years ago
removed old pref models, and now use JSON and allow the developer to define the path. Kumakore.BuildPrefPath(String filename), builds a path using the platform recommended Paths.
Kumakore ... public static readonly String DEFAULT_PREF_EXT = ".kkp";
public static readonly String DATA_PATH = Application.persistentDataPath;
public static readonly String DATA_PATH = AppDomain.CurrentDomain.BaseDirectory;
public static String BuildPrefPath(String filename) {
return Kumakore.DATA_PATH + filename + DEFAULT_PREF_EXT;
}
Example load/save
_app.load(Kumakore.BuildPrefPath(API_KEY));
_app.save(Kumakore.BuildPrefPath(API_KEY));
Saving is currently not saving the user information. Include this in the fix.