mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 22:29:39 -06:00
GCMemcardManager: Rewrite file importing logic to provide a better user experience.
This commit is contained in:
@ -17,6 +17,8 @@ namespace Memcard
|
||||
{
|
||||
class GCMemcard;
|
||||
class GCMemcardErrorCode;
|
||||
struct Savefile;
|
||||
enum class ReadSavefileErrorCode;
|
||||
enum class SavefileFormat;
|
||||
} // namespace Memcard
|
||||
|
||||
@ -41,6 +43,7 @@ public:
|
||||
~GCMemcardManager();
|
||||
|
||||
static QString GetErrorMessagesForErrorCode(const Memcard::GCMemcardErrorCode& code);
|
||||
static QString GetErrorMessageForErrorCode(Memcard::ReadSavefileErrorCode code);
|
||||
|
||||
private:
|
||||
struct IconAnimationData;
|
||||
@ -57,6 +60,8 @@ private:
|
||||
|
||||
std::vector<u8> GetSelectedFileIndices();
|
||||
|
||||
void ImportFiles(int slot, const std::vector<Memcard::Savefile>& savefiles);
|
||||
|
||||
void CopyFiles();
|
||||
void ImportFile();
|
||||
void DeleteFiles();
|
||||
|
Reference in New Issue
Block a user