mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-04-10 18:28:54 +02:00
[desktop] refactor profile management and fix some misc bugs with it (#3415)
Adding and editing users is now done in a single dialog rather than all those other individual buttons and dialogs like before. Fixed some bugs with profile management too, and made edit/delete a right-click menu. Signed-off-by: crueter <crueter@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3415
This commit is contained in:
parent
9cf3a04af3
commit
b2b98ac83a
12 changed files with 959 additions and 469 deletions
|
|
@ -1,6 +1,7 @@
|
|||
// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project
|
||||
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
#include <filesystem>
|
||||
#include "data_manager.h"
|
||||
#include "common/assert.h"
|
||||
#include "common/fs/path_util.h"
|
||||
|
|
@ -37,7 +38,9 @@ const fs::path GetDataDir(DataDir dir, const std::string &user_id)
|
|||
|
||||
const std::string GetDataDirString(DataDir dir, const std::string &user_id)
|
||||
{
|
||||
return GetDataDir(dir, user_id).string();
|
||||
auto dirString = GetDataDir(dir, user_id).string();
|
||||
std::filesystem::create_directories(dirString);
|
||||
return dirString;
|
||||
}
|
||||
|
||||
u64 ClearDir(DataDir dir, const std::string &user_id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue