Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WAX_SCRIPTS_DIR is pointing to app folder not Contents folder #19

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

WAX_SCRIPTS_DIR is pointing to app folder not Contents folder #19

antonh opened this issue Jan 30, 2011 · 1 comment

Comments

@antonh
Copy link

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
Copy link
Author

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants