| 198 | const buttons = node.querySelector('.found_paths') |
| 199 | |
| 200 | const updater = () => { |
| 201 | window.settings.get(fullKey).then((value) => { |
| 202 | buttons.innerHTML = '' |
| 203 | node.querySelector('.current_game_path').textContent = value !== '' ? value : '--' |
| 204 | |
| 205 | if ( this.wizard.games[iVer].length === 0 ) { |
| 206 | buttons.appendChild(I18N.__('wizard_step_4_fail_exe', ['text-center', 'd-block'])) |
| 207 | } else { |
| 208 | for ( const gamePath of this.wizard.games[iVer] ) { |
| 209 | buttons.appendChild(this.#doButton( |
| 210 | fullKey, |
| 211 | gamePath[1], |
| 212 | value, |
| 213 | gamePath[0] |
| 214 | )) |
| 215 | } |
| 216 | } |
| 217 | }) |
| 218 | } |
| 219 | |
| 220 | this.update.push(updater) |
| 221 | return node |