Alias filesystem namespace + attempt at fixing Windows compilation

This commit is contained in:
Simone Coco
2022-12-19 15:25:01 +01:00
committed by GitHub
parent 03c6231742
commit ba62db8f12
5 changed files with 24 additions and 23 deletions

View File

@@ -7,6 +7,7 @@
#include <iostream>
VkInstance instance{};
using fs = std::filesystem;
Window::Window(n64::Core& core) : settings(core), gameList(settings.GetGamesDir()) {
InitSDL();
@@ -175,7 +176,7 @@ void Window::LoadROM(n64::Core& core, const std::string &path) {
};
if(gameName.empty()) {
gameName = std::filesystem::path(path).stem().string();
gameName = fs::path(path).stem().string();
}
util::UpdateRPC(util::Playing, gameName);