Richard Stanway 2727dd96bd UI: Handle prefixes when using paths in recording format
The replay buffer and screenshot functions add a prefix to the output
filename. The code in GetFormatString assumed the format string was the
entire filename, and inserted the prefix at the beginning. This caused
illegal paths such as "Screenshot /2021/05/22-35.mkv" to be created if
the user had specified a path in the format string, resulting in lost
files.

This commit inserts the prefix before the last / character to ensure it
only affects the filename portion of the format string.

Fixes #4707
2021-07-24 22:34:44 +02:00
..
2021-07-20 17:16:44 +12:00
2021-06-11 07:18:15 -07:00
2019-06-23 23:49:10 -07:00
2019-06-23 23:49:10 -07:00
2019-07-24 18:26:44 +02:00
2019-06-23 23:49:10 -07:00
2021-03-30 05:50:43 -07:00
2016-08-27 20:19:45 -07:00
2016-08-27 20:19:45 -07:00
2019-06-23 23:49:10 -07:00
2021-03-08 21:41:13 -08:00
2021-03-08 21:41:13 -08:00
2020-08-17 07:18:18 -07:00
2020-08-17 07:18:18 -07:00
2016-08-27 20:19:45 -07:00
2019-06-23 23:49:10 -07:00
2016-08-27 20:19:45 -07:00
2019-06-23 23:49:10 -07:00
2019-02-07 14:47:15 -08:00
2020-08-17 07:18:18 -07:00
2020-08-17 07:18:18 -07:00
2020-01-01 15:58:48 +11:00
2021-01-30 00:25:25 -08:00
2021-03-08 21:41:13 -08:00
2019-06-23 23:49:10 -07:00
2021-03-08 23:42:21 +13:00
2020-06-21 18:23:05 -07:00
2020-07-22 07:47:07 +02:00
2020-08-17 07:18:18 -07:00
2020-08-17 07:18:18 -07:00
2021-03-08 21:41:13 -08:00
2019-06-23 23:49:10 -07:00
2019-06-23 23:49:10 -07:00
2019-07-21 20:53:30 -07:00