fix Force 7 game restart

This commit is contained in:
Peter Ferrie 2024-06-18 18:22:22 -07:00
parent 393eff12a9
commit 9a7d57ec35
2 changed files with 5 additions and 3 deletions

View File

@ -2,4 +2,4 @@ a=new ActiveXObject("scripting.filesystemobject")
offset=a.getfile("BUILD\\TOTAL.DATA").size
new ActiveXObject("wscript.shell").run('cmd /c copy /b /y BUILD\\TOTAL.DATA + ' + WScript.Arguments(0) + ' BUILD\\TOTAL.DATA', 0, 1)
size=a.getfile(WScript.Arguments(0)).size
a.createtextfile(WScript.Arguments(1)).write(";\r\n; Index record for " + WScript.Arguments(0).replace(/\\/, "/") + "\r\n;\r\n; This file is automatically generated\r\n;\r\n !byte 0\r\n !be24 " + offset + "\r\n !le16 " + " ".substr(0, 8 - size.toString().length) + size + "\r\n")
a.createtextfile(WScript.Arguments(1)).write(";\r\n; Index record for " + WScript.Arguments(0).replace(/\\/, "/") + "\r\n;\r\n; This file is automatically generated\r\n;\r\n !byte 0\r\n !be24 " + offset + "\r\n !le16 " + " ".substr(0, 8 - size.toString().length) + size + "\r\n")

View File

@ -18,8 +18,10 @@
jsr $2A55 ; show title screen
lda #<reset
sta $121A
lda #>reset
sta $121F
lda #$A6
sta $1190
lda #$FA
sta $1191
jmp $1000
reset