kumakore / kumakore-sdk

Kumakore SDK
http://www.kumakore.com
3 stars 0 forks source link

Error on KumakoreApp.load() #43

Closed Callabrator closed 10 years ago

Callabrator commented 10 years ago

On SDK v0.5.5 Unity spits out an error if no .kkp exists on disk when calling load()...like for instance on fresh install. App does start up successfully if .kkp does exist.

KumakoreApp '/Users/dcalla/Library/Caches/Oh So Shiny/Toro//b9c5bfb3df70505b70e078db126872d1.kkp' does not exist. UnityEngine.Debug:LogError(Object) com.kumakore.Kumakore:LOGE(String, String) com.kumakore.KumakoreApp:load(String)

chbfiv commented 10 years ago

I'll change load to boolean load(String path)

and only log if it's a critical error.

I'll so the same for save.

chbfiv commented 10 years ago

added: bool load() to use the createDataPath(API_KEY) by default bool save() to use the createDataPath(API_KEY) by default

refactored: void load(String path) into bool load(String path) void save(String path) into bool save(String path)

Only log errors for critical problems (not file not found)