mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-03-15 21:17:00 -04:00
UI: Allow directories in file formatting settings
When configuring file formatting settings in advanced, allow the ability to specify formatted directories. For example, "%CCYY-%MM/%DD %hh-%mm-%ss" would make the year and month a subdirectory, then the day/hour/minute/seconds as the file name. January 21st 2121 at 4pm would end up being: "21 04-00-00.mp4" in the subdirectory "2121-01".
This commit is contained in:
@@ -2919,12 +2919,12 @@ void OBSBasicSettings::on_filenameFormatting_textEdited(const QString &text)
|
||||
{
|
||||
#ifdef __APPLE__
|
||||
size_t invalidLocation =
|
||||
text.toStdString().find_first_of(":/\\");
|
||||
text.toStdString().find_first_of(":");
|
||||
#elif _WIN32
|
||||
size_t invalidLocation =
|
||||
text.toStdString().find_first_of("<>:\"/\\|?*");
|
||||
text.toStdString().find_first_of("<>:\"|?*");
|
||||
#else
|
||||
size_t invalidLocation = text.toStdString().find_first_of("/");
|
||||
size_t invalidLocation = string::npos;
|
||||
#endif
|
||||
|
||||
if (invalidLocation != string::npos)
|
||||
|
||||
Reference in New Issue
Block a user