예제 #1
0
// fill tmp region with new content
// given input index and foreground color
static void render_line(s16 idx, u8 fg) {
  region_fill(lineRegion, 0x0);
  if( (idx >= 0) && (idx < files_get_scene_count()) ) {
    clearln();
    appendln((const char*)files_get_scene_name(idx));
    // stick a null character at the end...
    lineBuf[SCENE_NAME_LEN - 1] = '\0';
    font_string_region_clip(lineRegion, lineBuf, 2, 0, fg, 0);
  }
}
예제 #2
0
파일: files.c 프로젝트: Someone101/aleph
// store scene to sdcard at idx
void files_store_scene(u8 idx) {
  files_store_scene_name((const char*)files_get_scene_name(idx), 0);
}
예제 #3
0
파일: files.c 프로젝트: Someone101/aleph
  /* print_dbg("\r\n"); */

  return list_get_name(&sceneList, idx);
}

// load scene by index */
u8 files_load_scene(u8 idx) {  
  return files_load_scene_name((const char*)files_get_scene_name(idx));
}