First pass fixing compilation warnings

This commit is contained in:
Antoine Pilote
2024-08-15 12:45:42 -04:00
parent a817001c53
commit daa640cc7c
30 changed files with 63 additions and 478 deletions

View File

@@ -24,6 +24,7 @@
#include <chrono>
#include <imgui/imgui.h>
#include <Subprocess.hpp>
#include <codecvt>
namespace Nuake {
@@ -119,7 +120,8 @@ namespace Nuake {
if (SHGetFolderPath(NULL, CSIDL_LOCAL_APPDATA, NULL, 0, appDataPath) >= 0)
{
std::wstring wideString(appDataPath);
path = std::string(wideString.begin(), wideString.end());
auto wideStringPath = std::filesystem::path(wideString);
path = wideStringPath.string();
// Now, 'appDataPath' contains the path to the AppData folder
path.erase(std::remove_if(path.begin(), path.end(), [](char c)
{