From 14f513f6569338c1c8ccb47b6c93d0696cb39bca Mon Sep 17 00:00:00 2001 From: Lynix Date: Fri, 20 Sep 2013 21:46:30 +0200 Subject: [PATCH] Resource encoder now print module name Former-commit-id: 14e782da2b803f3c4847e19c9f46872f641c0c7a --- build/scripts/actions/encodesresources.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/build/scripts/actions/encodesresources.lua b/build/scripts/actions/encodesresources.lua index eefacac03..4afeb74ea 100644 --- a/build/scripts/actions/encodesresources.lua +++ b/build/scripts/actions/encodesresources.lua @@ -2,10 +2,11 @@ function encodeResources() print("Encoding resources ...") local modules = os.matchdirs("../src/Nazara/*") for k, modulePath in pairs(modules) do - local files = os.matchfiles(modulePath .. "/Resources/**") - local resourceContent - local headerContent local file + local headerContent + local moduleName = modulePath:sub(15, -1) + local resourceContent + local files = os.matchfiles(modulePath .. "/Resources/**") for k, filePath in pairs(files) do if (filePath:sub(-2) ~= ".h") then file = filePath:sub(modulePath:len() + 12, -1) @@ -36,7 +37,7 @@ function encodeResources() header:write(headerContent) header:close() - print(string.format("%s (raw: %.3g kB, header: %.3g kB)", file, contentLength/1024, string.format("%.3g", headerContent:len()/1024))) + print(string.format("%s: %s (raw: %.3g kB, header: %.3g kB)", moduleName, file, contentLength/1024, string.format("%.3g", headerContent:len()/1024))) end end end