This source file includes following definitions.
- hook_raw_image_addr
- hook_alt_raw_image_addr
- vid_get_viewport_live_fb
- _GetBatteryTemperature
- vid_get_bitmap_fb
- vid_get_viewport_fb
- vid_get_viewport_fb_d
- camera_jpeg_count_str
- get_flash_params_count
1 #include "platform.h"
2
3 char *hook_raw_image_addr() {return (char*) 0x420B7FC0;}
4 char *hook_alt_raw_image_addr() {return (char*) 0x420B7FC0;}
5
6
7 void *vid_get_viewport_live_fb()
8 {
9 void **fb=(void **)0x2274;
10 unsigned char buff = *((unsigned char*)0x2094);
11 if (buff == 0) {
12 buff = 2;
13 }
14 else {
15 buff--;
16 }
17 return fb[buff];
18 }
19
20
21
22
23
24
25
26
27
28 int _GetBatteryTemperature() { return -99;}
29
30
31 void *vid_get_bitmap_fb() { return (void*)0x40411000; }
32 void *vid_get_viewport_fb() { return (void*)0x40566b80; }
33 void *vid_get_viewport_fb_d() { return (void*)(*(int*)(0x2950+0x54)); }
34 char *camera_jpeg_count_str() { return (char*)0x000b376c; }
35 int get_flash_params_count(void) { return 0xa6; }