Capabilities file I/O from Lua scripts
[jpcrr.git] / lua / subtitletest.lua
blobb0a0a9392999b84ee366f753b6642c01a34ad787
1 dofile("subtitles.lua");
2 print("Game:" .. (get_gamename() or "<not available>"));
4 print("Short authors:");
5 for k, v in ipairs(get_short_authors()) do
6 print(v);
7 end
9 print("");
10 print("Long authors:");
11 for k, v in ipairs(get_long_authors()) do
12 print(v);
13 end
16 print("");
17 info = subtitle_runinfo();
18 print(info);
20 while true do
21 jpcrr.next_frame();
22 render_subtitle_text(info, true, 255, 255, 255);
23 end