View Single Post
Old 08-23-2010, 03:47 PM   #27
Mark Nord
2B || !2B
Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.
 
Posts: 854
Karma: 327896
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
Quote:
Originally Posted by Mark Nord View Post
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]

Last edited by Mark Nord; 12-06-2010 at 02:37 AM. Reason: attachement removed
Mark Nord is offline   Reply With Quote