diff options
author | natrixaeria <janng@gmx.de> | 2019-06-11 20:24:45 +0200 |
---|---|---|
committer | natrixaeria <janng@gmx.de> | 2019-06-11 20:24:45 +0200 |
commit | b21428c0ea29452e3edc5a11f72fa3e614ea617e (patch) | |
tree | f8f04744fe61700e59d68eec1de8dc562c1ed689 /WebInterface/wasm/webhogg/update.py | |
parent | 8276c94169c7f6027691f124c63b61c815ab15a5 (diff) |
Remove the WebInterface directory
and create webhogg project folder
Diffstat (limited to 'WebInterface/wasm/webhogg/update.py')
-rw-r--r-- | WebInterface/wasm/webhogg/update.py | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/WebInterface/wasm/webhogg/update.py b/WebInterface/wasm/webhogg/update.py deleted file mode 100644 index aad9395..0000000 --- a/WebInterface/wasm/webhogg/update.py +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env python - -ISC = '//!IMPORTANT_STUFF' - -def rf(fn): - f = open(fn) - c = f.read() - f.close() - return c - -nc = rf('pkg/webhogg.js') -m1 = rf('game_logic.js') -m2 = rf('graphics.js') - -nc = nc.split('function init(module) {')[0].strip('\n') -nc = nc.replace('export function ', 'function ') -m1 = m1.split('//!IMPORTANT_STUFF')[-1] -m2 = m2.split('//!IMPORTANT_STUFF')[-1] - -nc += '\n' * 2 + ISC - -m1 = nc + m1 -m2 = nc + m2 - -with open('game_logic.js', 'w') as f: - f.write(m1) - -with open('graphics.js', 'w') as f: - f.write(m2) |