diff options
author | David Walter Seikel | 2016-02-06 19:42:35 +1000 |
---|---|---|
committer | David Walter Seikel | 2016-02-06 19:42:35 +1000 |
commit | 3bfaf447d4b8bf5b264527ae60b7764ff7b62da3 (patch) | |
tree | 7fe83063d61c689dffb296d21f256619df536abb /tools | |
parent | Add a generic unpacking tool. (diff) | |
download | SledjHamr-3bfaf447d4b8bf5b264527ae60b7764ff7b62da3.zip SledjHamr-3bfaf447d4b8bf5b264527ae60b7764ff7b62da3.tar.gz SledjHamr-3bfaf447d4b8bf5b264527ae60b7764ff7b62da3.tar.bz2 SledjHamr-3bfaf447d4b8bf5b264527ae60b7764ff7b62da3.tar.xz |
TODO++
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/unpacker.lua | 12 |
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 | ||
48 | Make it accept arguments - file dir | ||
49 | file = archive file, or directory to scan | ||
50 | dir = output directory | ||
51 | |||
52 | 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. | ||
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 | |||
47 | print('Searching for archives in ' .. home_d .. '/.SledjHamr', ' -> ', ' unpack into ' .. home_d .. '/.SledjHamr/.cache/unpacked/') | 59 | print('Searching for archives in ' .. home_d .. '/.SledjHamr', ' -> ', ' unpack into ' .. home_d .. '/.SledjHamr/.cache/unpacked/') |
48 | 60 | ||
49 | for k, v in pairs(scanDir(home_d .. '/.SledjHamr')) do | 61 | for k, v in pairs(scanDir(home_d .. '/.SledjHamr')) do |