aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xtools/unpacker.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/unpacker.lua b/tools/unpacker.lua
index 60da25d..c60ef30 100755
--- a/tools/unpacker.lua
+++ b/tools/unpacker.lua
@@ -44,6 +44,18 @@ unpackers =
44 zip = function (src, dst) return('unzip ' .. src .. ' -d ' .. dst) end, 44 zip = function (src, dst) return('unzip ' .. src .. ' -d ' .. dst) end,
45} 45}
46 46
47--[[ TODO
48Make it accept arguments - file dir
49 file = archive file, or directory to scan
50 dir = output directory
51
52If it's an OAR, or other sim defining format, or a model format, then create .omg files, stuff into .cache/converted/ or inventory/converted.
53 Or should conversion be a separate tool?
54 The problem is that we need to link back to the original archive, or carry other info like the archive type with us from here.
55 So might as well start the process by creating basic .omg files, with the info we have here, before we lose that info.
56
57]]
58
47print('Searching for archives in ' .. home_d .. '/.SledjHamr', ' -> ', ' unpack into ' .. home_d .. '/.SledjHamr/.cache/unpacked/') 59print('Searching for archives in ' .. home_d .. '/.SledjHamr', ' -> ', ' unpack into ' .. home_d .. '/.SledjHamr/.cache/unpacked/')
48 60
49for k, v in pairs(scanDir(home_d .. '/.SledjHamr')) do 61for k, v in pairs(scanDir(home_d .. '/.SledjHamr')) do