This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""ddecompress - attempts to decompress .d script files""" | |
import click | |
import struct | |
import os | |
import glob | |
@click.command() | |
@click.argument("path") | |
def checkpath(path): | |
"""Checks to see if you've provided a dir or a script path""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run this in your STORY subdir to generate some key-*.c scripts for testing with | |
from os.path import exists | |
for i in range(24,256): | |
fname = "key-" + str(i) + ".c" | |
if not exists(fname): | |
with open(fname, "w") as f: | |
f.write("void main()\n{\nint &key = " + str(i) + "\n say(\"Key is &key\", 1)\nkill_this_task()\n}") | |
print("Wrote " + fname) | |
else: |