-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlibretro_environment.h
More file actions
34 lines (28 loc) · 897 Bytes
/
libretro_environment.h
File metadata and controls
34 lines (28 loc) · 897 Bytes
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
/*
* libretro_environment.h - Libretro Environment Callback
*
* 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_ENVIRONMENT_H
#define LIBRETRO_ENVIRONMENT_H
#include "libretro.h"
#include "libretro_frontend.h"
/**
* Environment callback - handles core requests for system information
* @param cmd Command ID
* @param data Command-specific data
* @return true if command was handled, false otherwise
*/
bool retro_environment_callback(unsigned cmd, void* data);
/**
* Set the frontend instance for callbacks
* @param frontend Frontend instance (can be NULL)
*/
void libretro_environment_set_frontend(libretro_frontend_t* frontend);
#endif // LIBRETRO_ENVIRONMENT_H