comparison 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
comparison
equal deleted inserted replaced
452:cb10f3424f3a 453:84ce2d4a8c3f
72 mb_obj_t *button; 72 mb_obj_t *button;
73 MyAppData data; 73 MyAppData data;
74 mb_timeval_t tmo,interval; 74 mb_timeval_t tmo,interval;
75 75
76 if (argc > 1) 76 if (argc > 1)
77 myApp = MBApp_Init(argv[1]); 77 myApp = MBApp_Init(argv[1], "");
78 else 78 else
79 myApp = MBApp_Init(".libs/list"); 79 myApp = MBApp_Init("list", ".libs");
80 MBApp_setData(myApp,&data); 80 MBApp_setData(myApp,&data);
81 MyApp_InitContent(); 81 MyApp_InitContent();
82 82
83 MBApp_loop(myApp); 83 MBApp_loop(myApp);
84 84