Add all the files

This commit is contained in:
Exzap 2022-08-22 22:21:23 +02:00
parent e3db07a16a
commit d60742f52b
1445 changed files with 430238 additions and 0 deletions

View 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);
};