1 | /*␊ |
2 | * Copyright (c) 2009 Evan Lojewski. All rights reserved.␊ |
3 | *␊ |
4 | */␊ |
5 | ␊ |
6 | #include "libsaio.h"␊ |
7 | #include "915resolution.h"␊ |
8 | #include "modules.h"␊ |
9 | #include "bootstruct.h"␊ |
10 | ␊ |
11 | #define kEnableResolution␉␉␉"EnableResolutionModule"␊ |
12 | ␊ |
13 | void Resolution_start(void);␊ |
14 | void Resolution_start(void)␊ |
15 | {␊ |
16 | ␉bool enable = true;␊ |
17 | ␉getBoolForKey(kEnableResolution, &enable, DEFAULT_BOOT_CONFIG) ;␊ |
18 | ␉␊ |
19 | ␉if (enable) {␊ |
20 | ␉␉register_hook_callback("getResolution_hook", &getResolutionHook);␊ |
21 | ␉␉patchVideoBios();␊ |
22 | ␉}␊ |
23 | ␉␊ |
24 | }␊ |
25 | ␊ |
26 | |