z_mirror/sdl-osu

git clone https://git.raiguard.me/z_mirror/sdl-osu

Caleb HeuerSwitch to four-space indents and inline braces836a89c

trunk
525 B21 linesraw
1#pragma once
2#include <stdbool.h>
3#include <stddef.h>
4
5struct Osu_BeatmapStore {
6    char* basePath;
7
8    // TODO: Investigate if we can store beatmaps directly in the array.
9    struct Osu_Beatmap** beatmaps;
10    size_t beatmapsLen;
11
12    struct SDL_Mutex* mutex;
13    bool finishedLoading;
14    struct 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);