Added build time recording to listmods

This commit is contained in:
Izaya 2017-05-15 01:46:40 +10:00
parent a138a02d61
commit b02997bd85
1 changed files with 2 additions and 2 deletions

View File

@ -77,13 +77,13 @@ print(tostring(#tm).." modules loaded.\n")
-- Generate source
print("Generating source")
if cfg.listmods == "yes" then
ss=ss.."modules,_OSVERSION={"
ss=ss.."_MOD,_OSVERSION,_BD={"
for k,v in ipairs(tm) do
ss=ss..'"'..v..'",'
end
ss=ss.."},"
if _OSVERSION == nil then
ss=ss..'"MultICE '..io.popen("git rev-parse HEAD"):read("*a"):sub(1,7)..'"\n'
ss=ss..'"MultICE '..io.popen("git rev-parse HEAD"):read("*a"):sub(1,7)..'","'..os.date("%Y/%m/%d %H:%M %z")..'"\n'
else
ss=ss..'"MultICE DR0"\n'
end