comparison src/core/filesystem.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 c8c72278f6fd
children 54c9d36207db
comparison
equal deleted inserted replaced
117:2c1b6782e1d0 118:39521c47c7a3
126 if (!ret.empty()) 126 if (!ret.empty())
127 ret += DELIM CONFIG_NAME; 127 ret += DELIM CONFIG_NAME;
128 return ret; 128 return ret;
129 } 129 }
130 130
131 Path GetPlayersPath(void) {
132 std::string ret = "";
133 ret += GetDotPath().GetPath();
134 if (!ret.empty())
135 ret += DELIM "players.json";
136 return ret;
137 }
138
139 Path GetExtensionsPath(void) {
140 std::string ret = "";
141 ret += GetDotPath().GetPath();
142 if (!ret.empty())
143 ret += DELIM "extensions.json";
144 return ret;
145 }
146
131 Path GetAnimeDBPath(void) { 147 Path GetAnimeDBPath(void) {
132 std::string ret = ""; 148 std::string ret = "";
133 ret += GetDotPath().GetPath(); 149 ret += GetDotPath().GetPath();
134 if (!ret.empty()) 150 if (!ret.empty())
135 ret += DELIM "anime" DELIM "db.json"; 151 ret += DELIM "anime" DELIM "db.json";