Mercurial > minori
diff src/track/constants.cc @ 118:39521c47c7a3
*: another huge megacommit, SORRY
The torrents page works a lot better now
Added the edit option to the anime list right click menu
Vectorized currently playing files
Available player and extensions are now loaded at runtime
from files in (dotpath)/players.json and (dotpath)/extensions.json
These paths are not permanent and will likely be moved to
(dotpath)/recognition
...
...
...
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Tue, 07 Nov 2023 23:40:54 -0500 |
parents | f5940a575d83 |
children |
line wrap: on
line diff
--- a/src/track/constants.cc Tue Nov 07 16:06:17 2023 -0500 +++ b/src/track/constants.cc Tue Nov 07 23:40:54 2023 -0500 @@ -1,11 +1,12 @@ #include "track/constants.h" -// clang-format off -// https://github.com/llvm/llvm-project/issues/62676 - /* right now, these are just const vectors, but eventually I'll make a class to manage these and make them disableable */ -const std::vector<std::string> media_extensions = { + +namespace Track { +namespace Constants { + +const std::vector<std::string> default_media_extensions = { "mkv", "mp4", "m4v", /* apple's stupid DRM thing */ @@ -46,7 +47,7 @@ "mxf" }; -const std::vector<std::string> media_players = { +const std::vector<std::string> default_media_players = { #ifdef MACOSX "VLC", "IINA", "QuickTime Player" #elif WIN32 @@ -55,4 +56,6 @@ "vlc", "mpv", "mpc-qt" #endif }; -// clang-format on + +} +}