Quote:
Originally Posted by Mark Nord
As there is no fskcache in the WIN version there is no way to get Core.system.getSoValue working with a unpached fskin.dll
|
I found a way to have getSoValue (and also setSoValue) working with a unpatched fskin.dll :-)
This is done by patching only prsp.xsb, having prsp.setSoValue and prsp.compile set as scriptable, and by some additional code in core_system.js compiling the missing functionality:
Code:
// 2010-08-15 Modified by Mark Nord
Core.system.cloneObj = Core.system.compile('Obj',"var result; result = new xs.newInstanceOf(Obj); return result;");
/* redo it via compile */
delete Core.system.getSoValue;
var getInstance = Core.system.compile('propName',"var s,v,i;s = propName.split('.');v = s.shift();i = this;while (v) {i = i[v];v = s.shift();}return i;");
Core.system.getSoValue = function (obj, propName) {
return getInstance.call(obj, propName);
};
Pls find only the modified files in the attached zip-archive.
[EDIT 26.08.2010]
To use the prsp.xsb functions you have to uncomment the line
<bytecode href="[applicationPath]prsp"/>
in <programmfolder>\eBookSim\eBookSim.xml
The attached zip is updated, too.
[\EDIT]
[Edit 2010-12-05]
Attachment removed, use latest code in post #59
[\Edit]