Fix compilation errors
continuous-integration/drone/push Build is passing Details

This commit is contained in:
kayomn 2022-10-01 20:12:58 +01:00
parent 3c82b8a6a5
commit 31dc2d9c6e
1 changed files with 5 additions and 5 deletions

View File

@ -54,7 +54,7 @@ pub const EventLoop = opaque {
///
const Implementation = struct {
user_prefix: []const u8,
file_system_semaphore: *ext.SDL_Semaphore,
file_system_semaphore: *ext.SDL_sem,
file_system_thread: *ext.SDL_Thread,
file_system_messages: ?*FileSystemMessage = null,
@ -495,13 +495,13 @@ pub fn runGraphics(comptime Errors: anytype, run: GraphicsRunner(Errors)) Errors
var event_loop = EventLoop.Implementation{
.file_system_semaphore = ext.SDL_CreateSemaphore(0) orelse return error.InitFailure,
.file_system_thread = ext.SDL_CreateThread(EventLoop.processFileSystemMessages,
"File System Worker", &event_loop) orelse return error.InitFailure,
.file_system_thread = unreachable,
.user_prefix = pref_path,
};
event_loop.file_system_thread = ext.SDL_CreateThread(EventLoop.processFileSystemMessages,
"File System Worker", &event_loop) orelse return error.InitFailure;
defer {
ext.SDL_DestroyThread(event_loop.file_system_thread);
ext.SDL_DestroySemaphore(event_loop.file_system_semaphore);