diff --git a/docs/guides/format.md b/docs/guides/format.md index 60d6e07d..25bd138a 100644 --- a/docs/guides/format.md +++ b/docs/guides/format.md @@ -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 diff --git a/src/program/movie/MovieFileHeader.cpp b/src/program/movie/MovieFileHeader.cpp index 59218381..78505398 100644 --- a/src/program/movie/MovieFileHeader.cpp +++ b/src/program/movie/MovieFileHeader.cpp @@ -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(tot_frames)); config.setValue("mouse_support", context->config.sc.mouse_support); config.setValue("nb_controllers", context->config.sc.nb_controllers);