diff examples/menu/main.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/main.c	Wed Aug 05 17:46:03 2009 +0800
+++ b/examples/menu/main.c	Wed Aug 05 19:34:59 2009 +0800
@@ -74,9 +74,9 @@
     mb_timeval_t tmo,interval;
 
     if (argc > 1) 
-	    myApp = MBApp_Init(argv[1]);
+	myApp = MBApp_Init(argv[1], "");
     else
-	    myApp = MBApp_Init(".libs/list");
+	myApp = MBApp_Init("list", ".libs");
     MBApp_setData(myApp,&data);
     MyApp_InitContent();