mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
31 lines
785 B
C++
31 lines
785 B
C++
// Copyright 2022 Dolphin Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <functional>
|
|
|
|
#include "Common/CommonTypes.h"
|
|
|
|
namespace Common
|
|
{
|
|
bool SyncSDFolderToSDImage(bool deterministic);
|
|
bool SyncSDImageToSDFolder();
|
|
|
|
class FatFsCallbacks
|
|
{
|
|
public:
|
|
FatFsCallbacks();
|
|
virtual ~FatFsCallbacks();
|
|
|
|
virtual u8 DiskInitialize(u8 pdrv);
|
|
virtual u8 DiskStatus(u8 pdrv);
|
|
virtual int DiskRead(u8 pdrv, u8* buff, u32 sector, unsigned int count) = 0;
|
|
virtual int DiskWrite(u8 pdrv, const u8* buff, u32 sector, unsigned int count) = 0;
|
|
virtual int DiskIOCtl(u8 pdrv, u8 cmd, void* buff) = 0;
|
|
virtual u32 GetCurrentTimeFAT();
|
|
};
|
|
|
|
void RunInFatFsContext(FatFsCallbacks& callbacks, const std::function<void()>& function);
|
|
} // namespace Common
|