ppuClear call from zig to c# simulator; not yet implemented in simulator; also breakpoints are not working in vs-code
This commit is contained in:
@@ -13,7 +13,6 @@ internal static class Program
|
||||
return SdRoot / $"slot{slotIdx}" / normalizedPath;
|
||||
}
|
||||
|
||||
private static readonly Nova64.DisplayFlushDelegate DisplayFlush = (buffer, width, height) => { };
|
||||
private static readonly Nova64.AudioOutputDelegate AudioOutput = (samples, count) => { };
|
||||
private static readonly Nova64.SdReadFileDelegate SdReadFile = (slotIdx, filePath, destinationBuffer, destinationLength) =>
|
||||
{
|
||||
@@ -47,6 +46,7 @@ internal static class Program
|
||||
return -1;
|
||||
}
|
||||
};
|
||||
|
||||
private static readonly Nova64.SdGetFileSizeDelegate SdGetFileSize = (slotIdx, filePath) =>
|
||||
{
|
||||
var path = GetSlotFilePath(slotIdx, filePath);
|
||||
@@ -69,6 +69,7 @@ internal static class Program
|
||||
return -1;
|
||||
}
|
||||
};
|
||||
|
||||
private static readonly Nova64.CartridgeStatusDelegate CartridgeStatus = (slotIdx, isInserted) => { };
|
||||
private static readonly Nova64.LogMessageDelegate LogMessage = (message) =>
|
||||
{
|
||||
@@ -76,6 +77,11 @@ internal static class Program
|
||||
Console.Out.Flush();
|
||||
};
|
||||
|
||||
private static readonly Nova64.PpuFillRectDelegate FillRect = (dst, dstStride, x, y, w, h, color) =>
|
||||
{
|
||||
|
||||
};
|
||||
|
||||
private static GCHandle? _ioHandle;
|
||||
private static GCHandle? _ppuHandle;
|
||||
private static Thread? _coreThread;
|
||||
@@ -129,7 +135,7 @@ internal static class Program
|
||||
|
||||
var ppuInterface = new Nova64.Nova64PpuInterface
|
||||
{
|
||||
|
||||
fill_rect = Marshal.GetFunctionPointerForDelegate(FillRect),
|
||||
};
|
||||
|
||||
_ppuHandle = GCHandle.Alloc(ppuInterface, GCHandleType.Pinned);
|
||||
|
||||
Reference in New Issue
Block a user