Skip to content

Commit 1b2eece

Browse files
committed
Adds LUA versioning info to the scripting.html output
* Credits roll now grabs the LUA copyright info from liblua, instead of being hardcoded * Credits roll now has LUA version info as well
1 parent a3ab30c commit 1b2eece

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

code/menuui/credits.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include "sound/audiostr.h"
2929
#include "ui/ui.h"
3030

31+
#include <lua.h>
3132

3233

3334
// This is the fs2_open credit list, please only add yourself if you have actually contributed code
@@ -97,7 +98,7 @@ const char *fs2_open_credit_text =
9798
"Ogg Vorbis - (C) 2005, Xiph.Org Foundation\n"
9899
"JPEG - Independent JPEG Group, (C) 1991-1998, Thomas G. Lane\n"
99100
"libpng - Copyright (C) 1998-2010 Glenn Randers-Pehrson\n"
100-
"liblua - Copyright (C) 1994-2008 Lua.org, PUC-Rio\n"
101+
"liblua (" LUA_RELEASE ") - " LUA_COPYRIGHT "\n"
101102
"zlib - Copyright (C) 1995-2005 Jean-loup Gailly and Mark Adler\n"
102103
"FXAA - Copyright (c) 2010 NVIDIA Corporation. All rights reserved.\n"
103104
"This software uses libraries from the FFmpeg project under the LGPLv2.1\n"

code/scripting/lua.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,9 @@ void script_state::OutputLuaMeta(FILE *fp)
271271
ade_table_entry *ate;
272272
fputs("<dl>\n", fp);
273273

274+
//***Version info
275+
fprintf(fp, "<dd>Version: %s</dd>\n", LUA_RELEASE);
276+
274277
SCP_vector<ade_table_entry*> table_entries;
275278

276279
//***TOC: Libraries

0 commit comments

Comments
 (0)