(idx)
| 145 | } |
| 146 | |
| 147 | function activateAccount(idx) |
| 148 | { |
| 149 | mailbox.idx = idx; |
| 150 | var acc_id = ui[idx].id.value; |
| 151 | if(acc_id.length != 16) |
| 152 | acc_id = 'XXXXXXXXXXXXXXXX'; |
| 153 | var binary_id = []; |
| 154 | for(var i = 7; i >= 0; i--) |
| 155 | { |
| 156 | var digit = parseInt(acc_id[2*i], 16) * 16 + parseInt(acc_id[2*i+1], 16); |
| 157 | if(digit != digit) |
| 158 | { |
| 159 | alert("Must be 16 characters long and only contain [0-9A-F]"); |
| 160 | return; |
| 161 | } |
| 162 | binary_id.push(digit); |
| 163 | } |
| 164 | mailbox.action = 1; |
| 165 | mailbox.account_id = binary_id; |
| 166 | call_native(); |
| 167 | fetchAccounts(); |
| 168 | if(ui[idx].id.value == acc_id.toUpperCase()) |
| 169 | alert("PSN ID set successfully!"); |
| 170 | return false; |
| 171 | } |
| 172 | |
| 173 | fetchAccounts(); |
| 174 |
nothing calls this directly
no test coverage detected