Mercurial > MadButterfly
comparison examples/menu/filebrowser.c @ 453:84ce2d4a8c3f
Change interface of sprite loader.
- Users can set a path where sprites should be loaded from.
- Users must pass a module root to MBApp_Init() to specify path
for loading sprites.
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Wed, 05 Aug 2009 19:34:59 +0800 |
parents | 31b6633e3538 |
children | 9b8dda201ccb |
comparison
equal
deleted
inserted
replaced
452:cb10f3424f3a | 453:84ce2d4a8c3f |
---|---|
224 | 224 |
225 if (argc > 1) | 225 if (argc > 1) |
226 dir = argv[1]; | 226 dir = argv[1]; |
227 else | 227 else |
228 dir ="/tmp"; | 228 dir ="/tmp"; |
229 myApp = MBApp_Init(".libs/browser"); | 229 myApp = MBApp_Init("browser", ".libs"); |
230 MBApp_setData(myApp,&data); | 230 MBApp_setData(myApp,&data); |
231 MyApp_InitContent(dir); | 231 MyApp_InitContent(dir); |
232 | 232 |
233 MBApp_loop(myApp); | 233 MBApp_loop(myApp); |
234 | 234 |