Diff of /plugins/core.py [000000] .. [42ca9f] Maximize Restore

  Switch to side-by-side view

--- a
+++ b/plugins/core.py
@@ -0,0 +1,92 @@
+# -*-python-*-
+
+import string
+
+
+global formats
+formats = {}
+
+global strrefs
+strrefs = None
+
+global keys
+keys = None
+
+
+global slash_trans
+slash_trans = string.maketrans ('\\', '/')
+
+
+restype_list = [
+    [0x0001, 'BMP', ''],
+    [0x0002, 'MVE', ''],
+    [0x0004, 'WAV', ''],
+    [0x0004, 'WAVC', ''],
+    [0x0005, 'WFX', ''],
+    [0x0006, 'PLT', ''],
+    [0x03e8, 'BAM', ''],
+    [0x03e8, 'BAMC', ''],
+    [0x03e9, 'WED', ''],
+    [0x03ea, 'CHUI', ''],
+    [0x03eb, 'TIS', ''],
+    [0x03ec, 'MOS', ''],
+    [0x03ec, 'MOSC', ''],
+    [0x03ed, 'ITM', ''],
+    [0x03ee, 'SPL', ''],
+    [0x03ef, 'BCS', ''],
+    [0x03f0, 'IDS', ''],
+    [0x03f1, 'CRE', ''],
+    [0x03f2, 'ARE', ''],
+    [0x03f3, 'DLG', ''],
+    [0x03f4, '2DA', ''],
+    [0x03f5, 'GAME', ''],
+    [0x03f6, 'STOR', ''],
+    [0x03f7, 'WMAP', ''],
+    [0x03f8, 'CHR', ''],
+    [0x03f8, 'EFF', ''],
+    [0x03f9, 'BS', ''],
+    [0x03fa, 'CHR', ''],
+    [0x03fb, 'VVC', ''],
+    [0x03fc, 'VEF', ''],
+    [0x03fd, 'PRO', ''],
+    [0x03fe, 'BIO', ''],
+    [0x044c, 'BAH', ''],
+    [0x0802, 'INI', ''],
+    [0x0803, 'SRC', ''],
+    ]
+
+restype_hash = {
+    0x0001 : 'BMP',
+    0x0002 : 'MVE',
+    0x0004 : 'WAV', # also WAVC
+    0x0005 : 'WFX',
+    0x0006 : 'PLT',
+    0x03e8 : 'BAM', # also BAMC
+    0x03e9 : 'WED',
+    0x03ea : 'CHUI',
+    0x03eb : 'TIS',
+    0x03ec : 'MOS', # also MOSC
+    0x03ed : 'ITM',
+    0x03ee : 'SPL',
+    0x03ef : 'BCS',
+    0x03f0 : 'IDS',
+    0x03f1 : 'CRE',
+    0x03f2 : 'ARE',
+    0x03f3 : 'DLG',
+    0x03f4 : '2DA',
+    0x03f5 : 'GAME',
+    0x03f6 : 'STOR',
+    0x03f7 : 'WMAP',
+    0x03f8 : 'CHR', # also  EFF
+    0x03f9 : 'BS',
+    0x03fa : 'CHR',
+    0x03fb : 'VVC',
+    0x03fc : 'VEF',
+    0x03fd : 'PRO',
+    0x03fe : 'BIO',
+    0x044c : 'BAH',
+    0x0802 : 'INI',
+    0x0803 : 'SRC',
+    }
+
+