mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-08-29 01:56:06 +00:00
25 lines
602 B
C++
25 lines
602 B
C++
|
|
// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project
|
||
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||
|
|
|
||
|
|
#ifndef DATA_MANAGER_H
|
||
|
|
#define DATA_MANAGER_H
|
||
|
|
|
||
|
|
#include "common/common_types.h"
|
||
|
|
#include <string>
|
||
|
|
|
||
|
|
namespace FrontendCommon::DataManager {
|
||
|
|
|
||
|
|
enum class DataDir { Saves, UserNand, SysNand, Mods, Shaders };
|
||
|
|
|
||
|
|
const std::string GetDataDir(DataDir dir, const std::string &user_id = "");
|
||
|
|
|
||
|
|
u64 ClearDir(DataDir dir, const std::string &user_id = "");
|
||
|
|
|
||
|
|
const std::string ReadableBytesSize(u64 size);
|
||
|
|
|
||
|
|
u64 DataDirSize(DataDir dir);
|
||
|
|
|
||
|
|
}; // namespace FrontendCommon::DataManager
|
||
|
|
|
||
|
|
#endif // DATA_MANAGER_H
|