mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 06:44:27 +00:00
(Win32) Add 'major' and 'minor' arguments to 'get_os' function
pointer
This commit is contained in:
parent
a707c24232
commit
1c2a96ac0b
@ -19,18 +19,33 @@
|
|||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#include "../general.h"
|
||||||
|
|
||||||
|
static void frontend_win32_get_os(char *name, size_t sizeof_name, int *major, int *minor)
|
||||||
|
{
|
||||||
|
DWORD version = GetVersion();
|
||||||
|
|
||||||
|
*major = (DWORD)(LOBYTE(LOWORD(version)));
|
||||||
|
*minor = (DWORD)(HIBYTE(LOWORD(version)));
|
||||||
|
}
|
||||||
|
|
||||||
|
static void frontend_win32_environment_get(int *argc, char *argv[],
|
||||||
|
void *args, void *params_data)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
const frontend_ctx_driver_t frontend_ctx_win32 = {
|
const frontend_ctx_driver_t frontend_ctx_win32 = {
|
||||||
NULL, /* environment_get */
|
frontend_win32_environment_get, /* environment_get */
|
||||||
NULL, /* init */
|
NULL, /* init */
|
||||||
NULL, /* deinit */
|
NULL, /* deinit */
|
||||||
NULL, /* exitspawn */
|
NULL, /* exitspawn */
|
||||||
NULL, /* process_args */
|
NULL, /* process_args */
|
||||||
NULL, /* exec */
|
NULL, /* exec */
|
||||||
NULL, /* set_fork */
|
NULL, /* set_fork */
|
||||||
NULL, /* shutdown */
|
NULL, /* shutdown */
|
||||||
NULL, /* get_name */
|
NULL, /* get_name */
|
||||||
NULL, /* get_os */
|
frontend_win32_get_os, /* get_os */
|
||||||
NULL, /* get_rating */
|
NULL, /* get_rating */
|
||||||
NULL, /* load_content */
|
NULL, /* load_content */
|
||||||
"win32",
|
"win32",
|
||||||
};
|
};
|
||||||
|
@ -44,7 +44,7 @@ typedef struct frontend_ctx_driver
|
|||||||
void (*set_fork)(bool exitspawn, bool start_game);
|
void (*set_fork)(bool exitspawn, bool start_game);
|
||||||
void (*shutdown)(bool);
|
void (*shutdown)(bool);
|
||||||
void (*get_name)(char *, size_t);
|
void (*get_name)(char *, size_t);
|
||||||
void (*get_os)(char *, size_t);
|
void (*get_os)(char *, size_t, int *major, int *minor);
|
||||||
int (*get_rating)(void);
|
int (*get_rating)(void);
|
||||||
void (*content_loaded)(void);
|
void (*content_loaded)(void);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user