- Timestamp:
- 11/26/11 21:56:33 (18 months ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
CHDK/LANG/english.lng (modified) (1 diff)
-
core/gui.c (modified) (9 diffs)
-
core/gui_lang.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/CHDK/LANG/english.lng
r1395 r1432 577 577 465 "USB Remote" 578 578 466 "Show USB Remote Status" 579 580 467 "Save ROM crash log" 581 468 "ERROR: SystemEventInit and System.Create failed" 582 469 "ROM crash log could not be saved" 583 470 "ROM crash log saved to ROMLOG.LOG" -
trunk/core/gui.c
r1424 r1432 29 29 #ifdef OPT_DEBUGGING 30 30 #include "gui_debug.h" 31 #include "gui_bench.h" 31 32 #endif 32 33 #include "gui_fselect.h" … … 40 41 #ifdef OPT_CALENDAR 41 42 #include "gui_calendar.h" 42 #endif43 #ifdef OPT_DEBUGGING44 #include "gui_bench.h"45 43 #endif 46 44 #include "gui_grid.h" … … 169 167 static void gui_draw_debug(int arg); 170 168 static void gui_draw_bench(int arg); 169 void gui_compare_props(int arg); 170 static void gui_menuproc_break_card(int arg); 171 static void gui_debug_shortcut(void); 172 static void save_romlog(int arg); 171 173 #endif 172 174 static void gui_draw_fselect(int arg); … … 186 188 static void gui_draw_load_lang(int arg); 187 189 static void gui_menuproc_mkbootdisk(int arg); 188 #ifdef OPT_DEBUGGING189 void gui_compare_props(int arg);190 #endif191 190 #ifndef OPTIONS_AUTOSAVE 192 191 static void gui_menuproc_save(int arg); … … 195 194 static void gui_grid_lines_load(int arg); 196 195 static void gui_raw_develop(int arg); 197 #ifdef OPT_DEBUGGING198 static void gui_menuproc_break_card(int arg);199 #endif200 196 static void gui_menuproc_swap_partitions(int arg); 201 197 static void gui_menuproc_reset_files(int arg); … … 233 229 static const char* gui_conf_curve_enum(int change, int arg); 234 230 #endif 235 #ifdef OPT_DEBUGGING236 static void gui_debug_shortcut(void);237 #endif238 231 239 232 #ifdef OPT_EDGEOVERLAY … … 391 384 #endif 392 385 #if CAM_MULTIPART 393 MENU_ITEM(0x33,LANG_MENU_DEBUG_CREATE_MULTIPART , MENUITEM_PROC, gui_menuproc_break_card, 0 ), 394 #endif 386 MENU_ITEM(0x33,LANG_MENU_DEBUG_CREATE_MULTIPART , MENUITEM_PROC, gui_menuproc_break_card, 0 ), 387 #endif 388 MENU_ITEM(0x2a,LANG_SAVE_ROMLOG, MENUITEM_PROC, save_romlog, 0 ), 395 389 MENU_ITEM(0x51,LANG_MENU_BACK, MENUITEM_UP, 0, 0 ), 396 390 {0} … … 2650 2644 gui_debug_init((void*)conf.mem_view_addr_init); 2651 2645 } 2652 #endif 2653 //------------------------------------------------------------------- 2654 #ifdef OPT_DEBUGGING 2646 2647 //------------------------------------------------------------------- 2655 2648 void gui_draw_bench(int arg) { 2656 2649 gui_set_mode(GUI_MODE_BENCH); … … 2932 2925 } 2933 2926 2934 #endif 2927 // Save camera romlog to A/ROMLOG.LOG file 2928 void save_romlog(int arg) 2929 { 2930 extern unsigned _ExecuteEventProcedure(const char *name,...); 2931 2932 struct stat st; 2933 if (stat("A/ROMLOG.LOG",&st) == 0) remove("A/ROMLOG.LOG"); 2934 if (stat("A/RomLogErr.txt",&st) == 0) remove("A/RomLogErr.txt"); 2935 2936 unsigned args[3]; 2937 args[0] = (unsigned)"SystemEventInit"; 2938 if (call_func_ptr(_ExecuteEventProcedure,args,1) == -1) 2939 { 2940 args[0] = (unsigned)"System.Create"; 2941 if (call_func_ptr(_ExecuteEventProcedure,args,1) == -1) 2942 { 2943 gui_mbox_init(LANG_ERROR, LANG_SAVE_ROMLOG_INIT_ERROR, MBOX_BTN_OK|MBOX_TEXT_CENTER, NULL); 2944 return; 2945 } 2946 } 2947 2948 args[0] = (unsigned)"GetLogToFile"; 2949 args[1] = (unsigned)"A/ROMLOG.LOG"; 2950 args[2] = 1; 2951 if (call_func_ptr(_ExecuteEventProcedure,args,3) == -1) 2952 { 2953 gui_mbox_init(LANG_ERROR, LANG_SAVE_ROMLOG_FAIL, MBOX_BTN_OK|MBOX_TEXT_CENTER, NULL); 2954 } 2955 else 2956 { 2957 gui_mbox_init(LANG_INFORMATION, LANG_SAVE_ROMLOG_OK, MBOX_BTN_OK|MBOX_TEXT_CENTER, NULL); 2958 } 2959 } 2960 2961 #endif -
trunk/core/gui_lang.h
r1350 r1432 581 581 #define LANG_OSD_LAYOUT_EDITOR_USB_INFO 465 582 582 #define LANG_MENU_USB_SHOW_INFO 466 583 584 // Save ROM crash log messages 585 #define LANG_SAVE_ROMLOG 467 586 #define LANG_SAVE_ROMLOG_INIT_ERROR 468 587 #define LANG_SAVE_ROMLOG_FAIL 469 588 #define LANG_SAVE_ROMLOG_OK 470 589 583 590 //------------------------------------------------------------------- 584 591 585 #define GUI_LANG_ITEMS 4 66592 #define GUI_LANG_ITEMS 470 586 593 587 594 //-------------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.