From 3bfaf447d4b8bf5b264527ae60b7764ff7b62da3 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Sat, 6 Feb 2016 19:42:35 +1000 Subject: TODO++ --- tools/unpacker.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'tools') 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 = zip = function (src, dst) return('unzip ' .. src .. ' -d ' .. dst) end, } +--[[ TODO +Make it accept arguments - file dir + file = archive file, or directory to scan + dir = output directory + +If it's an OAR, or other sim defining format, or a model format, then create .omg files, stuff into .cache/converted/ or inventory/converted. + Or should conversion be a separate tool? + 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. + So might as well start the process by creating basic .omg files, with the info we have here, before we lose that info. + +]] + print('Searching for archives in ' .. home_d .. '/.SledjHamr', ' -> ', ' unpack into ' .. home_d .. '/.SledjHamr/.cache/unpacked/') for k, v in pairs(scanDir(home_d .. '/.SledjHamr')) do -- cgit v1.1