33 lines
597 B
Plaintext
Executable File
33 lines
597 B
Plaintext
Executable File
|
|
|
|
function printImage ( image, ext )
|
|
outputExt = string.lower(get_extension_from_path(image))
|
|
if (ext == nil) then
|
|
ext = "ipl"
|
|
end
|
|
|
|
if outputExt == ".rpf" then
|
|
mount_pack(image, "image:/")
|
|
foundImageFiles = find_files( "image:/*."..ext )
|
|
for key, value in foundImageFiles do
|
|
print (value)
|
|
end
|
|
--print(foundImageFiles)
|
|
unmount_pack(image)
|
|
end
|
|
return foundImageFiles
|
|
end
|
|
|
|
function run ()
|
|
image = get_param("input")
|
|
ext = get_param("ext")
|
|
print (ext)
|
|
result = printImage(image, ext)
|
|
--print(result[1])
|
|
return result
|
|
end
|
|
|
|
print (run())
|
|
|
|
|