Implement file system API and add shutdown functionality for desktop builds
This commit is contained in:
@@ -10,8 +10,11 @@ internal static class Nova64Core
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
public delegate void AudioOutputDelegate(IntPtr samples, uint count);
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
public delegate bool SdReadSectorDelegate(uint sectorIdx, IntPtr destinationBuffer, uint sectorCount);
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
|
||||
public delegate int SdReadFileDelegate(uint slotIdx, string filePath, IntPtr destinationBuffer, uint destinationLength);
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
|
||||
public delegate int SdGetFileSizeDelegate(uint slotIdx, string filePath);
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
public delegate void CartridgeStatusDelegate(uint slotIdx, bool isInserted);
|
||||
@@ -24,7 +27,8 @@ internal static class Nova64Core
|
||||
{
|
||||
public IntPtr display_flush;
|
||||
public IntPtr audio_output;
|
||||
public IntPtr sd_read_sector;
|
||||
public IntPtr sd_read_file;
|
||||
public IntPtr sd_get_file_size;
|
||||
public IntPtr cartridge_status;
|
||||
public IntPtr log_message;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user