Files
eden/src/yuzu/configuration/input_profiles.h
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
1.0 KiB
C++
Raw Normal View History

// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
2025-09-15 17:21:18 +02:00
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
2020-09-23 09:52:25 -04:00
#pragma once
#include <string>
#include <ankerl/unordered_dense.h>
2020-09-23 09:52:25 -04:00
#include "qt_common/config/qt_config.h"
namespace Core {
class System;
}
2020-09-23 09:52:25 -04:00
class Config;
class InputProfiles {
public:
2022-07-10 11:29:10 -04:00
explicit InputProfiles();
2020-09-23 09:52:25 -04:00
virtual ~InputProfiles();
std::vector<std::string> GetInputProfileNames();
static bool IsProfileNameValid(std::string_view profile_name);
bool CreateProfile(const std::string& profile_name, std::size_t player_index);
bool DeleteProfile(const std::string& profile_name);
bool LoadProfile(const std::string& profile_name, std::size_t player_index);
bool SaveProfile(const std::string& profile_name, std::size_t player_index);
private:
bool ProfileExistsInMap(const std::string& profile_name) const;
ankerl::unordered_dense::map<std::string, std::unique_ptr<QtConfig>> map_profiles;
2020-09-23 09:52:25 -04:00
};