| Revision 473,
1.4 KB
checked in by phyrephox, 5 years ago
(diff) |
|
+ added option in misc - startsound. if enabled (disable as default) you will hear a short beep right before the splash screen. will someday be the antitheft function (yet to be coded...)
- small fix in OSD element fast_ev, should be better now, but still not perfect
+ added functions EnterToCompensationEVF() & ExitFromCompensationEVF(); -> read about it here http://chdk.setepontos.com/index.php/topic,2051.msg19300.html#msg19300 (thx fudgey)
--> prepared the sources so that adding the adresses to other cams will be easy - needs ASM people though
- small patch in symbol mod by CHDKLover
- fixed bug in makefile
+ batch-zip-complete: filename of the zip now gets an "_complete" appended
oh, and thanks Hacki for letting me steal endless hours of your sleep ;)
|
| Line | |
|---|
| 1 | #include "platform.h" |
|---|
| 2 | #include "lolevel.h" |
|---|
| 3 | |
|---|
| 4 | void *hook_raw_fptr() |
|---|
| 5 | { |
|---|
| 6 | return (void*)0x36D18; |
|---|
| 7 | } |
|---|
| 8 | |
|---|
| 9 | void *hook_raw_ret_addr() |
|---|
| 10 | { |
|---|
| 11 | return (void*)0xFF8ED708; |
|---|
| 12 | } |
|---|
| 13 | |
|---|
| 14 | char *hook_raw_image_addr() |
|---|
| 15 | { |
|---|
| 16 | return (char*) (*(int*)0x6E9C ? 0x11BE3A80 : 0x1082C520); |
|---|
| 17 | } |
|---|
| 18 | |
|---|
| 19 | long hook_raw_size() |
|---|
| 20 | { |
|---|
| 21 | return 0xC58758; |
|---|
| 22 | } |
|---|
| 23 | |
|---|
| 24 | void *vid_get_viewport_live_fb() |
|---|
| 25 | { |
|---|
| 26 | return (void*)0; |
|---|
| 27 | } |
|---|
| 28 | |
|---|
| 29 | void *vid_get_bitmap_fb() |
|---|
| 30 | { |
|---|
| 31 | return (void*)(0x10361000); |
|---|
| 32 | } |
|---|
| 33 | |
|---|
| 34 | void *vid_get_viewport_fb() |
|---|
| 35 | { |
|---|
| 36 | return (void*)0x1065B130; //0x105C3330; |
|---|
| 37 | } |
|---|
| 38 | |
|---|
| 39 | void *vid_get_viewport_fb_d() |
|---|
| 40 | { |
|---|
| 41 | return (void*)(*(int*)0x74FB4); |
|---|
| 42 | } |
|---|
| 43 | |
|---|
| 44 | long vid_get_bitmap_screen_width() |
|---|
| 45 | { |
|---|
| 46 | return 360; |
|---|
| 47 | } |
|---|
| 48 | |
|---|
| 49 | long vid_get_bitmap_screen_height() |
|---|
| 50 | { |
|---|
| 51 | return 240; |
|---|
| 52 | } |
|---|
| 53 | |
|---|
| 54 | long vid_get_viewport_height() |
|---|
| 55 | { |
|---|
| 56 | return 240; |
|---|
| 57 | } |
|---|
| 58 | |
|---|
| 59 | void JogDial_CW(void){ |
|---|
| 60 | (*(short*)0x106EE)++; |
|---|
| 61 | *(int*)0x106F4=0x32; |
|---|
| 62 | _GiveSemaphore(*(int*)0x106E4); |
|---|
| 63 | } |
|---|
| 64 | |
|---|
| 65 | void JogDial_CCW(void){ |
|---|
| 66 | (*(short*)0x106EE)--; |
|---|
| 67 | *(int*)0x106F4=0x32; |
|---|
| 68 | _GiveSemaphore(*(int*)0x106E4); |
|---|
| 69 | } |
|---|
| 70 | |
|---|
| 71 | int review_fullscreen_mode(){ |
|---|
| 72 | char r; |
|---|
| 73 | get_parameter_data(53, &r, 1); |
|---|
| 74 | return r==0; |
|---|
| 75 | } |
|---|
| 76 | char *camera_jpeg_count_str() |
|---|
| 77 | { |
|---|
| 78 | return (char*)0x82F88; |
|---|
| 79 | } |
|---|
| 80 | |
|---|
| 81 | long vid_get_bitmap_buffer_width() { return 360; } |
|---|
| 82 | |
|---|
| 83 | long vid_get_bitmap_buffer_height() { return 240; } |
|---|
| 84 | |
|---|
| 85 | void _EnterToCompensationEVF() {} // Dummy function. To be removed after stub is found. See stubs_entry_2.S.
|
|---|
| 86 | void _ExitFromCompensationEVF() {} // Dummy function. To be removed after stub is found. See stubs_entry_2.S.
|
|---|
Note: See
TracBrowser
for help on using the repository browser.