diff --git a/command.c b/command.c index 94b202e661..d33b3d43bd 100644 --- a/command.c +++ b/command.c @@ -1509,8 +1509,8 @@ void command_event_set_replay_auto_index(settings_t *settings) /* Find the file in the same directory as runloop_st->names.replay * with the largest numeral suffix. * - * E.g. /foo/path/content.bsv, will try to find - * /foo/path/content.bsv%d, where %d is the largest number available. + * E.g. /foo/path/content.replay will try to find + * /foo/path/content.replay%d, where %d is the largest number available. */ fill_pathname_basedir(state_dir, runloop_st->name.replay, sizeof(state_dir)); @@ -1597,11 +1597,11 @@ void command_event_set_replay_garbage_collect( fill_pathname_base(elem_base, dir_elem, sizeof(elem_base)); - /* Only consider files with a '.bsvXX' extension - * > i.e. Ignore '.bsv.auto', '.bsv.bak', etc. */ + /* Only consider files with a '.replayXX' extension + * > i.e. Ignore '.replay.auto', '.replay.bak', etc. */ ext = path_get_extension(elem_base); if (string_is_empty(ext) || - !string_starts_with_size(ext, "bsv", STRLEN_CONST("BSV"))) + !string_starts_with_size(ext, "replay", STRLEN_CONST("REPLAY"))) continue; /* Check whether this file is associated with diff --git a/configuration.c b/configuration.c index 8fbb9993e3..66d11b0bb0 100644 --- a/configuration.c +++ b/configuration.c @@ -3860,7 +3860,7 @@ static bool config_load_file(global_t *global, sizeof(runloop_st->name.replay)); fill_pathname_dir(runloop_st->name.replay, path_get(RARCH_PATH_BASENAME), - ".bsv", + ".replay", sizeof(runloop_st->name.replay)); } else diff --git a/docs/retroarch.6 b/docs/retroarch.6 index dcaa402ac0..4eaa5644bc 100644 --- a/docs/retroarch.6 +++ b/docs/retroarch.6 @@ -150,13 +150,13 @@ Allows specifying the exact output width and height of recording. This option wi The video input is scaled with point filtering before being encoded at the correct size. .TP -\fB--bsvplay PATH, -P PATH\fR -Play back a movie recorded in the .bsv format (bsnes). Cart ROM and movie file need to correspond. +\fB--play-replay PATH, -P PATH\fR +Play back a movie recorded in the .replay format. Cart ROM and movie file need to correspond. It also requires to play back with the same libretro backend that was used for recording. .TP -\fB--bsvrecord PATH, -R PATH\fR -Start recording a .bsv video to PATH immediately after startup. +\fB--record-replay PATH, -R PATH\fR +Start recording a .replay video to PATH immediately after startup. .TP \fB--sram-mode MODE, -M MODE\fR @@ -190,7 +190,7 @@ Network port used for netplay. This defaults to 55435. This option affects both \fB--spectate\fR If netplay is used, it will go into a spectator mode. Spectator mode allows one host to live stream game playback to multiple clients. -Essentially, clients receive a live streamed BSV movie file. +Essentially, clients receive a live streamed replay movie file. Clients can connect and disconnect at any time. Clients thus cannot interact as user 2. For spectating mode to work, both host and clients will need to use this flag. diff --git a/file_path_special.h b/file_path_special.h index 60449a4feb..844141320e 100644 --- a/file_path_special.h +++ b/file_path_special.h @@ -37,7 +37,7 @@ RETRO_BEGIN_DECLS #define FILE_PATH_GLSLP_EXTENSION ".glslp" #define FILE_PATH_SLANGP_EXTENSION ".slangp" #define FILE_PATH_AUTO_EXTENSION ".auto" -#define FILE_PATH_BSV_EXTENSION ".bsv" +#define FILE_PATH_BSV_EXTENSION ".replay" #define FILE_PATH_OPT_EXTENSION ".opt" #define FILE_PATH_CORE_INFO_EXTENSION ".info" #define FILE_PATH_CONFIG_EXTENSION ".cfg" diff --git a/input/input_driver.c b/input/input_driver.c index 26c8f63343..6facb1e255 100644 --- a/input/input_driver.c +++ b/input/input_driver.c @@ -4805,7 +4805,7 @@ void bsv_movie_next_frame(input_driver_state_t *input_st) /* read next key events, a frame happened for sure? but don't apply them yet */ if (handle->key_event_count != 0) { - RARCH_ERR("[Movie] BSV keyboard replay reading next frame while some unused keys still in queue\n"); + RARCH_ERR("[Replay] Keyboard replay reading next frame while some unused keys still in queue\n"); } if (intfstream_read(handle->file, &(handle->key_event_count), 1) == 1) { @@ -4815,13 +4815,13 @@ void bsv_movie_next_frame(input_driver_state_t *input_st) if (intfstream_read(handle->file, &(handle->key_events[i]), sizeof(bsv_key_data_t)) != sizeof(bsv_key_data_t)) { /* Unnatural EOF */ - RARCH_ERR("[Movie] BSV keyboard replay ran out of keyboard inputs too early\n"); + RARCH_ERR("[Replay] Keyboard replay ran out of keyboard inputs too early\n"); } } } else { - RARCH_LOG("[Movie] EOF after buttons\n",handle->key_event_count); + RARCH_LOG("[Replay] EOF after buttons\n",handle->key_event_count); /* Natural(?) EOF */ input_st->bsv_movie_state.flags |= BSV_FLAG_MOVIE_END; } diff --git a/intl/msg_hash_chs.c b/intl/msg_hash_chs.c index a3879b9161..ab0ac726ee 100644 --- a/intl/msg_hash_chs.c +++ b/intl/msg_hash_chs.c @@ -1367,7 +1367,7 @@ int msg_hash_get_help_chs_enum(enum msg_hash_enums msg, char *s, size_t len) " \n" "所有游戏存档都保存在此文件夹。 \n" "常见的游戏存档格式有 \n" - ".srm, .bsv, .rt, .psrm 等\n" + ".srm, .rt, .psrm 等\n" " \n" "此选项可能被特定命令行选项覆盖。"); break; diff --git a/intl/msg_hash_cht.h b/intl/msg_hash_cht.h index 0c565f5419..32dd4c0a3d 100644 --- a/intl/msg_hash_cht.h +++ b/intl/msg_hash_cht.h @@ -7414,7 +7414,7 @@ MSG_HASH( ) MSG_HASH( MENU_ENUM_LABEL_HELP_SAVEFILE_DIRECTORY, - "儲存全部核心預設的記憶存檔到此資料夾。\n包含記憶存檔(*.srm)、 操作重播檔(*.bsv)、 實時時鐘(*.rtc)等相關檔案。\n此路徑位置會被命令列介面的命令取代。" + "儲存全部核心預設的記憶存檔到此資料夾。\n包含記憶存檔(*.srm)、 實時時鐘(*.rtc)等相關檔案。\n此路徑位置會被命令列介面的命令取代。" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SAVESTATE_DIRECTORY, diff --git a/intl/msg_hash_cs.h b/intl/msg_hash_cs.h index dcb605c4d0..8b6c7be5a8 100644 --- a/intl/msg_hash_cs.h +++ b/intl/msg_hash_cs.h @@ -7246,7 +7246,7 @@ MSG_HASH( ) MSG_HASH( MENU_ENUM_LABEL_HELP_SAVEFILE_DIRECTORY, - "Do tohoto adresáře uložte všechny ukládací soubory (*.srm). Patří sem i související soubory jako .bsv, .rt, .psrm atd... Toto bude potlačeno explicitními volbami příkazového řádku." + "Do tohoto adresáře uložte všechny ukládací soubory (*.srm). Patří sem i související soubory jako .rt, .psrm atd... Toto bude potlačeno explicitními volbami příkazového řádku." ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SAVESTATE_DIRECTORY, diff --git a/intl/msg_hash_de.h b/intl/msg_hash_de.h index 1bef295088..59b5a7748c 100644 --- a/intl/msg_hash_de.h +++ b/intl/msg_hash_de.h @@ -7162,7 +7162,7 @@ MSG_HASH( ) MSG_HASH( MENU_ENUM_LABEL_HELP_SAVEFILE_DIRECTORY, - "Speichert alle Speicherdaten (*.srm) in diesem Verzeichnis. Dies beinhaltet verwandte Dateitypen wie .bsv, .rt, .psrm usw. Explizite Kommandozeilenoptionen überschreiben diese Einstellung." + "Speichert alle Speicherdaten (*.srm) in diesem Verzeichnis. Dies beinhaltet verwandte Dateitypen wie .rt, .psrm usw. Explizite Kommandozeilenoptionen überschreiben diese Einstellung." ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SAVESTATE_DIRECTORY, diff --git a/intl/msg_hash_es.h b/intl/msg_hash_es.h index 18905ec1bc..9560718218 100644 --- a/intl/msg_hash_es.h +++ b/intl/msg_hash_es.h @@ -7326,7 +7326,7 @@ MSG_HASH( ) MSG_HASH( MENU_ENUM_LABEL_HELP_SAVEFILE_DIRECTORY, - "Almacena todas las partidas guardadas (*.srm) en este directorio. Incluye los archivos relacionados, como .bsv, .rt, .psrm, etcétera. Este directorio será ignorado si se utilizan explícitamente opciones por línea de comandos." + "Almacena todas las partidas guardadas (*.srm) en este directorio. Incluye los archivos relacionados, como .rt, .psrm, etcétera. Este directorio será ignorado si se utilizan explícitamente opciones por línea de comandos." ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SAVESTATE_DIRECTORY, diff --git a/intl/msg_hash_fr.h b/intl/msg_hash_fr.h index 18c450aece..0ed1d4873d 100644 --- a/intl/msg_hash_fr.h +++ b/intl/msg_hash_fr.h @@ -7294,7 +7294,7 @@ MSG_HASH( ) MSG_HASH( MENU_ENUM_LABEL_HELP_SAVEFILE_DIRECTORY, - "Enregistrez tous les fichiers de sauvegarde (*.srm) dans ce dossier. Cela inclut les fichiers connexes comme .bsv, .rt, .psrm, etc... Peut être remplacé par des options en ligne de commande explicites." + "Enregistrez tous les fichiers de sauvegarde (*.srm) dans ce dossier. Cela inclut les fichiers connexes comme .rt, .psrm, etc... Peut être remplacé par des options en ligne de commande explicites." ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SAVESTATE_DIRECTORY, diff --git a/intl/msg_hash_hu.h b/intl/msg_hash_hu.h index 93674457f3..22043a2272 100644 --- a/intl/msg_hash_hu.h +++ b/intl/msg_hash_hu.h @@ -7322,7 +7322,7 @@ MSG_HASH( ) MSG_HASH( MENU_ENUM_LABEL_HELP_SAVEFILE_DIRECTORY, - "Minden mentés fájl (*.srm) mentése ebbe a könyvtárba. Ez a .bsv, .rt, .psrm stb. fájlokat is tartalmazza. Parancssori opciókkal felülbírálható." + "Minden mentés fájl (*.srm) mentése ebbe a könyvtárba. Ez a .rt, .psrm stb. fájlokat is tartalmazza. Parancssori opciókkal felülbírálható." ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SAVESTATE_DIRECTORY, diff --git a/intl/msg_hash_pt_br.c b/intl/msg_hash_pt_br.c index 6e5e676fbb..5ea9c1f17b 100644 --- a/intl/msg_hash_pt_br.c +++ b/intl/msg_hash_pt_br.c @@ -1599,7 +1599,7 @@ int msg_hash_get_help_pt_br_enum(enum msg_hash_enums msg, char *s, size_t len) " \n" "Salvar todos os dados da memória do jogo (*.srm) \n" "neste diretório. Isso inclui arquivos \n" - "relacionados, como .bsv, .rt, .psrm, etc... \n" + "relacionados, como .rt, .psrm, etc... \n" " \n" "Será substituído por opções definidas \n" "explicitamente na linha de comando."); diff --git a/intl/msg_hash_pt_pt.c b/intl/msg_hash_pt_pt.c index 4a47c8683f..b461a2c430 100644 --- a/intl/msg_hash_pt_pt.c +++ b/intl/msg_hash_pt_pt.c @@ -755,7 +755,7 @@ int msg_hash_get_help_pt_pt_enum(enum msg_hash_enums msg, char *s, size_t len) " \n" "Guarda todos os ficheiros de gravação (*.srm) nesta \n" "pasta, tais como ficheiros relacionados: \n" - ".bsv, .rt, .psrm, etc.\n" + ".rt, .psrm, etc.\n" " \n" "Pode perder prevalência em relação a opções explícitas\n" "passadas como parâmetros na linha de comandos."); diff --git a/intl/msg_hash_ru.h b/intl/msg_hash_ru.h index b21b39694b..e1ef5ef758 100644 --- a/intl/msg_hash_ru.h +++ b/intl/msg_hash_ru.h @@ -7354,7 +7354,7 @@ MSG_HASH( ) MSG_HASH( MENU_ENUM_LABEL_HELP_SAVEFILE_DIRECTORY, - "Помещать все файлы сохранений (*.srm) в данный каталог. Включает связанные файлы .bsv, .rt, .psrm и т.д. Может переопределяться отдельными опциями командной строки." + "Помещать все файлы сохранений (*.srm) в данный каталог. Включает связанные файлы .rt, .psrm и т.д. Может переопределяться отдельными опциями командной строки." ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SAVESTATE_DIRECTORY, diff --git a/intl/msg_hash_tr.c b/intl/msg_hash_tr.c index 0930fd981c..2100a6eb67 100644 --- a/intl/msg_hash_tr.c +++ b/intl/msg_hash_tr.c @@ -1440,7 +1440,7 @@ int msg_hash_get_help_tr_enum(enum msg_hash_enums msg, char *s, size_t len) " \n" "Save all save files (*.srm) to this \n" "directory. This includes related files like \n" - ".bsv, .rt, .psrm, etc...\n" + ".rt, .psrm, etc...\n" " \n" "This will be overridden by explicit command line\n" "options."); diff --git a/intl/msg_hash_us.h b/intl/msg_hash_us.h index 422b8e3411..3dabe9d1aa 100644 --- a/intl/msg_hash_us.h +++ b/intl/msg_hash_us.h @@ -7506,7 +7506,7 @@ MSG_HASH( ) MSG_HASH( MENU_ENUM_LABEL_HELP_SAVEFILE_DIRECTORY, - "Save all save files (*.srm) to this directory. This includes related files like .bsv, .rt, .psrm, etc... This will be overridden by explicit command line options." + "Save all save files (*.srm) to this directory. This includes related files like .rt, .psrm, etc... This will be overridden by explicit command line options." ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SAVESTATE_DIRECTORY, @@ -7514,7 +7514,7 @@ MSG_HASH( ) MSG_HASH( MENU_ENUM_SUBLABEL_SAVESTATE_DIRECTORY, - "Save states are stored in this directory. If not set, will attempt to save them to the directory where the content is located." + "Save states and replays are stored in this directory. If not set, will attempt to save them to the directory where the content is located." ) MSG_HASH( MENU_ENUM_LABEL_VALUE_CACHE_DIRECTORY, diff --git a/retroarch.c b/retroarch.c index dbbc05e830..5bd56572e9 100644 --- a/retroarch.c +++ b/retroarch.c @@ -5092,12 +5092,12 @@ static void retroarch_print_help(const char *arg0) #ifdef HAVE_BSV_MOVIE strlcat(buf, - " -P, --bsvplay=FILE " - "Playback a BSV movie file.\n" - " -R, --bsvrecord=FILE " - "Start recording a BSV movie file from the beginning.\n" + " -P, --play-replay=FILE " + "Playback a replay file.\n" + " -R, --record-replay=FILE " + "Start recording a replay file from the beginning.\n" " --eof-exit " - "Exit upon reaching the end of the BSV movie file.\n" + "Exit upon reaching the end of the replay file.\n" , sizeof(buf)); #endif @@ -5351,8 +5351,8 @@ static bool retroarch_parse_input_and_config( { "savestate", 1, NULL, 'S' }, { "set-shader", 1, NULL, RA_OPT_SET_SHADER }, #ifdef HAVE_BSV_MOVIE - { "bsvplay", 1, NULL, 'P' }, - { "bsvrecord", 1, NULL, 'R' }, + { "play-replay", 1, NULL, 'P' }, + { "record-replay", 1, NULL, 'R' }, #endif { "sram-mode", 1, NULL, 'M' }, #ifdef HAVE_NETWORKING @@ -5994,7 +5994,7 @@ static bool retroarch_parse_input_and_config( if (input_st->bsv_movie_state.flags & BSV_FLAG_MOVIE_START_PLAYBACK) { runloop_st->entry_state_slot = 0; - RARCH_WARN("Trying to load entry state while BSV playback is active. Ignoring entry state.\n"); + RARCH_WARN("Trying to load entry state while replay playback is active. Ignoring entry state.\n"); } } #endif diff --git a/runloop.c b/runloop.c index b8278a28a9..4768e10268 100644 --- a/runloop.c +++ b/runloop.c @@ -7727,10 +7727,13 @@ void runloop_path_set_names(void) runloop_st->runtime_content_path_basename, sizeof(runloop_st->name.replay)); runloop_st->name.replay[len ] = '.'; - runloop_st->name.replay[len+1] = 'b'; - runloop_st->name.replay[len+2] = 's'; - runloop_st->name.replay[len+3] = 'v'; - runloop_st->name.replay[len+4] = '\0'; + runloop_st->name.replay[len+1] = 'r'; + runloop_st->name.replay[len+2] = 'e'; + runloop_st->name.replay[len+3] = 'p'; + runloop_st->name.replay[len+4] = 'l'; + runloop_st->name.replay[len+5] = 'a'; + runloop_st->name.replay[len+6] = 'y'; + runloop_st->name.replay[len+7] = '\0'; } #endif @@ -8035,7 +8038,7 @@ void runloop_path_set_special(char **argv, unsigned num_content) sizeof(runloop_st->name.savestate)); fill_pathname_dir(runloop_st->name.replay, str, - ".bsv", + ".replay", sizeof(runloop_st->name.replay)); RARCH_LOG("%s \"%s\".\n", msg_hash_to_str(MSG_REDIRECTING_SAVESTATE_TO), diff --git a/tasks/task_movie.c b/tasks/task_movie.c index e6cbfc88e1..3137bccbab 100644 --- a/tasks/task_movie.c +++ b/tasks/task_movie.c @@ -65,7 +65,7 @@ static bool bsv_movie_init_playback( if (!file) { - RARCH_ERR("Could not open BSV file for playback, path : \"%s\".\n", path); + RARCH_ERR("Could not open replay file for playback, path : \"%s\".\n", path); return false; } @@ -139,7 +139,7 @@ static bool bsv_movie_init_record( if (!file) { - RARCH_ERR("Could not open BSV file for recording, path : \"%s\".\n", path); + RARCH_ERR("Could not open replay file for recording, path : \"%s\".\n", path); return false; }