Advertisement
alestane

storyboard error exposure

May 1st, 2012
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.39 KB | None | 0 0
  1. do
  2.     local storyboard = require "storyboard"
  3.     local nativeGoto = storyboard.gotoScene
  4.     local nativeLoad = storyboard.loadScene
  5.     if nativeGoto then
  6.         storyboard.gotoScene = function(name, ...)
  7.             require(name)
  8.             return nativeGoto(name, ...)
  9.         end
  10.     end
  11.     if nativeLoad then
  12.         storyboard.loadScene = function(name, ...)
  13.             require(name)
  14.             return nativeLoad(name, ...)
  15.         end
  16.     end
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement