abl / empebble

emscripten + pebble = ?
13 stars 3 forks source link

Function pointers broken? #4

Closed abl closed 10 years ago

abl commented 10 years ago

This is when trying to invoke layer->update_proc(...):

Uncaught TypeError: Property '0' of object [object Array] is not a function
_layer_mark_dirty
_window_stack_push
_handle_init
_app_event_loop
_pbl_main
_main
callMain
doRun

@mwylde, thoughts? https://github.com/aleksandyr/pTOTP is what I'm working on. (Note that you'll need my fork which contains your changes and also has my modifications to support loading resources.)

abl commented 10 years ago

Nevermind. Looks like some of the code isn't faithful enough to the underlying Pebble bits.