-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlibretro_core.h
More file actions
57 lines (48 loc) · 1.51 KB
/
libretro_core.h
File metadata and controls
57 lines (48 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
* libretro_core.h - Libretro Core Loading and Management
*
* Copyright (c) 2024 mikedx
* GitHub: https://github.com/mikedx/libretro_raylib
*
* This file is part of libretro_raylib.
*
* libretro_raylib is free software: you can redistribute it and/or modify
* it under the terms of the MIT License.
*/
#ifndef LIBRETRO_CORE_H
#define LIBRETRO_CORE_H
#include "libretro.h"
#include "libretro_core_types.h"
#include "libretro_frontend.h"
#include <stdbool.h>
/**
* Load a libretro core from a dynamic library
* @param frontend Frontend instance
* @param core_path Path to the core .dylib file
* @return true on success, false on failure
*/
bool libretro_core_load(libretro_frontend_t* frontend, const char* core_path);
/**
* Initialize the loaded libretro core
* @param frontend Frontend instance with loaded core
* @return true on success, false on failure
*/
bool libretro_core_init(libretro_frontend_t* frontend);
/**
* Load a ROM file into the core
* @param frontend Frontend instance
* @param rom_path Path to the ROM file (can be NULL for no-game mode)
* @return true on success, false on failure
*/
bool libretro_core_load_rom(libretro_frontend_t* frontend, const char* rom_path);
/**
* Update audio/video information from the core
* @param frontend Frontend instance
*/
void libretro_core_update_av_info(libretro_frontend_t* frontend);
/**
* Unload the core and cleanup resources
* @param frontend Frontend instance
*/
void libretro_core_unload(libretro_frontend_t* frontend);
#endif // LIBRETRO_CORE_H