aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDavid Walter Seikel2016-02-06 19:42:35 +1000
committerDavid Walter Seikel2016-02-06 19:42:35 +1000
commit3bfaf447d4b8bf5b264527ae60b7764ff7b62da3 (patch)
tree7fe83063d61c689dffb296d21f256619df536abb
parentAdd a generic unpacking tool. (diff)
downloadSledjHamr-3bfaf447d4b8bf5b264527ae60b7764ff7b62da3.zip
SledjHamr-3bfaf447d4b8bf5b264527ae60b7764ff7b62da3.tar.gz
SledjHamr-3bfaf447d4b8bf5b264527ae60b7764ff7b62da3.tar.bz2
SledjHamr-3bfaf447d4b8bf5b264527ae60b7764ff7b62da3.tar.xz
TODO++
-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