Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/guides/format.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ The tool records inputs into a movie file which has a `.ltm` extension. It is ac
The first one is `config.ini`, containing all meta-data of the movie file. It consists of a list of key/value pairs. Here is an example of such a file, with added comments:

[General]
game_name=SuperMeatBoy ; name of the game executable
exec_path=~/SuperMeatBoy ; path of the game executable
command_line_args= ; command-line options for the executable
md5=a6fa991f40ef518b302a4a492af7259c ; md5 hash of the game executable
frame_count=81 ; frame count of the movie file
mouse_support=true ; are mouse inputs sent to the game
Expand Down
3 changes: 2 additions & 1 deletion src/program/movie/MovieFileHeader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ void MovieFileHeader::save(uint64_t tot_frames, uint64_t nb_frames)
QSettings config(configfile, QSettings::IniFormat);
config.setFallbacksEnabled(false);

config.setValue("game_name", context->gamename.c_str());
config.setValue("exec_path", context->gamepath.c_str());
config.setValue("command_line_args", context->config.gameargs.c_str());
config.setValue("frame_count", static_cast<unsigned long long>(tot_frames));
config.setValue("mouse_support", context->config.sc.mouse_support);
config.setValue("nb_controllers", context->config.sc.nb_controllers);
Expand Down