Subversion Repositories freemyipod

Rev

Rev 823 | Rev 833 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 823 Rev 830
Line 32... Line 32...
32
 
32
 
33
 
33
 
34
struct libboot_api* boot;
34
struct libboot_api* boot;
35
struct libui_api* ui;
35
struct libui_api* ui;
36
void* framebuf;
36
void* framebuf;
-
 
37
void* framebuf2;
37
void* bg;
38
void* bg;
38
void* icons;
39
void* icons;
39
void* rbxlogo;
40
void* rbxlogo;
40
 
41
 
41
 
42
 
Line 81... Line 82...
81
        struct emcorelib_header* libui = loadlib(LIBUI_IDENTIFIER, LIBUI_API_VERSION, "libui   ");
82
        struct emcorelib_header* libui = loadlib(LIBUI_IDENTIFIER, LIBUI_API_VERSION, "libui   ");
82
        ui = (struct libui_api*)libui->api;
83
        ui = (struct libui_api*)libui->api;
83
        
84
        
84
        framebuf = malloc(320 * 240 * 3);
85
        framebuf = malloc(320 * 240 * 3);
85
        if (!framebuf) panicf(PANIC_KILLTHREAD, "Could not allocate framebuffer!");
86
        if (!framebuf) panicf(PANIC_KILLTHREAD, "Could not allocate framebuffer!");
-
 
87
        framebuf2 = malloc(320 * 240 * 3);
-
 
88
        if (!framebuf2) panicf(PANIC_KILLTHREAD, "Could not allocate framebuffer 2!");
86
 
89
 
87
        mainchooser_init();
90
        mainchooser_init();
88
        toolchooser_init();
91
        toolchooser_init();
89
        settingchooser_init();
92
        settingchooser_init();
-
 
93
        confirmchooser_init();
90
        
94
        
91
        run_mainchooser(&firmware, &app, &size);
95
        run_mainchooser(&firmware, &app, &size);
92
        
96
        
-
 
97
        free(framebuf2);
93
        free(framebuf);
98
        free(framebuf);
94
        free(rbxlogo);
99
        free(rbxlogo);
95
        free(icons);
100
        free(icons);
96
        free(bg);
101
        free(bg);
97
        release_library(libui);
102
        release_library(libui);