| 131 | static install_action_t *fetch_action = NULL; |
| 132 | |
| 133 | void timer_proc(HWND hwnd) |
| 134 | { |
| 135 | if(fetch_action != NULL) |
| 136 | { |
| 137 | if(fetch_action->process) |
| 138 | { |
| 139 | if(!fetch_action->process(hwnd)) |
| 140 | { |
| 141 | /* something still needs to be done */ |
| 142 | goto timer_proc_ret; |
| 143 | } |
| 144 | } |
| 145 | |
| 146 | if(fetch_action->end == NULL) |
| 147 | { |
| 148 | next_action(); |
| 149 | fetch_action = NULL; |
| 150 | } |
| 151 | else |
| 152 | { |
| 153 | if(fetch_action->end(hwnd)) |
| 154 | { |
| 155 | next_action(); |
| 156 | fetch_action = NULL; |
| 157 | } |
| 158 | else |
| 159 | { |
| 160 | if(forced_shutdown) |
| 161 | { |
| 162 | PostQuitMessage(0); |
| 163 | return; |
| 164 | } |
| 165 | |
| 166 | if(failure_continue(hwnd)) |
| 167 | { |
| 168 | next_action(); |
| 169 | fetch_action = NULL; |
| 170 | } |
| 171 | else |
| 172 | { |
| 173 | flush_actions(); |
| 174 | fetch_action = NULL; |
| 175 | softgpu_reset(hwnd); |
| 176 | } |
| 177 | } |
| 178 | } |
| 179 | |
| 180 | /* all done */ |
| 181 | if(actual_action == NULL) |
| 182 | { |
| 183 | softgpu_done(hwnd, driver_installed); |
| 184 | } |
| 185 | } |
| 186 | else if(actual_action) |
| 187 | { |
| 188 | fetch_action = actual_action; |
| 189 | |
| 190 | softgpu_info(hwnd, fetch_action->name); |
no test coverage detected