z_mirror/sdl-osu
git clone https://git.raiguard.me/z_mirror/sdl-osu
836a89c
trunk
1#pragma once 2#include <stdbool.h> 3#include <stddef.h> 4 5struct Osu_BeatmapStore { 6char * basePath ; 7 8// TODO: Investigate if we can store beatmaps directly in the array. 9struct Osu_Beatmap ** beatmaps ; 10size_t beatmapsLen ; 11 12struct SDL_Mutex * mutex ; 13bool finishedLoading ; 14struct SDL_Thread * loadWorker ; 15}; 16 17struct Osu_BeatmapStore * Osu_CreateBeatmapStore (const char * dataPath ); 18void Osu_DestroyBeatmapStore (struct Osu_BeatmapStore * store ); 19 20// Thread worker. 21int Osu_LoadBeatmapsWorker (void * userdata );