what pattern do you see?
hey pal, these numbers are for PAL and propset 1 only
i just dont know where and how to insert the table/struct so that for example LANG_GERMAN is always the same, regardless of propset & PAL/NTSC status
typedef struct {int CHDK_lang, int Canon_lang} LangTable;enum { LANG_UNKNOWN, LANG_ENGLISH, LANG_GERMAN, ..... }#if (PROPSET_1)LangTable lang_table []={ {LANG_ENGLISH, 0}, {LANG_GERMAN, 1},....}#else .. the same for other propset#endifint get_chdk_lang(void){ short z; int i; get_property_case(PROPCASE_LANG, z, sizeof(z)); z>>=8; // forget about PAL/NTSC for (i=0; i<sizeof(lang_table)/sizeof(lang_table[0]); i++) if (lang_table[i].Canon_lang==z) return lang_table[i].CHDK_lang; return LANG_UNKNOWN;}
DigicIIIlanguage 1 PAL 0x0001 NTSC 0x0000language 2 PAL 0x0101 NTSC 0x0100language 3 PAL 0x0201 NTSC 0x0200language 4 PAL 0x0301 NTSC 0x0300language 5 PAL 0x0401 NTSC 0x0400language 6 PAL 0x0501 NTSC 0x0500DigicIIlanguage 1 PAL 0x0002 NTSC 0x0001language 2 PAL 0x0102 NTSC 0x0101language 3 PAL 0x0202 NTSC 0x0201language 4 PAL 0x0302 NTSC 0x0301language 5 PAL 0x0402 NTSC 0x0401language 6 PAL 0x0502 NTSC 0x0501
For a710 english is 65538 = 0x10002. What this 0x10000 means?
And about other languages (see attachment).sources: google (+google translator), List of Wikipedias.
Started by a710is General Chat
Started by slchdk General Help and Assistance on using CHDK stable releases
Started by ilguercio Hotwire! Hardware Mods, Accessories and Insights
Started by Vlad9ck General Discussion and Assistance
Started by zombi2 General Discussion and Assistance