All pastes #125901 Raw Edit

Someone

public c v1 · immutable
·published 2006-08-11 00:45 UTC
rendered paste body
void izilla_load_themes(){     FILE *load;     FILE *ipoddata;          static int theme_number=0;     static int loadpos;     load=fopen("./themeindex.inx", "r");          fscanf(load, "%i", &theme_number);                      GrRect (desktop_wid, desktop_gc, 12, 87, 64, 7);                                                if(theme_number==1)            {                         GrDrawImageFromFile(desktop_wid,desktop_gc, 0, 0, -1, -1, ("./startup_screen.bmp"), 0);                                   fscanf(load, "%s", &theme1_author);                         fscanf(load, "%s", &theme1_name);                         fscanf(load, "%s", &theme1_preview);                         loadpos++;                         GrFillRect (desktop_wid, desktop_gc, 12, 87, loadpos+10, 7);                         fscanf(load, "%s", &theme1_hd_icon_path);                         fscanf(load, "%s", &theme1_cursor_path);                         fscanf(load, "%s", &theme1_apps_icon_path);                         loadpos++;                         GrFillRect (desktop_wid, desktop_gc, 12, 87, loadpos+10, 7);                         fscanf(load, "%s", &theme1_playerdock_path);                         fscanf(load, "%s", &theme1_wallpaper1_path);                         fscanf(load, "%s", &theme1_wallpaper1_preview_path);                         loadpos++;                         GrFillRect (desktop_wid, desktop_gc, 12, 87, loadpos+10, 7);                         fscanf(load, "%s", &theme1_wallpaper2_path);                         fscanf(load, "%s", &theme1_wallpaper2_preview_path);                         fscanf(load, "%s", &theme1_wallpaper3_path);                         loadpos++;                         GrFillRect (desktop_wid, desktop_gc, 12, 87, loadpos+10, 7);                         fscanf(load, "%s", &theme1_wallpaper3_preview_path);                              fscanf(load, "%s", &theme1_wallpaper4_path);                         fscanf(load, "%s", &theme1_wallpaper4_preview_path);                                  loadpos++;                         GrFillRect (desktop_wid, desktop_gc, 12, 87, loadpos+10, 7);                         fscanf(load, "%s", &theme1_battery_frame);                         fscanf(load, "%s", &theme1_toolbarpath);                         fscanf(load, "%s", &theme1_toolbar_arrow);                         loadpos++;                         GrFillRect (desktop_wid, desktop_gc, 12, 87, loadpos+10, 7);                                                  fclose(load);                                     }                        fscanf(load, "%i", &theme_number);                        if(theme_number==2)            {                                                 /* fscanf(load, "%s", &theme2_author);                         fscanf(load, "%s", &theme2_name);                         fscanf(load, "%s", &theme2_preview);                         fscanf(load, "%s", &theme2_bar_path);                         fscanf(load, "%s", &theme2_hd_icon_path);                         fscanf(load, "%s", &theme2_cursor_path);                         fscanf(load, "%s", &theme2_apps_icon_path);                         fscanf(load, "%s", &theme2_playerdock_path);                         fscanf(load, "%s", &theme2_wallpaper1_path);                         fscanf(load, "%s", &theme2_wallpaper1_preview_path);                         fscanf(load, "%s", &theme2_wallpaper2_path);                         fscanf(load, "%s", &theme2_wallpaper2_preview_path);                         fscanf(load, "%s", &theme2_wallpaper3_path);                         fscanf(load, "%s", &theme2_wallpaper3_preview_path);                              fscanf(load, "%s", &theme2_wallpaper4_path);                         fscanf(load, "%s", &theme2_wallpaper4_preview_path);                         fscanf(load, "%s", &theme2_about_inv_path);                         fscanf(load, "%s", &theme2_about_izilla_inv_path);                         fscanf(load, "%s", &theme2_file_inv_path);                         fscanf(load, "%s", &theme2_item_about_path);                         fscanf(load, "%s", &theme2_item_about_izilla_path);                         fscanf(load, "%s", &theme2_item_muswid_path);                         fscanf(load, "%s", &theme2_item_muswid_inv_path);                         fscanf(load, "%s", &theme2_izilla_clicked_path);                         fscanf(load, "%s", &theme2_menubackground_path);   */                   }                              fscanf(load, "%i", &theme_number);                        if(theme_number==3)            {                               update_theme=0;                                           }            //fclose(load);                        ipoddata=fopen("./ipoddata.inx", "r");                 fscanf(ipoddata, "%s", &hdname);            fscanf(ipoddata, "%s", &ipod_model);                        fclose(ipoddata);            loadpos=87;            GrFillRect (desktop_wid, desktop_gc, 12, 87, loadpos, 7);        }