NWF Add Functions from additional RPL.

  • Thread starter Thread starter BigPanda
  • Start date Start date
  • Views Views 452
  • Replies Replies 0
  • Likes Likes 1

BigPanda

Well-Known Member
Member
Joined
Jul 18, 2016
Messages
221
Reaction score
136
Trophies
0
XP
2,156
Country
Belgium
Out of curiosity, anyone ever tried or posted the way to add NWF JavaScript support from additional RPL files.

Let's say I create a new RPL with a single function named PrintHello() and want to access it from NWF JavaScript.
Post automatically merged:

So far I found that the RPL must include the following functions:

void jsextension_load
void jsextension_unload

jsextension_load seems to create the JavaScript object in NWF by calling JSObjectMake() that is linked in libwebkitwiiu_rpl.rpl.

The config.xml file of your project must include the following tag with the name of the RPL (Example ext-example.rpl):

<feature name="ext-example"/>
 
Last edited by BigPanda,
  • Like
Reactions: SDIO

Site & Scene News

Popular threads in this forum