WAX_SCRIPTS_DIR is pointing to app folder not Contents folder #19

Closed
antonh opened this Issue Jan 30, 2011 · 1 comment

Comments

Projects
None yet
2 participants
@antonh

antonh commented Jan 30, 2011

wax_start("init.lua", nil) finds my init.lua file and puts("ZOMG, LUA IS RUNNING") only when it is at the same level as the Contents folder in the app package content. I'm using the dev branch.

Great framework BTW. Keep up the good work!

@antonh

This comment has been minimized.

Show comment Hide comment
@antonh

antonh Jan 31, 2011

in lib/lua/luaconf.h

under

// BEGIN WAX PATCH

#ifndef WAX_SCRIPTS_DIR

replacing

#define WAX_SCRIPTS_DIR "scripts"

with

#define WAX_SCRIPTS_DIR "Contents/scripts"

then

rake build

rake package the framework

corrects the behavior.

antonh commented Jan 31, 2011

in lib/lua/luaconf.h

under

// BEGIN WAX PATCH

#ifndef WAX_SCRIPTS_DIR

replacing

#define WAX_SCRIPTS_DIR "scripts"

with

#define WAX_SCRIPTS_DIR "Contents/scripts"

then

rake build

rake package the framework

corrects the behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment