From ed59c68d6fe25e88c82f534184b2067402b833f3 Mon Sep 17 00:00:00 2001 From: Michael Murtaugh Date: Thu, 21 Jan 2021 21:46:55 +0100 Subject: [PATCH] update --- inspect_tic.html | 4 +--- src/inspect_tic.js | 2 -- src/ticparse.js | 15 --------------- 3 files changed, 1 insertion(+), 20 deletions(-) diff --git a/inspect_tic.html b/inspect_tic.html index 797e033..59baacd 100644 --- a/inspect_tic.html +++ b/inspect_tic.html @@ -13,8 +13,6 @@

TIC80 files

- - - + \ No newline at end of file diff --git a/src/inspect_tic.js b/src/inspect_tic.js index ddff137..f630fe6 100644 --- a/src/inspect_tic.js +++ b/src/inspect_tic.js @@ -12,8 +12,6 @@ import 'codemirror/addon/fold/foldgutter.js'; //require('codemirror/addon/fold/markdown-fold.js') //require("codemirror/theme/monokai.css") - - const DB_NAME = "/com.nesbox.tic/TIC-80", DB_STORE = "FILE_DATA", TIC_SPECIALS = ["TIC", "SCN", "OVR", "btn", "btnp", "clip", "cls", "circ", "circb", "exit", "fget", "font", "fset", "key", "keyp", "line", "map", "memcpy", "memset", "mget", "mouse", "mset", "music", "peek", "peek4", "pix", "pmem", "poke", "poke4", "print", "rect", "rectb", "reset", "sfx", "spr", "sync", "time", "tstamp", "trace", "tri", "textri"], diff --git a/src/ticparse.js b/src/ticparse.js index b026a78..504af2e 100644 --- a/src/ticparse.js +++ b/src/ticparse.js @@ -1,5 +1,4 @@ // import { base64decode, base64encode, base64ToBytes } from './base64.js'; - // https://github.com/nesbox/TIC-80/wiki/TIC-File-Format export const CHUNK_TILES = 1, CHUNK_SPRITES = 2, @@ -31,21 +30,7 @@ function tohex (a) { return ret; } -// export function ensure_Uint8Array (buf) { -// if (buf instanceof Int8Array) { -// console.log("Signed data"); -// var ret = new Uint8Array(buf.byteLength), -// data = new DataView(ret.buffer); -// data.setUint8 -// } -// return buf; -// } - export function parsetic (buf) { -// if (!(buf instanceof Uint8Array)) { -// console.log("ERROR buf is not UInt8Array"); -// return; -// } var ret = {}, data = new DataView(buf.buffer), i=0,