this is the lua source:
local FullPath =CCUserDefault:getStringForKey(“sspath”)
in old version 2.0.1,this code is run ok,
but in version 2.0.3,will be error:
error in function ‘getStringForKey’.
argument #1 is ‘class CCUserDefault’; ‘CCUserDefault’ expected
why???
I think there a missing call to push_table_instance after the CCUserDefault table is create.
I tried to find out how to integrated it but I am not familiar enough with the code to do it.
You are sure that version 2.0.1 works? Could it have been an earlier version?
Andre
note:
CCUserDefault:sharedUserDefault():setIntegerForKey(“RC”, 99)
not
CCUserDefault:setIntegerForKey(“RC”, 99)
is the right code.
in your case
local FullPath =CCUserDefault:getStringForKey(“sspath”)
should be
local FullPath =CCUserDefault:sharedUserDefault():getStringForKey(“sspath”)
Far from obvious
Andre