Create ui_win32_application.c

This commit is contained in:
twinaphex 2016-06-07 17:03:34 +02:00
parent 3b16eb1e91
commit 3aeecc7eb2
5 changed files with 36 additions and 2 deletions

View File

@ -650,7 +650,8 @@ endif
ifneq ($(findstring Win32,$(OS)),)
OBJ += ui/drivers/ui_win32.o \
ui/drivers/win32/ui_win32_window.o
ui/drivers/win32/ui_win32_window.o \
ui/drivers/win32/ui_win32_application.o
endif
# Video

View File

@ -732,6 +732,7 @@ UI
#if defined(_WIN32) && !defined(_XBOX)
#include "../ui/drivers/ui_win32.c"
#include "../ui/drivers/win32/ui_win32_window.c"
#include "../ui/drivers/win32/ui_win32_application.c"
#endif
/*============================================================

View File

@ -730,6 +730,6 @@ const ui_companion_driver_t ui_companion_win32 = {
NULL,
NULL,
&ui_window_win32,
&ui_application_null,
&ui_application_win32,
"win32",
};

View File

@ -0,0 +1,31 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2011-2016 - Daniel De Matteis
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
*
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with RetroArch.
* If not, see <http://www.gnu.org/licenses/>.
*/
#include <stdint.h>
#include <boolean.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include "../../ui_companion_driver.h"
static void ui_application_win32_process_events(void *data)
{
}
const ui_application_t ui_application_win32 = {
ui_application_win32_process_events,
"win32"
};

View File

@ -70,6 +70,7 @@ extern const ui_window_t ui_window_cocoa;
extern const ui_window_t ui_window_win32;
extern const ui_application_t ui_application_null;
extern const ui_application_t ui_application_win32;
extern const ui_application_t ui_application_cocoa;
extern const ui_companion_driver_t ui_companion_null;