mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-16 03:38:30 +12:00
Add all the files
This commit is contained in:
parent
e3db07a16a
commit
d60742f52b
1445 changed files with 430238 additions and 0 deletions
33
src/Cafe/TitleList/SaveList.h
Normal file
33
src/Cafe/TitleList/SaveList.h
Normal file
|
@ -0,0 +1,33 @@
|
|||
#pragma once
|
||||
|
||||
#include "SaveInfo.h"
|
||||
|
||||
struct CafeSaveListCallbackEvent
|
||||
{
|
||||
enum class TYPE
|
||||
{
|
||||
SAVE_DISCOVERED,
|
||||
SAVE_REMOVED,
|
||||
SCAN_FINISHED,
|
||||
};
|
||||
TYPE eventType;
|
||||
SaveInfo* saveInfo;
|
||||
};
|
||||
|
||||
class CafeSaveList
|
||||
{
|
||||
public:
|
||||
static void Initialize();
|
||||
static void SetMLCPath(fs::path mlcPath);
|
||||
static void Refresh();
|
||||
|
||||
static SaveInfo GetSaveByTitleId(TitleId titleId);
|
||||
|
||||
// callback
|
||||
static uint64 RegisterCallback(void(*cb)(CafeSaveListCallbackEvent* evt, void* ctx), void* ctx); // on register, the callback will be invoked for every already known save
|
||||
static void UnregisterCallback(uint64 id);
|
||||
|
||||
private:
|
||||
static void RefreshThreadWorker();
|
||||
static void DiscoveredSave(SaveInfo* saveInfo);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue