diff 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
line wrap: on
line diff
--- a/examples/menu/filebrowser.c	Wed Aug 05 17:46:03 2009 +0800
+++ b/examples/menu/filebrowser.c	Wed Aug 05 19:34:59 2009 +0800
@@ -226,7 +226,7 @@
 	    dir = argv[1];
     else
 	    dir ="/tmp";
-    myApp = MBApp_Init(".libs/browser");
+    myApp = MBApp_Init("browser", ".libs");
     MBApp_setData(myApp,&data);
     MyApp_InitContent(dir);