From ac76419568d2e30f939ee97ef85a9c6ec886a655 Mon Sep 17 00:00:00 2001 From: Gubolin Date: Sun, 3 Aug 2014 16:07:16 +0200 Subject: add Snapin8r as submodule --- .gitmodules | 3 +++ Snapin8r | 1 + 2 files changed, 4 insertions(+) create mode 100644 .gitmodules create mode 160000 Snapin8r diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..27b70f2 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "Snapin8r"] + path = Snapin8r + url = https://github.com/Hardmath123/Snapin8r diff --git a/Snapin8r b/Snapin8r new file mode 160000 index 0000000..0a8ee67 --- /dev/null +++ b/Snapin8r @@ -0,0 +1 @@ +Subproject commit 0a8ee67a8d8a4f3d80f314d7897728af5e9510ec -- cgit v1.3.1 From ecbf52924e6319d2714f93af65e866d49c1e18c6 Mon Sep 17 00:00:00 2001 From: Gubolin Date: Sun, 3 Aug 2014 17:27:53 +0200 Subject: integrate Snapin8r into Snap! --- Snapin8r | 2 +- gui.js | 7 ++++++- snap.html | 1 + 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Snapin8r b/Snapin8r index 0a8ee67..2ba8b29 160000 --- a/Snapin8r +++ b/Snapin8r @@ -1 +1 @@ -Subproject commit 0a8ee67a8d8a4f3d80f314d7897728af5e9510ec +Subproject commit 2ba8b29daff1624b7e0afdd7f54f2b07e2bbc0c0 diff --git a/gui.js b/gui.js index 6af9137..74cf923 100644 --- a/gui.js +++ b/gui.js @@ -1566,7 +1566,12 @@ IDE_Morph.prototype.droppedBinary = function (anArrayBuffer, name) { myself = this, suffix = name.substring(name.length - 3); - if (suffix.toLowerCase() !== 'ypr') {return; } + if (suffix.toLowerCase() !== 'ypr') { + var zip = new JSZip(anArrayBuffer); + myself.droppedText(Snapin8r(zip)); + + return; + } function loadYPR(buffer, lbl) { var reader = new sb.Reader(), diff --git a/snap.html b/snap.html index 904aba8..4e2a4c1 100755 --- a/snap.html +++ b/snap.html @@ -18,6 +18,7 @@ +