update 0.8.0
This commit is contained in:
parent
eda41a625b
commit
10d42f1614
1 changed files with 17 additions and 7 deletions
24
index.js
24
index.js
|
|
@ -145,7 +145,7 @@ const db = [
|
||||||
['Turrican II - The Final Fight', 'Rainbow Arts', '1991',
|
['Turrican II - The Final Fight', 'Rainbow Arts', '1991',
|
||||||
['Turrican II - The Final Fight (Disk 1).adf',
|
['Turrican II - The Final Fight (Disk 1).adf',
|
||||||
'Turrican II - The Final Fight (Disk 2).adf',
|
'Turrican II - The Final Fight (Disk 2).adf',
|
||||||
false, false], [false, true],
|
false, false], [true, true],
|
||||||
[true, 16, 17, false], [], [['Fire-beam','Hold Fire 1'],['Roll on floor', 'Down-arrow + Fire 1'],['Bomb', 'Fire 2'],['Super-Bomb', 'Fire 1 + Fire 2']], false
|
[true, 16, 17, false], [], [['Fire-beam','Hold Fire 1'],['Roll on floor', 'Down-arrow + Fire 1'],['Bomb', 'Fire 2'],['Super-Bomb', 'Fire 1 + Fire 2']], false
|
||||||
],
|
],
|
||||||
['Wings of Death', 'Thalion', '1990',
|
['Wings of Death', 'Thalion', '1990',
|
||||||
|
|
@ -1089,10 +1089,14 @@ function init() {
|
||||||
|
|
||||||
setSimpleConfig();
|
setSimpleConfig();
|
||||||
|
|
||||||
if (window.location.hash.length > 0) {
|
if (window.location.hash.length > 1) {
|
||||||
var name = urldecode(window.location.hash.substr(1));
|
|
||||||
var start = false;
|
var start = false;
|
||||||
|
var name = urldecode(window.location.hash.substr(1));
|
||||||
|
while (true) {
|
||||||
|
var tmp = name.replace('_', ' ');
|
||||||
|
if (tmp == name) break;
|
||||||
|
name = tmp;
|
||||||
|
}
|
||||||
for (var i = 0; i < db[0].length; i++) {
|
for (var i = 0; i < db[0].length; i++) {
|
||||||
if (db[0][i][0] == name) {
|
if (db[0][i][0] == name) {
|
||||||
document.getElementById('cfg_game')[i+1].selected = true;
|
document.getElementById('cfg_game')[i+1].selected = true;
|
||||||
|
|
@ -1123,9 +1127,15 @@ function start() {
|
||||||
|
|
||||||
if (mode == 0) {
|
if (mode == 0) {
|
||||||
var item = dbNum > 0 ? db[dbGrp - 1][dbNum - 1] : null;
|
var item = dbNum > 0 ? db[dbGrp - 1][dbNum - 1] : null;
|
||||||
if (item)
|
if (item) {
|
||||||
window.location.hash = item[0];
|
var name = item[0];
|
||||||
else
|
while (true) {
|
||||||
|
var tmp = name.replace(' ', '_');
|
||||||
|
if (tmp == name) break;
|
||||||
|
name = tmp;
|
||||||
|
}
|
||||||
|
window.location.hash = name;
|
||||||
|
} else
|
||||||
window.location.hash = '';
|
window.location.hash = '';
|
||||||
} else
|
} else
|
||||||
window.location.hash = '';
|
window.location.hash = '';
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue