Subversion Repositories freemyipod

Rev

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

Rev 692 Rev 835
Line 25... Line 25...
25
#include "libpng.h"
25
#include "libpng.h"
26
#include "libui.h"
26
#include "libui.h"
27
#include "libmkfat32.h"
27
#include "libmkfat32.h"
28
 
28
 
29
 
29
 
30
void main();
30
void main(int argc, const char** argv);
31
EMCORE_APP_HEADER("emCORE installer", main, 127)
31
EMCORE_APP_HEADER("emCORE installer", main, 127)
32
 
32
 
33
 
33
 
34
extern char background_png[];
34
extern char background_png[];
35
extern uint32_t background_png_size;
35
extern uint32_t background_png_size;
Line 123... Line 123...
123
void fat32_progressbar_update(void* user, int current)
123
void fat32_progressbar_update(void* user, int current)
124
{
124
{
125
    progressbar_setpos((struct progressbar_state*)user, current, false);
125
    progressbar_setpos((struct progressbar_state*)user, current, false);
126
}
126
}
127
 
127
 
128
void main(void)
128
void main(int argc, const char** argv)
129
{
129
{
130
    uint32_t i, j, k, rc;
130
    uint32_t i, j, k, rc;
131
    uint32_t dummy;
131
    uint32_t dummy;
132
    struct progressbar_state progressbar;
132
    struct progressbar_state progressbar;
133
    bool appleflash = false;
133
    bool appleflash = false;
Line 342... Line 342...
342
    displaylcd(77, 100, 165, 36, framebuf, 0, 0, 165);
342
    displaylcd(77, 100, 165, 36, framebuf, 0, 0, 165);
343
    backlight_set_fade(32);
343
    backlight_set_fade(32);
344
    backlight_set_brightness(177);
344
    backlight_set_brightness(177);
345
    backlight_on(true);
345
    backlight_on(true);
346
 
346
 
347
    remove("/.boot/init.emcoreapp");
-
 
348
    int cost;
347
    int cost;
349
    if (updating)
348
    if (updating)
350
    {
349
    {
351
        cost = commoncost;
350
        cost = commoncost;
352
        script = commonscript;
351
        script = commonscript;