From a537d22f42fd9c4e33d2a46f4de9809399de92d2 Mon Sep 17 00:00:00 2001 From: Randomno Date: Sun, 27 Aug 2023 21:01:57 +0100 Subject: [PATCH 1/4] add path and args to header --- src/program/movie/MovieFileHeader.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/program/movie/MovieFileHeader.cpp b/src/program/movie/MovieFileHeader.cpp index 59218381..60d958b7 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("game_path", context->gamepath.c_str()); + config.setValue("game_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); From b4600d7a42d7cd5b212692fa6f23f6842633a7a1 Mon Sep 17 00:00:00 2001 From: Randomno Date: Sun, 27 Aug 2023 21:06:37 +0100 Subject: [PATCH 2/4] rename --- src/program/movie/MovieFileHeader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/program/movie/MovieFileHeader.cpp b/src/program/movie/MovieFileHeader.cpp index 60d958b7..78505398 100644 --- a/src/program/movie/MovieFileHeader.cpp +++ b/src/program/movie/MovieFileHeader.cpp @@ -128,8 +128,8 @@ void MovieFileHeader::save(uint64_t tot_frames, uint64_t nb_frames) QSettings config(configfile, QSettings::IniFormat); config.setFallbacksEnabled(false); - config.setValue("game_path", context->gamepath.c_str()); - config.setValue("game_args", context->config.gameargs.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); From d024e98cc3514cbd8cd03ca5433d686b10473b44 Mon Sep 17 00:00:00 2001 From: Randomno Date: Sun, 27 Aug 2023 21:11:00 +0100 Subject: [PATCH 3/4] Update format.md --- docs/guides/format.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/guides/format.md b/docs/guides/format.md index 60d6e07d..45f02708 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 From 90766c2fde28f905b98f95c374a34da4924cbec2 Mon Sep 17 00:00:00 2001 From: Randomno Date: Sun, 27 Aug 2023 21:59:05 +0100 Subject: [PATCH 4/4] Update format.md --- docs/guides/format.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guides/format.md b/docs/guides/format.md index 45f02708..25bd138a 100644 --- a/docs/guides/format.md +++ b/docs/guides/format.md @@ -11,7 +11,7 @@ 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] - exec_path=SuperMeatBoy ; path 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