Fix compatibility path generation in read_json_files().
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
b8b2291298
commit
df45afe31b
|
@ -13,7 +13,6 @@
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
* You should have received a copy of the GNU Affero General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "files.hpp"
|
#include "files.hpp"
|
||||||
|
|
||||||
#include "fs-compat.hpp"
|
#include "fs-compat.hpp"
|
||||||
|
@ -194,7 +193,7 @@ vector<entry_type> read_json_files(const bool cache)
|
||||||
const fs::path sh_path{screenshot};
|
const fs::path sh_path{screenshot};
|
||||||
// clang-format off
|
// clang-format off
|
||||||
const auto compat_path{path.parent_path() /= path.stem()
|
const auto compat_path{path.parent_path() /= path.stem()
|
||||||
/= sh_path.extension()};
|
+= sh_path.extension().string()};
|
||||||
// clang-format on
|
// clang-format on
|
||||||
if (entry.screenshot_filepaths.size() == 1
|
if (entry.screenshot_filepaths.size() == 1
|
||||||
&& fs::exists(compat_path))
|
&& fs::exists(compat_path))
|
||||||
|
|
Reference in New Issue