mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-06-09 22:54:03 +09:00
fix: FPS conversion not changing video header
This commit is contained in:
21
assets/disk0/tvdos/bin/autorun.js
Normal file
21
assets/disk0/tvdos/bin/autorun.js
Normal file
@@ -0,0 +1,21 @@
|
||||
const fullFilePath = _G.shell.resolvePathInput(exec_args[1])
|
||||
|
||||
let seqread = undefined
|
||||
let fullFilePathStr = fullFilePath.full
|
||||
let mode = ""
|
||||
|
||||
// Select seqread driver to use
|
||||
if (fullFilePathStr.startsWith('$:/TAPE') || fullFilePathStr.startsWith('$:\\TAPE')) {
|
||||
seqread = require("seqreadtape")
|
||||
seqread.prepare(fullFilePathStr)
|
||||
seqread.seek(0)
|
||||
mode = "tape"
|
||||
} else {
|
||||
seqread = undefined
|
||||
}
|
||||
|
||||
|
||||
if ("tape" == mode) {
|
||||
const prg = seqread.readString(65536)
|
||||
eval(prg)
|
||||
}
|
||||
@@ -60,13 +60,13 @@ let fullFilePathStr = fullFilePath.full
|
||||
// Select seqread driver to use
|
||||
if (fullFilePathStr.startsWith('$:/TAPE') || fullFilePathStr.startsWith('$:\\TAPE')) {
|
||||
seqread = seqreadtape
|
||||
seqread.prepare(fullFilePathStr)
|
||||
seqread.seek(0)
|
||||
} else {
|
||||
seqread = seqreadserial
|
||||
seqread.prepare(fullFilePathStr)
|
||||
}
|
||||
|
||||
seqread.prepare(fullFilePathStr)
|
||||
|
||||
con.clear()
|
||||
con.curs_set(0)
|
||||
graphics.setGraphicsMode(4) // 4096-color mode
|
||||
|
||||
Reference in New Issue
Block a user