mirror of
https://github.com/libretro/RetroArch.git
synced 2025-02-13 05:10:42 +00:00
Merge branch 'master' of http://github.com/Themaister/RetroArch
This commit is contained in:
commit
ea806a6203
@ -31,14 +31,14 @@
|
||||
#include <xenon_soc/xenon_power.h>
|
||||
#include <elf/elf.h>
|
||||
#include <dirent.h>
|
||||
#include "../compat/strl.h"
|
||||
#include "../../compat/strl.h"
|
||||
|
||||
#undef main
|
||||
|
||||
int rarch_main(int argc, char **argv);
|
||||
static void start_ssnes(const char *path)
|
||||
static void start_rarch(const char *path)
|
||||
{
|
||||
char arg0[] = "ssnes";
|
||||
char arg0[] = "retroarch";
|
||||
char arg1[256];
|
||||
strlcpy(arg1, path, sizeof(arg1));
|
||||
char *argv[3] = { arg0, arg1, NULL };
|
||||
@ -169,7 +169,7 @@ int main(void)
|
||||
|
||||
printf("%s\n", fn);
|
||||
|
||||
start_ssnes(fn);
|
||||
start_rarch(fn);
|
||||
}
|
||||
}
|
||||
|
@ -21,14 +21,14 @@
|
||||
#include <string>
|
||||
#include <xbdm.h>
|
||||
#include "menu.h"
|
||||
#include "xdk360_input.h"
|
||||
#include "xdk360_video.h"
|
||||
#include "../xdk360_input.h"
|
||||
#include "../xdk360_video.h"
|
||||
|
||||
#include "../console/console_ext.h"
|
||||
#include "../conf/config_file.h"
|
||||
#include "../conf/config_file_macros.h"
|
||||
#include "../file.h"
|
||||
#include "../general.h"
|
||||
#include "../../console/console_ext.h"
|
||||
#include "../../conf/config_file.h"
|
||||
#include "../../conf/config_file_macros.h"
|
||||
#include "../../file.h"
|
||||
#include "../../general.h"
|
||||
|
||||
#define DEVICE_MEMORY_UNIT0 1
|
||||
#define DEVICE_MEMORY_UNIT1 2
|
||||
@ -140,25 +140,7 @@ static void set_default_settings (void)
|
||||
g_settings.video.vsync = true;
|
||||
g_settings.video.aspect_ratio = -1.0f;
|
||||
|
||||
rarch_default_keybind_lut[RETRO_DEVICE_ID_JOYPAD_B] = platform_keys[XDK360_DEVICE_ID_JOYPAD_A].joykey;
|
||||
rarch_default_keybind_lut[RETRO_DEVICE_ID_JOYPAD_Y] = platform_keys[XDK360_DEVICE_ID_JOYPAD_X].joykey;
|
||||
rarch_default_keybind_lut[RETRO_DEVICE_ID_JOYPAD_SELECT] = platform_keys[XDK360_DEVICE_ID_JOYPAD_BACK].joykey;
|
||||
rarch_default_keybind_lut[RETRO_DEVICE_ID_JOYPAD_START] = platform_keys[XDK360_DEVICE_ID_JOYPAD_START].joykey;
|
||||
rarch_default_keybind_lut[RETRO_DEVICE_ID_JOYPAD_UP] = platform_keys[XDK360_DEVICE_ID_JOYPAD_UP].joykey;
|
||||
rarch_default_keybind_lut[RETRO_DEVICE_ID_JOYPAD_DOWN] = platform_keys[XDK360_DEVICE_ID_JOYPAD_DOWN].joykey;
|
||||
rarch_default_keybind_lut[RETRO_DEVICE_ID_JOYPAD_LEFT] = platform_keys[XDK360_DEVICE_ID_JOYPAD_LEFT].joykey;
|
||||
rarch_default_keybind_lut[RETRO_DEVICE_ID_JOYPAD_RIGHT] = platform_keys[XDK360_DEVICE_ID_JOYPAD_RIGHT].joykey;
|
||||
rarch_default_keybind_lut[RETRO_DEVICE_ID_JOYPAD_A] = platform_keys[XDK360_DEVICE_ID_JOYPAD_B].joykey;
|
||||
rarch_default_keybind_lut[RETRO_DEVICE_ID_JOYPAD_X] = platform_keys[XDK360_DEVICE_ID_JOYPAD_Y].joykey;
|
||||
rarch_default_keybind_lut[RETRO_DEVICE_ID_JOYPAD_L] = platform_keys[XDK360_DEVICE_ID_JOYPAD_LB].joykey;
|
||||
rarch_default_keybind_lut[RETRO_DEVICE_ID_JOYPAD_R] = platform_keys[XDK360_DEVICE_ID_JOYPAD_RB].joykey;
|
||||
rarch_default_keybind_lut[RETRO_DEVICE_ID_JOYPAD_L2] = platform_keys[XDK360_DEVICE_ID_JOYPAD_LEFT_TRIGGER].joykey;
|
||||
rarch_default_keybind_lut[RETRO_DEVICE_ID_JOYPAD_R2] = platform_keys[XDK360_DEVICE_ID_JOYPAD_RIGHT_TRIGGER].joykey;
|
||||
rarch_default_keybind_lut[RETRO_DEVICE_ID_JOYPAD_L3] = platform_keys[XDK360_DEVICE_ID_LSTICK_THUMB].joykey;
|
||||
rarch_default_keybind_lut[RETRO_DEVICE_ID_JOYPAD_R3] = platform_keys[XDK360_DEVICE_ID_RSTICK_THUMB].joykey;
|
||||
|
||||
for(uint32_t x = 0; x < MAX_PLAYERS; x++)
|
||||
rarch_input_set_default_keybinds(x);
|
||||
rarch_input_set_controls_default();
|
||||
|
||||
//g_console
|
||||
g_console.block_config_read = true;
|
@ -18,13 +18,13 @@
|
||||
#include <crtdefs.h>
|
||||
#include <tchar.h>
|
||||
#include <xtl.h>
|
||||
#include "../console/fileio/file_browser.h"
|
||||
#include "../console/console_ext.h"
|
||||
#include "xdk360_video.h"
|
||||
#include "../../console/fileio/file_browser.h"
|
||||
#include "../../console/console_ext.h"
|
||||
#include "../xdk360_video.h"
|
||||
#include "menu.h"
|
||||
#include "../message.h"
|
||||
#include "../../message.h"
|
||||
|
||||
#include "../general.h"
|
||||
#include "../../general.h"
|
||||
|
||||
CRetroArch app;
|
||||
HXUIOBJ hCur;
|
||||
@ -89,6 +89,7 @@ HRESULT CRetroArchFileBrowser::OnInit(XUIMessageInit * pInitData, BOOL& bHandled
|
||||
GetChildById(L"XuiBtnCacheDir", &m_dir_cache);
|
||||
|
||||
filebrowser_set_root(&browser, g_console.default_rom_startup_dir);
|
||||
strlcpy(tmp_browser.extensions, rarch_console_get_rom_ext(), sizeof(tmp_browser.extensions));
|
||||
filebrowser_fetch_directory_entries(g_console.default_rom_startup_dir, &browser, &m_romlist, &m_rompathtitle);
|
||||
|
||||
return 0;
|
||||
@ -101,7 +102,7 @@ HRESULT CRetroArchCoreBrowser::OnInit(XUIMessageInit * pInitData, BOOL& bHandled
|
||||
GetChildById(L"XuiTxtRomPath", &m_rompathtitle);
|
||||
|
||||
filebrowser_set_root(&tmp_browser, "game:");
|
||||
filebrowser_new(&tmp_browser, "game:", "xex|XEX");
|
||||
strlcpy(tmp_browser.extensions, "xex|XEX", sizeof(tmp_browser.extensions));
|
||||
filebrowser_fetch_directory_entries("game:", &tmp_browser, &m_romlist, &m_rompathtitle);
|
||||
|
||||
return 0;
|
||||
@ -114,7 +115,7 @@ HRESULT CRetroArchShaderBrowser::OnInit(XUIMessageInit * pInitData, BOOL& bHandl
|
||||
GetChildById(L"XuiTxtRomPath", &m_shaderpathtitle);
|
||||
|
||||
filebrowser_set_root(&tmp_browser, "game:\\media\\shaders");
|
||||
filebrowser_new(&tmp_browser, "game:\\media\\shaders", "cg|CG");
|
||||
strlcpy(tmp_browser.extensions, "cg|CG", sizeof(tmp_browser.extensions));
|
||||
filebrowser_fetch_directory_entries("game:\\media\\shaders", &tmp_browser, &m_shaderlist, &m_shaderpathtitle);
|
||||
|
||||
return 0;
|
||||
@ -135,7 +136,7 @@ HRESULT CRetroArchControls::OnInit(XUIMessageInit * pInitData, BOOL& bHandled)
|
||||
|
||||
for(i = 0; i < RARCH_FIRST_META_KEY; i++)
|
||||
{
|
||||
snprintf(buttons[i], sizeof(buttons[i]), "%s #%d: %s", rarch_default_libretro_keybind_name_lut[i], controlno, rarch_input_find_platform_key_label(g_settings.input.binds[controlno][i].joykey));
|
||||
snprintf(buttons[i], sizeof(buttons[i]), "%s #%d: %s", rarch_input_get_default_keybind_name(i), controlno, rarch_input_find_platform_key_label(g_settings.input.binds[controlno][i].joykey));
|
||||
rarch_convert_char_to_wchar(strw_buffer, buttons[i], sizeof(strw_buffer));
|
||||
m_controlslist.SetText(i, strw_buffer);
|
||||
}
|
||||
@ -154,7 +155,7 @@ HRESULT CRetroArchControls::OnControlNavigate(XUIMessageControlNavigate *pContro
|
||||
|
||||
for(i = 0; i < RARCH_FIRST_META_KEY; i++)
|
||||
{
|
||||
snprintf(buttons[i], sizeof(buttons[i]), "%s #%d: %s", rarch_default_libretro_keybind_name_lut[i], controlno, rarch_input_find_platform_key_label(g_settings.input.binds[controlno][i].joykey));
|
||||
snprintf(buttons[i], sizeof(buttons[i]), "%s #%d: %s", rarch_input_get_default_keybind_name(i), controlno, rarch_input_find_platform_key_label(g_settings.input.binds[controlno][i].joykey));
|
||||
rarch_convert_char_to_wchar(strw_buffer, buttons[i], sizeof(strw_buffer));
|
||||
m_controlslist.SetText(i, strw_buffer);
|
||||
}
|
||||
@ -165,7 +166,7 @@ HRESULT CRetroArchControls::OnControlNavigate(XUIMessageControlNavigate *pContro
|
||||
if(current_index > 0 && current_index != SETTING_CONTROLS_DEFAULT_ALL)
|
||||
{
|
||||
rarch_input_set_keybind(controlno, KEYBIND_DECREMENT, current_index);
|
||||
snprintf(button, sizeof(button), "%s #%d: %s", rarch_default_libretro_keybind_name_lut[current_index], controlno, rarch_input_find_platform_key_label(g_settings.input.binds[controlno][current_index].joykey));
|
||||
snprintf(button, sizeof(button), "%s #%d: %s", rarch_input_get_default_keybind_name(current_index), controlno, rarch_input_find_platform_key_label(g_settings.input.binds[controlno][current_index].joykey));
|
||||
rarch_convert_char_to_wchar(strw_buffer, button, sizeof(strw_buffer));
|
||||
m_controlslist.SetText(current_index, strw_buffer);
|
||||
}
|
||||
@ -174,7 +175,7 @@ HRESULT CRetroArchControls::OnControlNavigate(XUIMessageControlNavigate *pContro
|
||||
if(current_index < RARCH_FIRST_META_KEY && current_index != SETTING_CONTROLS_DEFAULT_ALL)
|
||||
{
|
||||
rarch_input_set_keybind(controlno, KEYBIND_INCREMENT, current_index);
|
||||
snprintf(button, sizeof(button), "%s #%d: %s", rarch_default_libretro_keybind_name_lut[current_index], controlno, rarch_input_find_platform_key_label(g_settings.input.binds[controlno][current_index].joykey));
|
||||
snprintf(button, sizeof(button), "%s #%d: %s", rarch_input_get_default_keybind_name(current_index), controlno, rarch_input_find_platform_key_label(g_settings.input.binds[controlno][current_index].joykey));
|
||||
rarch_convert_char_to_wchar(strw_buffer, button, sizeof(strw_buffer));
|
||||
m_controlslist.SetText(current_index, strw_buffer);
|
||||
}
|
||||
@ -204,14 +205,14 @@ HRESULT CRetroArchControls::OnNotifyPress( HXUIOBJ hObjPressed, int & bHandled
|
||||
|
||||
for(i = 0; i < RARCH_FIRST_META_KEY; i++)
|
||||
{
|
||||
snprintf(buttons[i], sizeof(buttons[i]), "%s #%d: %s", rarch_default_libretro_keybind_name_lut[i], controlno, rarch_input_find_platform_key_label(g_settings.input.binds[controlno][i].joykey));
|
||||
snprintf(buttons[i], sizeof(buttons[i]), "%s #%d: %s", rarch_input_get_default_keybind_name(i), controlno, rarch_input_find_platform_key_label(g_settings.input.binds[controlno][i].joykey));
|
||||
rarch_convert_char_to_wchar(strw_buffer, buttons[i], sizeof(strw_buffer));
|
||||
m_controlslist.SetText(i, strw_buffer);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
rarch_input_set_keybind(controlno, KEYBIND_DEFAULT, current_index);
|
||||
snprintf(buttons[current_index], sizeof(buttons[current_index]), "%s #%d: %s", rarch_default_libretro_keybind_name_lut[current_index], controlno, rarch_input_find_platform_key_label(g_settings.input.binds[controlno][current_index].joykey));
|
||||
snprintf(buttons[current_index], sizeof(buttons[current_index]), "%s #%d: %s", rarch_input_get_default_keybind_name(current_index), controlno, rarch_input_find_platform_key_label(g_settings.input.binds[controlno][current_index].joykey));
|
||||
rarch_convert_char_to_wchar(strw_buffer, buttons[current_index], sizeof(strw_buffer));
|
||||
m_controlslist.SetText(current_index, strw_buffer);
|
||||
break;
|
@ -22,7 +22,7 @@
|
||||
#include "../libretro.h"
|
||||
#include "../console/console_ext.h"
|
||||
#include "xdk360_input.h"
|
||||
#include "menu.h"
|
||||
#include "frontend/menu.h"
|
||||
|
||||
static uint64_t state[4];
|
||||
static unsigned pads_connected;
|
||||
|
24
Makefile
24
Makefile
@ -2,8 +2,28 @@ include config.mk
|
||||
|
||||
TARGET = retroarch tools/retroarch-joyconfig
|
||||
|
||||
OBJ = retroarch.o file.o file_path.o hash.o driver.o settings.o dynamic.o message.o rewind.o gfx/gfx_common.o patch.o compat/compat.o screenshot.o audio/utils.o
|
||||
JOYCONFIG_OBJ = tools/retroarch-joyconfig.o conf/config_file.o compat/compat.o
|
||||
OBJ = retroarch.o \
|
||||
file.o \
|
||||
file_path.o \
|
||||
hash.o \
|
||||
driver.o \
|
||||
settings.o \
|
||||
dynamic.o \
|
||||
message.o \
|
||||
rewind.o \
|
||||
gfx/gfx_common.o \
|
||||
patch.o \
|
||||
compat/compat.o \
|
||||
screenshot.o \
|
||||
audio/utils.o \
|
||||
audio/null.o \
|
||||
input/null.o \
|
||||
gfx/null.o
|
||||
|
||||
JOYCONFIG_OBJ := tools/retroarch-joyconfig.o \
|
||||
conf/config_file.o \
|
||||
compat/compat.o
|
||||
|
||||
HEADERS = $(wildcard */*.h) $(wildcard *.h)
|
||||
|
||||
LIBS = -lm
|
||||
|
@ -45,8 +45,7 @@ PYTHON2 = python2.exe
|
||||
GIT = git.exe
|
||||
endif
|
||||
|
||||
PPU_SRCS = console/griffin/griffin.c \
|
||||
console/rzlib/rzlib.c
|
||||
PPU_SRCS = ps3/frontend/main.c ps3/frontend/menu.c
|
||||
|
||||
ifeq ($(HAVE_RGL), 1)
|
||||
DEFINES = -DHAVE_RGL
|
||||
@ -66,9 +65,9 @@ else
|
||||
endif
|
||||
|
||||
|
||||
PPU_LDLIBS = -ldbgfont $(GL_LIBS) -lretro -lcgc -lgcm_cmd -lgcm_sys_stub -lresc_stub -lm -lio_stub -lfs_stub -lsysutil_stub -lsysutil_game_stub -lsysutil_screenshot_stub -lsysutil_np_stub -lpngdec_stub -ljpgdec_stub -lsysmodule_stub -laudio_stub -lnet_stub -lnetctl_stub -lpthread
|
||||
PPU_LDLIBS = -ldbgfont $(GL_LIBS) -lretroarch -lretro -lcgc -lgcm_cmd -lgcm_sys_stub -lresc_stub -lm -lio_stub -lfs_stub -lsysutil_stub -lsysutil_game_stub -lsysutil_screenshot_stub -lsysutil_np_stub -lpngdec_stub -ljpgdec_stub -lsysmodule_stub -laudio_stub -lnet_stub -lnetctl_stub -lpthread
|
||||
|
||||
DEFINES += -DRARCH_CONSOLE -DHAVE_OPENGL -DHAVE_OPENGL_TEXREF -DHAVE_HEADSET -DHAVE_VID_CONTEXT -DHAVE_OPENGLES -DHAVE_CG -DHAVE_CG_MENU -DHAVE_FILEBROWSER -DHAVE_FBO -DHAVE_RARCH_MAIN_WRAP -DHAVE_SYSMODULES -DHAVE_SYSUTILS -DHAVE_RARCH_EXEC -DHAVE_RGL -DHAVE_LIBRETRO_MANAGEMENT -DHAVE_RSOUND -DHAVE_ZLIB -D__CELLOS_LV2__ -DHAVE_CONFIGFILE=1 -DHAVE_NETPLAY=1 -DHAVE_SOCKET_LEGACY=1 -DHAVE_OSKUTIL -DHAVE_MOUSE -DHAVE_GRIFFIN=1 -DHAVE_MULTIMAN=1 -DPACKAGE_VERSION=\"$(RARCH_VERSION)\" -Dmain=rarch_main -DPC_DEVELOPMENT_IP_ADDRESS=\"$(PC_DEVELOPMENT_IP_ADDRESS)\" -DPC_DEVELOPMENT_UDP_PORT=$(PC_DEVELOPMENT_UDP_PORT)
|
||||
DEFINES += -DHAVE_DEFAULT_RETROPAD_INPUT -DRARCH_CONSOLE -DHAVE_OPENGL -DHAVE_OPENGL_TEXREF -DHAVE_HEADSET -DHAVE_VID_CONTEXT -DHAVE_OPENGLES -DHAVE_CG -DHAVE_CG_MENU -DHAVE_FILEBROWSER -DHAVE_FBO -DHAVE_RARCH_MAIN_WRAP -DHAVE_SYSMODULES -DHAVE_SYSUTILS -DHAVE_RARCH_EXEC -DHAVE_RGL -DHAVE_LIBRETRO_MANAGEMENT -DHAVE_RSOUND -DHAVE_ZLIB -D__CELLOS_LV2__ -DHAVE_CONFIGFILE=1 -DHAVE_NETPLAY=1 -DHAVE_SOCKET_LEGACY=1 -DHAVE_OSKUTIL -DHAVE_MOUSE -DHAVE_GRIFFIN=1 -DHAVE_MULTIMAN=1 -DPACKAGE_VERSION=\"$(RARCH_VERSION)\" -Dmain=rarch_main -DPC_DEVELOPMENT_IP_ADDRESS=\"$(PC_DEVELOPMENT_IP_ADDRESS)\" -DPC_DEVELOPMENT_UDP_PORT=$(PC_DEVELOPMENT_UDP_PORT)
|
||||
|
||||
ifeq ($(DEBUG), 1)
|
||||
PPU_OPTIMIZE_LV := -O0 -g
|
||||
|
60
Makefile.ps3.retroarch
Normal file
60
Makefile.ps3.retroarch
Normal file
@ -0,0 +1,60 @@
|
||||
RARCH_VERSION = "0.9.6"
|
||||
|
||||
#which compiler to build with - GCC or SNC
|
||||
#set to GCC for debug builds for use with debugger
|
||||
CELL_BUILD_TOOLS = SNC
|
||||
CELL_GPU_TYPE = RSX
|
||||
CELL_PSGL_VERSION = ultra-opt
|
||||
|
||||
DEBUG = 0
|
||||
HAVE_RGL = 1
|
||||
HAVE_LOGGER = 0
|
||||
|
||||
PC_DEVELOPMENT_IP_ADDRESS = "192.168.1.7"
|
||||
PC_DEVELOPMENT_UDP_PORT = 3490
|
||||
|
||||
CELL_MK_DIR ?= $(CELL_SDK)/samples/mk
|
||||
include $(CELL_MK_DIR)/sdk.makedef.mk
|
||||
|
||||
PPU_LIB_TARGET = libretroarch.a
|
||||
|
||||
LDDIRS = -L. -L$(CELL_SDK)/target/ppu/lib/PSGL/RSX/ultra-opt
|
||||
INCDIRS = -I. -Ips3 -Icommon
|
||||
|
||||
PPU_SRCS = console/griffin/griffin.c console/rzlib/rzlib.c
|
||||
|
||||
ifeq ($(HAVE_RGL), 1)
|
||||
DEFINES = -DHAVE_RGL
|
||||
GL_LIBS := -lrgl
|
||||
else
|
||||
GL_LIBS := -L$(CELL_SDK)/target/ppu/lib/PSGL/RSX/ultra-opt -lPSGL -lPSGLcgc
|
||||
endif
|
||||
|
||||
ifeq ($(CELL_BUILD_TOOLS), SNC)
|
||||
PPU_CXXLD = $(CELL_SDK)/host-win32/sn/bin/ps3ppuld.exe
|
||||
PPU_CXX = $(CELL_SDK)/host-win32/sn/bin/ps3ppusnc.exe
|
||||
PPU_CC = $(CELL_SDK)/host-win32/sn/bin/ps3ppusnc.exe
|
||||
SNC_PPU_AR = $(CELL_SDK)/host-win32/sn/bin/ps3snarl.exe
|
||||
else
|
||||
PPU_CXX = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-g++.exe
|
||||
PPU_CC = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-gcc.exe
|
||||
PPU_CXXLD = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-ld.exe
|
||||
endif
|
||||
|
||||
DEFINES += -DHAVE_DEFAULT_RETROPAD_INPUT -DRARCH_CONSOLE -DHAVE_OPENGL -DHAVE_OPENGL_TEXREF -DHAVE_HEADSET -DHAVE_VID_CONTEXT -DHAVE_OPENGLES -DHAVE_CG -DHAVE_CG_MENU -DHAVE_FILEBROWSER -DHAVE_FBO -DHAVE_RARCH_MAIN_WRAP -DHAVE_SYSMODULES -DHAVE_SYSUTILS -DHAVE_RARCH_EXEC -DHAVE_RGL -DHAVE_LIBRETRO_MANAGEMENT -DHAVE_RSOUND -DHAVE_ZLIB -D__CELLOS_LV2__ -DHAVE_CONFIGFILE=1 -DHAVE_NETPLAY=1 -DHAVE_SOCKET_LEGACY=1 -DHAVE_OSKUTIL -DHAVE_MOUSE -DHAVE_GRIFFIN=1 -DHAVE_MULTIMAN=1 -DPACKAGE_VERSION=\"$(RARCH_VERSION)\" -Dmain=rarch_main -DPC_DEVELOPMENT_IP_ADDRESS=\"$(PC_DEVELOPMENT_IP_ADDRESS)\" -DPC_DEVELOPMENT_UDP_PORT=$(PC_DEVELOPMENT_UDP_PORT)
|
||||
|
||||
ifeq ($(DEBUG), 1)
|
||||
PPU_OPTIMIZE_LV := -O0 -g
|
||||
else
|
||||
PPU_OPTIMIZE_LV := -O3 -g
|
||||
endif
|
||||
|
||||
PPU_CFLAGS = $(PPU_OPTIMIZE_LV) $(INCDIRS) $(DEFINES)
|
||||
PPU_CXXFLAGS = $(PPU_OPTIMIZE_LV) $(INCDIRS) $(DEFINES)
|
||||
|
||||
ifeq ($(HAVE_LOGGER), 1)
|
||||
PPU_CFLAGS += -DHAVE_LOGGER
|
||||
PPU_SRCS += console/logger/logger.c
|
||||
endif
|
||||
|
||||
include $(CELL_MK_DIR)/sdk.target.mk
|
@ -37,7 +37,7 @@ ifeq ($(HAVE_FILE_LOGGER), 1)
|
||||
CFLAGS += -DHAVE_FILE_LOGGER
|
||||
endif
|
||||
|
||||
CFLAGS += -std=gnu99 -DRARCH_CONSOLE -DHAVE_CONFIGFILE=1 -DGEKKO -DHW_RVL -DHAVE_ZLIB -DHAVE_RARCH_MAIN_WRAP -DHAVE_FREETYPE -DHAVE_GRIFFIN=1 -DPACKAGE_VERSION=\"0.9.6\" -Dmain=rarch_main -Wno-char-subscripts -DPC_DEVELOPMENT_IP_ADDRESS=\"$(PC_DEVELOPMENT_IP_ADDRESS)\" -DPC_DEVELOPMENT_UDP_PORT=$(PC_DEVELOPMENT_UDP_PORT)
|
||||
CFLAGS += -std=gnu99 -DHAVE_DEFAULT_RETROPAD_INPUT -DRARCH_CONSOLE -DHAVE_CONFIGFILE=1 -DGEKKO -DHW_RVL -DHAVE_ZLIB -DHAVE_RARCH_MAIN_WRAP -DHAVE_FREETYPE -DHAVE_GRIFFIN=1 -DPACKAGE_VERSION=\"0.9.6\" -Dmain=rarch_main -Wno-char-subscripts -DPC_DEVELOPMENT_IP_ADDRESS=\"$(PC_DEVELOPMENT_IP_ADDRESS)\" -DPC_DEVELOPMENT_UDP_PORT=$(PC_DEVELOPMENT_UDP_PORT)
|
||||
|
||||
ifeq ($(DEBUG), 1)
|
||||
CFLAGS += -O0 -g
|
||||
|
26
Makefile.win
26
Makefile.win
@ -1,7 +1,29 @@
|
||||
TARGET = retroarch.exe
|
||||
JTARGET = retroarch-joyconfig.exe
|
||||
OBJ = retroarch.o file.o file_path.o driver.o conf/config_file.o settings.o hash.o dynamic.o message.o rewind.o movie.o gfx/gfx_common.o patch.o compat/compat.o screenshot.o audio/utils.o
|
||||
JOBJ = conf/config_file.o tools/retroarch-joyconfig.o compat/compat.o
|
||||
|
||||
OBJ = retroarch.o \
|
||||
file.o \
|
||||
file_path.o \
|
||||
driver.o \
|
||||
conf/config_file.o \
|
||||
settings.o \
|
||||
hash.o \
|
||||
dynamic.o \
|
||||
message.o \
|
||||
rewind.o \
|
||||
movie.o \
|
||||
gfx/gfx_common.o \
|
||||
patch.o \
|
||||
compat/compat.o \
|
||||
screenshot.o \
|
||||
audio/utils.o \
|
||||
audio/null.o \
|
||||
input/null.o \
|
||||
gfx/null.o
|
||||
|
||||
JOBJ := conf/config_file.o \
|
||||
tools/retroarch-joyconfig.o \
|
||||
compat/compat.o
|
||||
|
||||
CC = gcc
|
||||
CXX = g++
|
||||
|
@ -18,7 +18,7 @@ PPU_TARGET_ADJUSTED := retroarch-libxenon.elf32
|
||||
LDDIRS = -L. -L$(DEVKITXENON)/usr/lib -L$(DEVKITXENON)/xenon/lib/32
|
||||
INCDIRS = -I. -I$(DEVKITXENON)/usr/include
|
||||
|
||||
OBJ = fifo_buffer.o retroarch.o driver.o file.o file_path.o settings.o message.o rewind.o movie.o gfx/gfx_common.o patch.o compat/compat.o screenshot.o audio/hermite.o dynamic.o audio/utils.o conf/config_file.o xenon/main.o xenon/xenon360_audio.o xenon/xenon360_input.o xenon/xenon360_video.o
|
||||
OBJ = fifo_buffer.o retroarch.o driver.o file.o file_path.o settings.o message.o rewind.o movie.o gfx/gfx_common.o patch.o compat/compat.o screenshot.o audio/hermite.o dynamic.o audio/utils.o conf/config_file.o 360/frontend-xenon/main.o 360/xenon360_audio.o 360/xenon360_input.o 360/xenon360_video.o
|
||||
|
||||
LIBS = -lretro -lxenon -lm -lc
|
||||
DEFINES = -std=gnu99 -DHAVE_CONFIGFILE=1 -DPACKAGE_VERSION=\"0.9.6\" -DRARCH_CONSOLE -DHAVE_GETOPT_LONG=1 -Dmain=rarch_main
|
||||
|
@ -36,6 +36,7 @@ RetroArch has been ported to the following platforms outside PC:
|
||||
- PlayStation3
|
||||
- Xbox 360 (Libxenon/XeXDK)
|
||||
- Wii (Libogc)
|
||||
- Raspberry Pi
|
||||
|
||||
# Dependencies (PC)
|
||||
|
||||
@ -99,7 +100,11 @@ RetroArch PS3 needs to be compiled in the following order:
|
||||
|
||||
<tt>make -f Makefile.ps3.rgl</tt>
|
||||
|
||||
3) Finally, compile RetroArch itself
|
||||
3) Compile RetroArch as a library
|
||||
|
||||
<tt>make -f Makefile.ps3.retroarch</tt>
|
||||
|
||||
4) Finally, compile RetroArch packed together with the GUI:
|
||||
|
||||
<tt>make -f Makefile.ps3</tt>
|
||||
|
||||
|
@ -1,6 +0,0 @@
|
||||
/** Automatically generated file. DO NOT MODIFY */
|
||||
package com.retroarch;
|
||||
|
||||
public final class BuildConfig {
|
||||
public final static boolean DEBUG = true;
|
||||
}
|
@ -1,52 +0,0 @@
|
||||
/* AUTO-GENERATED FILE. DO NOT MODIFY.
|
||||
*
|
||||
* This class was automatically generated by the
|
||||
* aapt tool from the resource data it found. It
|
||||
* should not be modified by hand.
|
||||
*/
|
||||
|
||||
package com.retroarch;
|
||||
|
||||
public final class R {
|
||||
public static final class attr {
|
||||
}
|
||||
public static final class drawable {
|
||||
public static final int directory_icon=0x7f020000;
|
||||
public static final int directory_up=0x7f020001;
|
||||
public static final int file_icon=0x7f020002;
|
||||
public static final int ic_action_close=0x7f020003;
|
||||
public static final int ic_action_history=0x7f020004;
|
||||
public static final int ic_action_load=0x7f020005;
|
||||
public static final int ic_action_main=0x7f020006;
|
||||
public static final int ic_action_open=0x7f020007;
|
||||
public static final int ic_action_save=0x7f020008;
|
||||
public static final int ic_action_settings=0x7f020009;
|
||||
public static final int ic_launcher=0x7f02000a;
|
||||
}
|
||||
public static final class id {
|
||||
public static final int TextView01=0x7f060002;
|
||||
public static final int TextView02=0x7f060003;
|
||||
public static final int close=0x7f060006;
|
||||
public static final int fileChooserSubmit=0x7f060000;
|
||||
public static final int fileChooserView=0x7f060001;
|
||||
public static final int history=0x7f060009;
|
||||
public static final int load=0x7f060007;
|
||||
public static final int main=0x7f060004;
|
||||
public static final int open=0x7f060005;
|
||||
public static final int save=0x7f060008;
|
||||
public static final int settings=0x7f06000a;
|
||||
}
|
||||
public static final class layout {
|
||||
public static final int file_choose=0x7f030000;
|
||||
public static final int file_view=0x7f030001;
|
||||
public static final int main=0x7f030002;
|
||||
public static final int rombrowser=0x7f030003;
|
||||
}
|
||||
public static final class menu {
|
||||
public static final int main_menu=0x7f050000;
|
||||
}
|
||||
public static final class string {
|
||||
public static final int app_name=0x7f040001;
|
||||
public static final int hello=0x7f040000;
|
||||
}
|
||||
}
|
12
android/jni/Android.mk
Normal file
12
android/jni/Android.mk
Normal file
@ -0,0 +1,12 @@
|
||||
RARCH_VERSION = "0.9.6"
|
||||
LOCAL_PATH := $(call my-dir)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
|
||||
LOCAL_MODULE := retroarch
|
||||
LOCAL_SRC_FILES = ../../console/griffin/griffin.c ../../console/rzlib/rzlib.c
|
||||
|
||||
LOCAL_CFLAGS = -DANDROID -DHAVE_DYNAMIC -DHAVE_ZLIB -DINLINE=inline -DRARCH_CONSOLE -DLSB_FIRST -D__LIBRETRO__ -DHAVE_CONFIGFILE=1 -DHAVE_GRIFFIN=1 -DPACKAGE_VERSION=\"$(RARCH_VERSION)\" -Dmain=rarch_main -std=gnu99
|
||||
|
||||
include $(BUILD_SHARED_LIBRARY)
|
74
audio/null.c
Normal file
74
audio/null.c
Normal file
@ -0,0 +1,74 @@
|
||||
/* RetroArch - A frontend for libretro.
|
||||
* Copyright (C) 2010-2012 - Hans-Kristian Arntzen
|
||||
*
|
||||
* 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 "../general.h"
|
||||
#include "../driver.h"
|
||||
|
||||
static void *null_audio_init(const char *device, unsigned rate, unsigned latency)
|
||||
{
|
||||
(void)device;
|
||||
(void)rate;
|
||||
(void)latency;
|
||||
return (void*)-1;
|
||||
}
|
||||
|
||||
static void null_audio_free(void *data)
|
||||
{
|
||||
(void)data;
|
||||
}
|
||||
|
||||
static ssize_t null_audio_write(void *data, const void *buf, size_t size)
|
||||
{
|
||||
(void)data;
|
||||
(void)buf;
|
||||
|
||||
return size;
|
||||
}
|
||||
|
||||
static bool null_audio_stop(void *data)
|
||||
{
|
||||
(void)data;
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool null_audio_start(void *data)
|
||||
{
|
||||
(void)data;
|
||||
return true;
|
||||
}
|
||||
|
||||
static void null_audio_set_nonblock_state(void *data, bool state)
|
||||
{
|
||||
(void)data;
|
||||
(void)state;
|
||||
}
|
||||
|
||||
static bool null_audio_use_float(void *data)
|
||||
{
|
||||
(void)data;
|
||||
return true;
|
||||
}
|
||||
|
||||
const audio_driver_t audio_null = {
|
||||
null_audio_init,
|
||||
null_audio_write,
|
||||
null_audio_stop,
|
||||
null_audio_start,
|
||||
null_audio_set_nonblock_state,
|
||||
null_audio_free,
|
||||
null_audio_use_float,
|
||||
"null",
|
||||
};
|
||||
|
80
config.def.h
80
config.def.h
@ -30,41 +30,45 @@
|
||||
|
||||
#include "input/keysym.h"
|
||||
|
||||
///////////////// Drivers
|
||||
#define VIDEO_GL 0
|
||||
#define VIDEO_XVIDEO 11
|
||||
#define VIDEO_SDL 13
|
||||
#define VIDEO_EXT 14
|
||||
#define VIDEO_WII 24
|
||||
#define VIDEO_XENON360 25
|
||||
#define VIDEO_XDK360 28
|
||||
#define VIDEO_RPI 29
|
||||
////////////////////////
|
||||
#define AUDIO_RSOUND 1
|
||||
#define AUDIO_OSS 2
|
||||
#define AUDIO_ALSA 3
|
||||
#define AUDIO_ROAR 4
|
||||
#define AUDIO_AL 5
|
||||
#define AUDIO_JACK 6
|
||||
#define AUDIO_SDL 8
|
||||
#define AUDIO_XAUDIO 9
|
||||
#define AUDIO_PULSE 10
|
||||
#define AUDIO_EXT 15
|
||||
#define AUDIO_DSOUND 16
|
||||
#define AUDIO_COREAUDIO 17
|
||||
#define AUDIO_PS3 18
|
||||
#define AUDIO_XENON360 20
|
||||
#define AUDIO_WII 22
|
||||
#define AUDIO_XDK360 27
|
||||
////////////////////////
|
||||
#define INPUT_SDL 7
|
||||
#define INPUT_X 12
|
||||
#define INPUT_PS3 19
|
||||
#define INPUT_XENON360 21
|
||||
#define INPUT_WII 23
|
||||
#define INPUT_XDK360 26
|
||||
#define INPUT_LINUXRAW 30
|
||||
////////////////////////
|
||||
enum
|
||||
{
|
||||
VIDEO_GL = 0,
|
||||
VIDEO_XVIDEO,
|
||||
VIDEO_SDL,
|
||||
VIDEO_EXT,
|
||||
VIDEO_WII,
|
||||
VIDEO_XENON360,
|
||||
VIDEO_XDK360,
|
||||
VIDEO_RPI,
|
||||
VIDEO_NULL,
|
||||
|
||||
AUDIO_RSOUND,
|
||||
AUDIO_OSS,
|
||||
AUDIO_ALSA,
|
||||
AUDIO_ROAR,
|
||||
AUDIO_AL,
|
||||
AUDIO_JACK,
|
||||
AUDIO_SDL,
|
||||
AUDIO_XAUDIO,
|
||||
AUDIO_PULSE,
|
||||
AUDIO_EXT,
|
||||
AUDIO_DSOUND,
|
||||
AUDIO_COREAUDIO,
|
||||
AUDIO_PS3,
|
||||
AUDIO_XENON360,
|
||||
AUDIO_WII,
|
||||
AUDIO_XDK360,
|
||||
AUDIO_NULL,
|
||||
|
||||
INPUT_SDL,
|
||||
INPUT_X,
|
||||
INPUT_PS3,
|
||||
INPUT_XENON360,
|
||||
INPUT_WII,
|
||||
INPUT_XDK360,
|
||||
INPUT_LINUXRAW,
|
||||
INPUT_NULL
|
||||
};
|
||||
|
||||
#if defined(HAVE_RPI)
|
||||
#define VIDEO_DEFAULT_DRIVER VIDEO_RPI
|
||||
@ -83,7 +87,7 @@
|
||||
#elif defined(HAVE_DYLIB)
|
||||
#define VIDEO_DEFAULT_DRIVER VIDEO_EXT
|
||||
#else
|
||||
#error "Need at least one video driver."
|
||||
#define VIDEO_DEFAULT_DRIVER VIDEO_NULL
|
||||
#endif
|
||||
|
||||
#if defined(__CELLOS_LV2__)
|
||||
@ -119,7 +123,7 @@
|
||||
#elif defined(HAVE_DYLIB)
|
||||
#define AUDIO_DEFAULT_DRIVER AUDIO_EXT
|
||||
#else
|
||||
#error "Need at least one audio driver."
|
||||
#define AUDIO_DEFAULT_DRIVER AUDIO_NULL
|
||||
#endif
|
||||
|
||||
#if defined(XENON)
|
||||
@ -135,7 +139,7 @@
|
||||
#elif defined(HAVE_XVIDEO)
|
||||
#define INPUT_DEFAULT_DRIVER INPUT_X
|
||||
#else
|
||||
#error "Need at least one input driver."
|
||||
#define INPUT_DEFAULT_DRIVER INPUT_NULL
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -52,7 +52,11 @@ const char *rarch_console_get_rom_ext(void)
|
||||
const char *retval = NULL;
|
||||
|
||||
struct retro_system_info info;
|
||||
#ifdef ANDROID
|
||||
pretro_get_system_info(&info);
|
||||
#else
|
||||
retro_get_system_info(&info);
|
||||
#endif
|
||||
|
||||
if (info.valid_extensions)
|
||||
retval = info.valid_extensions;
|
||||
@ -68,7 +72,11 @@ void rarch_console_name_from_id(char *name, size_t size)
|
||||
return;
|
||||
|
||||
struct retro_system_info info;
|
||||
#ifdef ANDROID
|
||||
pretro_get_system_info(&info);
|
||||
#else
|
||||
retro_get_system_info(&info);
|
||||
#endif
|
||||
const char *id = info.library_name ? info.library_name : "Unknown";
|
||||
|
||||
if (!id || strlen(id) >= size)
|
||||
@ -362,6 +370,8 @@ static const struct platform_bind platform_keys[] = {
|
||||
};
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_DEFAULT_RETROPAD_INPUT
|
||||
|
||||
uint64_t rarch_input_find_previous_platform_key(uint64_t joykey)
|
||||
{
|
||||
size_t arr_size = sizeof(platform_keys) / sizeof(platform_keys[0]);
|
||||
@ -408,6 +418,7 @@ const char *rarch_input_find_platform_key_label(uint64_t joykey)
|
||||
return "Unknown";
|
||||
}
|
||||
|
||||
|
||||
void rarch_input_set_keybind(unsigned player, unsigned keybind_action, uint64_t default_retro_joypad_id)
|
||||
{
|
||||
uint64_t *key = &g_settings.input.binds[player][default_retro_joypad_id].joykey;
|
||||
@ -441,10 +452,62 @@ void rarch_input_set_default_keybinds(unsigned player)
|
||||
g_settings.input.dpad_emulation[player] = DPAD_EMULATION_LSTICK;
|
||||
}
|
||||
|
||||
void rarch_input_set_controls_default (void)
|
||||
{
|
||||
#if defined(__CELLOS_LV2__)
|
||||
rarch_default_keybind_lut[RETRO_DEVICE_ID_JOYPAD_B] = platform_keys[PS3_DEVICE_ID_JOYPAD_CROSS].joykey;
|
||||
rarch_default_keybind_lut[RETRO_DEVICE_ID_JOYPAD_Y] = platform_keys[PS3_DEVICE_ID_JOYPAD_SQUARE].joykey;
|
||||
rarch_default_keybind_lut[RETRO_DEVICE_ID_JOYPAD_SELECT] = platform_keys[PS3_DEVICE_ID_JOYPAD_SELECT].joykey;
|
||||
rarch_default_keybind_lut[RETRO_DEVICE_ID_JOYPAD_START] = platform_keys[PS3_DEVICE_ID_JOYPAD_START].joykey;
|
||||
rarch_default_keybind_lut[RETRO_DEVICE_ID_JOYPAD_UP] = platform_keys[PS3_DEVICE_ID_JOYPAD_UP].joykey;
|
||||
rarch_default_keybind_lut[RETRO_DEVICE_ID_JOYPAD_DOWN] = platform_keys[PS3_DEVICE_ID_JOYPAD_DOWN].joykey;
|
||||
rarch_default_keybind_lut[RETRO_DEVICE_ID_JOYPAD_LEFT] = platform_keys[PS3_DEVICE_ID_JOYPAD_LEFT].joykey;
|
||||
rarch_default_keybind_lut[RETRO_DEVICE_ID_JOYPAD_RIGHT] = platform_keys[PS3_DEVICE_ID_JOYPAD_RIGHT].joykey;
|
||||
rarch_default_keybind_lut[RETRO_DEVICE_ID_JOYPAD_A] = platform_keys[PS3_DEVICE_ID_JOYPAD_CIRCLE].joykey;
|
||||
rarch_default_keybind_lut[RETRO_DEVICE_ID_JOYPAD_X] = platform_keys[PS3_DEVICE_ID_JOYPAD_TRIANGLE].joykey;
|
||||
rarch_default_keybind_lut[RETRO_DEVICE_ID_JOYPAD_L] = platform_keys[PS3_DEVICE_ID_JOYPAD_L1].joykey;
|
||||
rarch_default_keybind_lut[RETRO_DEVICE_ID_JOYPAD_R] = platform_keys[PS3_DEVICE_ID_JOYPAD_R1].joykey;
|
||||
rarch_default_keybind_lut[RETRO_DEVICE_ID_JOYPAD_R2] = platform_keys[PS3_DEVICE_ID_JOYPAD_R2].joykey;
|
||||
rarch_default_keybind_lut[RETRO_DEVICE_ID_JOYPAD_R3] = platform_keys[PS3_DEVICE_ID_JOYPAD_R3].joykey;
|
||||
rarch_default_keybind_lut[RETRO_DEVICE_ID_JOYPAD_L2] = platform_keys[PS3_DEVICE_ID_JOYPAD_L2].joykey;
|
||||
rarch_default_keybind_lut[RETRO_DEVICE_ID_JOYPAD_L3] = platform_keys[PS3_DEVICE_ID_JOYPAD_L3].joykey;
|
||||
#elif defined(_XBOX)
|
||||
rarch_default_keybind_lut[RETRO_DEVICE_ID_JOYPAD_B] = platform_keys[XDK360_DEVICE_ID_JOYPAD_A].joykey;
|
||||
rarch_default_keybind_lut[RETRO_DEVICE_ID_JOYPAD_Y] = platform_keys[XDK360_DEVICE_ID_JOYPAD_X].joykey;
|
||||
rarch_default_keybind_lut[RETRO_DEVICE_ID_JOYPAD_SELECT] = platform_keys[XDK360_DEVICE_ID_JOYPAD_BACK].joykey;
|
||||
rarch_default_keybind_lut[RETRO_DEVICE_ID_JOYPAD_START] = platform_keys[XDK360_DEVICE_ID_JOYPAD_START].joykey;
|
||||
rarch_default_keybind_lut[RETRO_DEVICE_ID_JOYPAD_UP] = platform_keys[XDK360_DEVICE_ID_JOYPAD_UP].joykey;
|
||||
rarch_default_keybind_lut[RETRO_DEVICE_ID_JOYPAD_DOWN] = platform_keys[XDK360_DEVICE_ID_JOYPAD_DOWN].joykey;
|
||||
rarch_default_keybind_lut[RETRO_DEVICE_ID_JOYPAD_LEFT] = platform_keys[XDK360_DEVICE_ID_JOYPAD_LEFT].joykey;
|
||||
rarch_default_keybind_lut[RETRO_DEVICE_ID_JOYPAD_RIGHT] = platform_keys[XDK360_DEVICE_ID_JOYPAD_RIGHT].joykey;
|
||||
rarch_default_keybind_lut[RETRO_DEVICE_ID_JOYPAD_A] = platform_keys[XDK360_DEVICE_ID_JOYPAD_B].joykey;
|
||||
rarch_default_keybind_lut[RETRO_DEVICE_ID_JOYPAD_X] = platform_keys[XDK360_DEVICE_ID_JOYPAD_Y].joykey;
|
||||
rarch_default_keybind_lut[RETRO_DEVICE_ID_JOYPAD_L] = platform_keys[XDK360_DEVICE_ID_JOYPAD_LB].joykey;
|
||||
rarch_default_keybind_lut[RETRO_DEVICE_ID_JOYPAD_R] = platform_keys[XDK360_DEVICE_ID_JOYPAD_RB].joykey;
|
||||
rarch_default_keybind_lut[RETRO_DEVICE_ID_JOYPAD_L2] = platform_keys[XDK360_DEVICE_ID_JOYPAD_LEFT_TRIGGER].joykey;
|
||||
rarch_default_keybind_lut[RETRO_DEVICE_ID_JOYPAD_R2] = platform_keys[XDK360_DEVICE_ID_JOYPAD_RIGHT_TRIGGER].joykey;
|
||||
rarch_default_keybind_lut[RETRO_DEVICE_ID_JOYPAD_L3] = platform_keys[XDK360_DEVICE_ID_LSTICK_THUMB].joykey;
|
||||
rarch_default_keybind_lut[RETRO_DEVICE_ID_JOYPAD_R3] = platform_keys[XDK360_DEVICE_ID_RSTICK_THUMB].joykey;
|
||||
#endif
|
||||
for(uint32_t x = 0; x < MAX_PLAYERS; x++)
|
||||
rarch_input_set_default_keybinds(x);
|
||||
}
|
||||
|
||||
const char *rarch_input_get_default_keybind_name(unsigned id)
|
||||
{
|
||||
return rarch_default_libretro_keybind_name_lut[id];
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
void rarch_input_set_default_keybind_names_for_emulator(void)
|
||||
{
|
||||
struct retro_system_info info;
|
||||
#ifdef ANDROID
|
||||
pretro_get_system_info(&info);
|
||||
#else
|
||||
retro_get_system_info(&info);
|
||||
#endif
|
||||
const char *id = info.library_name ? info.library_name : "Unknown";
|
||||
|
||||
// Genesis Plus GX/Next
|
||||
@ -467,6 +530,7 @@ void rarch_input_set_default_keybind_names_for_emulator(void)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*============================================================
|
||||
VIDEO EXTENSIONS
|
||||
============================================================ */
|
||||
|
@ -21,6 +21,7 @@
|
||||
#include "libretro_mgmt.h"
|
||||
#endif
|
||||
|
||||
#include "../general.h"
|
||||
#include "console_settings.h"
|
||||
|
||||
#define IS_TIMER_NOT_EXPIRED(handle) (handle->frame_count < g_console.timer_expiration_frame_count)
|
||||
@ -148,6 +149,7 @@ int rarch_extract_zipfile(const char *zip_path);
|
||||
INPUT EXTENSIONS
|
||||
============================================================ */
|
||||
|
||||
#ifdef HAVE_DEFAULT_RETROPAD_INPUT
|
||||
const char *rarch_input_find_platform_key_label(uint64_t joykey);
|
||||
uint64_t rarch_input_find_previous_platform_key(uint64_t joykey);
|
||||
uint64_t rarch_input_find_next_platform_key(uint64_t joykey);
|
||||
@ -155,9 +157,14 @@ uint64_t rarch_input_find_next_platform_key(uint64_t joykey);
|
||||
// Sets custom default keybind names (some systems emulated by the emulator
|
||||
// will need different keybind names for buttons, etc.)
|
||||
void rarch_input_set_default_keybind_names_for_emulator(void);
|
||||
void rarch_input_set_default_keybinds(unsigned player);
|
||||
|
||||
void rarch_input_set_keybind(unsigned player, unsigned keybind_action, uint64_t default_retro_joypad_id);
|
||||
|
||||
void rarch_input_set_controls_default (void);
|
||||
const char *rarch_input_get_default_keybind_name (unsigned id);
|
||||
#endif
|
||||
|
||||
|
||||
/*============================================================
|
||||
RetroArch
|
||||
|
@ -111,7 +111,7 @@ static void filebrowser_set_current_decrement (filebrowser_t *filebrowser, bool
|
||||
|
||||
void filebrowser_iterate(filebrowser_t *filebrowser, filebrowser_action_t action)
|
||||
{
|
||||
int entries_to_scroll = 19;
|
||||
unsigned entries_to_scroll = 19;
|
||||
|
||||
switch(action)
|
||||
{
|
||||
|
@ -21,6 +21,7 @@
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
#include "../../general.h"
|
||||
|
||||
typedef struct
|
||||
{
|
||||
|
@ -1,30 +0,0 @@
|
||||
/* RetroArch - A frontend for libretro.
|
||||
* Copyright (C) 2010-2012 - Hans-Kristian Arntzen
|
||||
* Copyright (C) 2011-2012 - 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/>.
|
||||
*/
|
||||
#ifndef _FUNC_HOOKS_H
|
||||
#define _FUNC_HOOKS_H
|
||||
|
||||
/*============================================================
|
||||
GENERAL
|
||||
============================================================ */
|
||||
#if defined(__CELLOS_LV2__) || defined(_XBOX) || defined(GEKKO)
|
||||
#define HAVE_GRIFFIN_OVERRIDE_VIDEO_FRAME_FUNC 1
|
||||
#endif
|
||||
|
||||
#define rarch_render_cached_frame() \
|
||||
const char *msg = msg_queue_pull(g_extern.msg_queue); \
|
||||
video_frame_func(g_extern.frame_cache.data, g_extern.frame_cache.width, g_extern.frame_cache.height, g_extern.frame_cache.pitch, msg);
|
||||
|
||||
#endif
|
@ -46,8 +46,6 @@ CONFIG FILE
|
||||
#include "../../conf/config_file.c"
|
||||
#endif
|
||||
|
||||
#include "func_hooks.h"
|
||||
|
||||
/*============================================================
|
||||
VIDEO CONTEXT
|
||||
============================================================ */
|
||||
@ -88,14 +86,14 @@ VIDEO DRIVER
|
||||
|
||||
#ifdef HAVE_OPENGL
|
||||
#include "../../gfx/gl.c"
|
||||
#endif
|
||||
|
||||
#if defined(_XBOX)
|
||||
#elif defined(_XBOX)
|
||||
#include "../../360/xdk360_video.cpp"
|
||||
#elif defined(GEKKO)
|
||||
#include "../../wii/video.c"
|
||||
#endif
|
||||
|
||||
#include "../../gfx/null.c"
|
||||
|
||||
/*============================================================
|
||||
FONTS
|
||||
============================================================ */
|
||||
@ -119,6 +117,8 @@ INPUT
|
||||
#include "../../wii/input.c"
|
||||
#endif
|
||||
|
||||
#include "../../input/null.c"
|
||||
|
||||
/*============================================================
|
||||
STATE TRACKER
|
||||
============================================================ */
|
||||
@ -163,6 +163,8 @@ AUDIO
|
||||
#include "../../wii/audio.c"
|
||||
#endif
|
||||
|
||||
#include "../../audio/null.c"
|
||||
|
||||
/*============================================================
|
||||
DYNAMIC
|
||||
============================================================ */
|
||||
@ -200,10 +202,8 @@ REWIND
|
||||
/*============================================================
|
||||
MAIN
|
||||
============================================================ */
|
||||
#if defined(__CELLOS_LV2__)
|
||||
#include "../../ps3/main.c"
|
||||
#elif defined(_XBOX)
|
||||
#include "../../360/main.c"
|
||||
#if defined(_XBOX)
|
||||
#include "../../360/frontend/main.c"
|
||||
#elif defined(GEKKO)
|
||||
#include "../../wii/main.c"
|
||||
#endif
|
||||
@ -230,10 +230,8 @@ NETPLAY
|
||||
/*============================================================
|
||||
MENU
|
||||
============================================================ */
|
||||
#if defined(__CELLOS_LV2__)
|
||||
#include "../../ps3/menu.c"
|
||||
#elif defined(_XBOX)
|
||||
#include "../../360/menu.cpp"
|
||||
#if defined(_XBOX)
|
||||
#include "../../360/frontend/menu.cpp"
|
||||
#elif defined(GEKKO)
|
||||
#include "../rgui/rgui.c"
|
||||
#include "../rgui/list.c"
|
||||
|
@ -103,4 +103,29 @@
|
||||
#define input_free_func() wii_free_input(driver.input_data)
|
||||
#define gfx_ctx_window_has_focus() (true)
|
||||
|
||||
#else
|
||||
|
||||
/*============================================================
|
||||
NULL
|
||||
============================================================ */
|
||||
|
||||
#define video_init_func(video_info, input, input_data) null_gfx_init(video_info, input, input_data)
|
||||
#define video_frame_func(data, width, height, pitch, msg) \
|
||||
null_gfx_frame(driver.video_data, data, width, height, pitch, msg)
|
||||
#define video_set_nonblock_state_func(state) null_gfx_set_nonblock_state(driver.video_data, state)
|
||||
#define video_alive_func() null_gfx_alive(driver.video_data)
|
||||
#define video_focus_func() null_gfx_focus(driver.video_data)
|
||||
#define video_xml_shader_func(path) driver.video->xml_shader(driver.video_data, path)
|
||||
#define video_free_func() null_gfx_free(driver.video_data)
|
||||
#define video_set_rotation_func(orientation) (true)
|
||||
#define video_set_aspect_ratio_func(aspectratio_idx) (true)
|
||||
|
||||
#define input_init_func() null_input_init()
|
||||
#define input_poll_func() null_input_poll(driver.input_data)
|
||||
#define input_input_state_func(snes_keybinds, port, device, index, id) \
|
||||
null_input_state(driver.input_data, snes_keybinds, port, device, index, id)
|
||||
#define input_key_pressed_func(key) null_input_key_pressed(driver.input_data, key)
|
||||
#define input_free_func() null_input_free(driver.input_data)
|
||||
#define gfx_ctx_window_has_focus() (true)
|
||||
|
||||
#endif
|
||||
|
3
driver.c
3
driver.c
@ -75,6 +75,7 @@ static const audio_driver_t *audio_drivers[] = {
|
||||
#ifdef GEKKO
|
||||
&audio_wii,
|
||||
#endif
|
||||
&audio_null,
|
||||
};
|
||||
|
||||
static const video_driver_t *video_drivers[] = {
|
||||
@ -102,6 +103,7 @@ static const video_driver_t *video_drivers[] = {
|
||||
#ifdef HAVE_RPI
|
||||
&video_rpi,
|
||||
#endif
|
||||
&video_null,
|
||||
};
|
||||
|
||||
static const input_driver_t *input_drivers[] = {
|
||||
@ -126,6 +128,7 @@ static const input_driver_t *input_drivers[] = {
|
||||
#ifdef IS_LINUX
|
||||
&input_linuxraw,
|
||||
#endif
|
||||
&input_null,
|
||||
};
|
||||
|
||||
static void find_audio_driver(void)
|
||||
|
3
driver.h
3
driver.h
@ -214,6 +214,7 @@ extern const audio_driver_t audio_xenon360;
|
||||
extern const audio_driver_t audio_xdk360;
|
||||
extern const audio_driver_t audio_ps3;
|
||||
extern const audio_driver_t audio_wii;
|
||||
extern const audio_driver_t audio_null;
|
||||
extern const video_driver_t video_gl;
|
||||
extern const video_driver_t video_wii;
|
||||
extern const video_driver_t video_xenon360;
|
||||
@ -222,6 +223,7 @@ extern const video_driver_t video_xdk360;
|
||||
extern const video_driver_t video_sdl;
|
||||
extern const video_driver_t video_rpi;
|
||||
extern const video_driver_t video_ext;
|
||||
extern const video_driver_t video_null;
|
||||
extern const input_driver_t input_sdl;
|
||||
extern const input_driver_t input_x;
|
||||
extern const input_driver_t input_ps3;
|
||||
@ -229,6 +231,7 @@ extern const input_driver_t input_xenon360;
|
||||
extern const input_driver_t input_wii;
|
||||
extern const input_driver_t input_xdk360;
|
||||
extern const input_driver_t input_linuxraw;
|
||||
extern const input_driver_t input_null;
|
||||
////////////////////////////////////////////////
|
||||
|
||||
// Convenience macros.
|
||||
|
@ -235,13 +235,8 @@ static bool environment_cb(unsigned cmd, void *data)
|
||||
break;
|
||||
|
||||
case RETRO_ENVIRONMENT_GET_CAN_DUPE:
|
||||
#ifdef HAVE_FFMPEG
|
||||
*(bool*)data = true;
|
||||
RARCH_LOG("Environ GET_CAN_DUPE: true\n");
|
||||
#else
|
||||
*(bool*)data = false;
|
||||
RARCH_LOG("Environ GET_CAN_DUPE: false\n");
|
||||
#endif
|
||||
break;
|
||||
|
||||
case RETRO_ENVIRONMENT_GET_VARIABLE:
|
||||
|
@ -26,7 +26,7 @@
|
||||
|
||||
#include "../gl_common.h"
|
||||
#include "../image.h"
|
||||
#include "../../ps3/shared.h"
|
||||
#include "../../ps3/frontend/shared.h"
|
||||
|
||||
#include "ps3_ctx.h"
|
||||
|
||||
|
@ -17,4 +17,12 @@
|
||||
#ifndef _PS3_CTX_H
|
||||
#define _PS3_CTX_H
|
||||
|
||||
void gfx_ctx_get_available_resolutions (void);
|
||||
int gfx_ctx_check_resolution(unsigned resolution_id);
|
||||
const char *ps3_get_resolution_label(uint32_t resolution);
|
||||
void gfx_ctx_set_projection(gl_t *gl, const struct gl_ortho *ortho, bool allow_rotate);
|
||||
void gfx_ctx_set_aspect_ratio(void *data, unsigned aspectratio_index);
|
||||
void gfx_ctx_set_overscan(void);
|
||||
void gfx_ctx_set_fbo(bool enable);
|
||||
|
||||
#endif
|
||||
|
@ -17,4 +17,11 @@
|
||||
#ifndef _XDK360_CTX_H
|
||||
#define _XDK360_CTX_H
|
||||
|
||||
#include "../../360/xdk360_video.h"
|
||||
|
||||
void gfx_ctx_set_projection(xdk360_video_t *d3d9, const struct gl_ortho *ortho, bool allow_rotate);
|
||||
void gfx_ctx_set_aspect_ratio(void *data, unsigned aspectratio_index);
|
||||
void gfx_ctx_set_overscan(void);
|
||||
int gfx_ctx_check_resolution(unsigned resolution_id);
|
||||
|
||||
#endif
|
||||
|
@ -50,12 +50,6 @@ static inline bool gl_check_error(void)
|
||||
case GL_INVALID_OPERATION:
|
||||
RARCH_ERR("GL: Invalid operation.\n");
|
||||
break;
|
||||
case GL_STACK_OVERFLOW:
|
||||
RARCH_ERR("GL: Stack overflow. (wtf)\n");
|
||||
break;
|
||||
case GL_STACK_UNDERFLOW:
|
||||
RARCH_ERR("GL: Stack underflow. (:v)\n");
|
||||
break;
|
||||
case GL_OUT_OF_MEMORY:
|
||||
RARCH_ERR("GL: Out of memory. Harhar.\n");
|
||||
break;
|
||||
|
75
gfx/null.c
Normal file
75
gfx/null.c
Normal file
@ -0,0 +1,75 @@
|
||||
/* RetroArch - A frontend for libretro.
|
||||
* Copyright (C) 2010-2012 - Hans-Kristian Arntzen
|
||||
*
|
||||
* 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 "../general.h"
|
||||
#include "../driver.h"
|
||||
|
||||
static void *null_gfx_init(const video_info_t *video,
|
||||
const input_driver_t **input, void **input_data)
|
||||
{
|
||||
*input = NULL;
|
||||
*input_data = NULL;
|
||||
(void)video;
|
||||
|
||||
return (void*)-1;
|
||||
}
|
||||
|
||||
static bool null_gfx_frame(void *data, const void *frame,
|
||||
unsigned width, unsigned height, unsigned pitch, const char *msg)
|
||||
{
|
||||
(void)data;
|
||||
(void)frame;
|
||||
(void)width;
|
||||
(void)height;
|
||||
(void)pitch;
|
||||
(void)msg;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
static void null_gfx_set_nonblock_state(void *data, bool toggle)
|
||||
{
|
||||
(void)data;
|
||||
(void)toggle;
|
||||
}
|
||||
|
||||
static bool null_gfx_alive(void *data)
|
||||
{
|
||||
(void)data;
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool null_gfx_focus(void *data)
|
||||
{
|
||||
(void)data;
|
||||
return true;
|
||||
}
|
||||
|
||||
static void null_gfx_free(void *data)
|
||||
{
|
||||
(void)data;
|
||||
}
|
||||
|
||||
const video_driver_t video_null = {
|
||||
null_gfx_init,
|
||||
null_gfx_frame,
|
||||
null_gfx_set_nonblock_state,
|
||||
null_gfx_alive,
|
||||
null_gfx_focus,
|
||||
NULL,
|
||||
null_gfx_free,
|
||||
"null",
|
||||
};
|
||||
|
34
gfx/rpi.c
34
gfx/rpi.c
@ -31,8 +31,8 @@
|
||||
#include "../file.h"
|
||||
#endif
|
||||
|
||||
|
||||
typedef struct {
|
||||
typedef struct
|
||||
{
|
||||
EGLDisplay mDisplay;
|
||||
EGLSurface mSurface;
|
||||
EGLContext mContext;
|
||||
@ -143,9 +143,9 @@ static void *rpi_init(const video_info_t *video, const input_driver_t **input, v
|
||||
vc_dispmanx_display_get_info(dispman_display, &dispman_modeinfo);
|
||||
dispman_update = vc_dispmanx_update_start(0);
|
||||
|
||||
dispman_element = vc_dispmanx_element_add ( dispman_update, dispman_display,
|
||||
0/*layer*/, &dst_rect, 0/*src*/,
|
||||
&src_rect, DISPMANX_PROTECTION_NONE, 0 /*alpha*/, 0/*clamp*/, DISPMANX_NO_ROTATE);
|
||||
dispman_element = vc_dispmanx_element_add(dispman_update, dispman_display,
|
||||
0 /*layer*/, &dst_rect, 0 /*src*/,
|
||||
&src_rect, DISPMANX_PROTECTION_NONE, 0 /*alpha*/, 0 /*clamp*/, DISPMANX_NO_ROTATE);
|
||||
|
||||
nativewindow.element = dispman_element;
|
||||
nativewindow.width = rpi->mScreenWidth;
|
||||
@ -166,7 +166,7 @@ static void *rpi_init(const video_info_t *video, const input_driver_t **input, v
|
||||
if (dispman_modeinfo.width == 720 && (dispman_modeinfo.height == 480 || dispman_modeinfo.height == 576))
|
||||
rpi->mScreenAspect = 4.0f / 3.0f;
|
||||
else
|
||||
rpi->mScreenAspect = (float) dispman_modeinfo.width / dispman_modeinfo.height;
|
||||
rpi->mScreenAspect = (float)dispman_modeinfo.width / dispman_modeinfo.height;
|
||||
|
||||
VGfloat clearColor[4] = {0, 0, 0, 1};
|
||||
vgSetfv(VG_CLEAR_COLOR, 4, clearColor);
|
||||
@ -176,10 +176,12 @@ static void *rpi_init(const video_info_t *video, const input_driver_t **input, v
|
||||
// emulation cores can send 0 in the top bit. We lose some speed on
|
||||
// conversion but I doubt it has any real affect, since we are only drawing
|
||||
// one image at the end of the day. Still keep the alpha channel for ABGR.
|
||||
rpi->mImage = vgCreateImage(video->rgb32 ? VG_sABGR_8888 : VG_sXBGR_8888, rpi->mTextureWidth, rpi->mTextureHeight, video->smooth ? VG_IMAGE_QUALITY_BETTER : VG_IMAGE_QUALITY_NONANTIALIASED);
|
||||
rpi->mImage = vgCreateImage(video->rgb32 ? VG_sABGR_8888 : VG_sXBGR_8888,
|
||||
rpi->mTextureWidth, rpi->mTextureHeight,
|
||||
video->smooth ? VG_IMAGE_QUALITY_BETTER : VG_IMAGE_QUALITY_NONANTIALIASED);
|
||||
rpi_set_nonblock_state(rpi, !video->vsync);
|
||||
|
||||
linuxraw_input_t *linuxraw_input = (linuxraw_input_t *)input_linuxraw.init();
|
||||
linuxraw_input_t *linuxraw_input = (linuxraw_input_t*)input_linuxraw.init();
|
||||
if (linuxraw_input)
|
||||
{
|
||||
*input = (const input_driver_t *)&input_linuxraw;
|
||||
@ -258,7 +260,7 @@ static void rpi_render_message(rpi_t *rpi, const char *msg)
|
||||
free(rpi->mLastMsg);
|
||||
rpi->mLastMsg = strdup(msg);
|
||||
|
||||
if(rpi->mMsgLength)
|
||||
if (rpi->mMsgLength)
|
||||
{
|
||||
while (--rpi->mMsgLength)
|
||||
vgClearGlyph(rpi->mFont, rpi->mMsgLength);
|
||||
@ -278,10 +280,10 @@ static void rpi_render_message(rpi_t *rpi, const char *msg)
|
||||
VGfloat origin[2], escapement[2];
|
||||
VGImage img;
|
||||
|
||||
escapement[0] = (VGfloat) (head->advance_x);
|
||||
escapement[1] = (VGfloat) (head->advance_y);
|
||||
origin[0] = (VGfloat) (-head->char_off_x);
|
||||
origin[1] = (VGfloat) (head->char_off_y);
|
||||
escapement[0] = head->advance_x;
|
||||
escapement[1] = head->advance_y;
|
||||
origin[0] = -head->char_off_x;
|
||||
origin[1] = head->char_off_y;
|
||||
|
||||
img = vgCreateImage(VG_A_8, head->width, head->height, VG_IMAGE_QUALITY_NONANTIALIASED);
|
||||
|
||||
@ -310,7 +312,11 @@ static void rpi_draw_message(rpi_t *rpi, const char *msg)
|
||||
vgSeti(VG_SCISSORING, VG_FALSE);
|
||||
vgSeti(VG_IMAGE_MODE, VG_DRAW_IMAGE_STENCIL);
|
||||
|
||||
VGfloat origins[] = { rpi->mScreenWidth * g_settings.video.msg_pos_x - 2.0f, rpi->mScreenHeight * g_settings.video.msg_pos_y - 2.0f };
|
||||
VGfloat origins[] = {
|
||||
rpi->mScreenWidth * g_settings.video.msg_pos_x - 2.0f,
|
||||
rpi->mScreenHeight * g_settings.video.msg_pos_y - 2.0f,
|
||||
};
|
||||
|
||||
vgSetfv(VG_GLYPH_ORIGIN, 2, origins);
|
||||
vgSetPaint(rpi->mPaintBg, VG_FILL_PATH);
|
||||
vgDrawGlyphs(rpi->mFont, rpi->mMsgLength, rpi->mGlyphIndices, NULL, NULL, VG_FILL_PATH, VG_TRUE);
|
||||
|
@ -26,7 +26,7 @@
|
||||
#include "linuxraw_input.h"
|
||||
#include "rarch_sdl_input.h"
|
||||
|
||||
static long oldKbmd = 0xFFFF;
|
||||
static long oldKbmd = 0xffff;
|
||||
static struct termios oldTerm, newTerm;
|
||||
|
||||
struct key_bind
|
||||
@ -153,11 +153,11 @@ static void init_lut(void)
|
||||
|
||||
static void linuxraw_resetKbmd()
|
||||
{
|
||||
if (oldKbmd != 0xFFFF)
|
||||
if (oldKbmd != 0xffff)
|
||||
{
|
||||
ioctl(0, KDSKBMODE, oldKbmd);
|
||||
tcsetattr(0, TCSAFLUSH, &oldTerm);
|
||||
oldKbmd = 0xFFFF;
|
||||
oldKbmd = 0xffff;
|
||||
}
|
||||
}
|
||||
|
||||
@ -177,7 +177,7 @@ static void *linuxraw_input_init(void)
|
||||
if (!linuxraw)
|
||||
return NULL;
|
||||
|
||||
if (oldKbmd == 0xFFFF)
|
||||
if (oldKbmd == 0xffff)
|
||||
{
|
||||
tcgetattr(0, &oldTerm);
|
||||
newTerm = oldTerm;
|
||||
|
@ -14,8 +14,8 @@
|
||||
* If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef _LINUXRAW_INPUT_H
|
||||
#define _LINUXRAW_INPUT_H
|
||||
#ifndef LINUXRAW_INPUT_H__
|
||||
#define LINUXRAW_INPUT_H__
|
||||
|
||||
#include "../general.h"
|
||||
#include "rarch_sdl_input.h"
|
||||
|
62
input/null.c
Normal file
62
input/null.c
Normal file
@ -0,0 +1,62 @@
|
||||
/* RetroArch - A frontend for libretro.
|
||||
* Copyright (C) 2010-2012 - Hans-Kristian Arntzen
|
||||
*
|
||||
* 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 "../general.h"
|
||||
#include "../driver.h"
|
||||
|
||||
static void *null_input_init(void)
|
||||
{
|
||||
return (void*)-1;
|
||||
}
|
||||
|
||||
static void null_input_poll(void *data)
|
||||
{
|
||||
(void)data;
|
||||
}
|
||||
|
||||
static int16_t null_input_state(void *data, const struct snes_keybind **snes_keybinds, unsigned port, unsigned device, unsigned index, unsigned id)
|
||||
{
|
||||
(void)data;
|
||||
(void)snes_keybinds;
|
||||
(void)port;
|
||||
(void)device;
|
||||
(void)index;
|
||||
(void)id;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static bool null_input_key_pressed(void *data, int key)
|
||||
{
|
||||
(void)data;
|
||||
(void)key;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
static void null_input_free(void *data)
|
||||
{
|
||||
(void)data;
|
||||
}
|
||||
|
||||
const input_driver_t input_null = {
|
||||
null_input_init,
|
||||
null_input_poll,
|
||||
null_input_state,
|
||||
null_input_key_pressed,
|
||||
null_input_free,
|
||||
"null",
|
||||
};
|
||||
|
@ -113,7 +113,7 @@
|
||||
<MinimalRebuild>true</MinimalRebuild>
|
||||
<BufferSecurityCheck>false</BufferSecurityCheck>
|
||||
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||
<PreprocessorDefinitions>_DEBUG;_XBOX;PACKAGE_VERSION="0.9.6";%(PreprocessorDefinitions);_CRT_SECURE_NO_WARNINGS;main=rarch_main;RARCH_CONSOLE;HAVE_CONFIGFILE;HAVE_FILEBROWSER;HAVE_NETPLAY;HAVE_SOCKET_LEGACY;HAVE_ZLIB;HAVE_RARCH_MAIN_WRAP;HAVE_RARCH_EXEC;HAVE_LIBRETRO_MANAGEMENT;D3DCOMPILE_USEVOIDS;HAVE_GRIFFIN;HAVE_HLSL;HAVE_VID_CONTEXT;HAVE_D3D9</PreprocessorDefinitions>
|
||||
<PreprocessorDefinitions>_DEBUG;_XBOX;PACKAGE_VERSION="0.9.6";%(PreprocessorDefinitions);HAVE_DEFAULT_RETROPAD_INPUT;_CRT_SECURE_NO_WARNINGS;main=rarch_main;RARCH_CONSOLE;HAVE_CONFIGFILE;HAVE_FILEBROWSER;HAVE_NETPLAY;HAVE_SOCKET_LEGACY;HAVE_ZLIB;HAVE_RARCH_MAIN_WRAP;HAVE_RARCH_EXEC;HAVE_LIBRETRO_MANAGEMENT;D3DCOMPILE_USEVOIDS;HAVE_GRIFFIN;HAVE_HLSL;HAVE_VID_CONTEXT;HAVE_D3D9</PreprocessorDefinitions>
|
||||
<CallAttributedProfiling>Callcap</CallAttributedProfiling>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
@ -151,7 +151,7 @@
|
||||
<PREfast>AnalyzeOnly</PREfast>
|
||||
<BufferSecurityCheck>false</BufferSecurityCheck>
|
||||
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||
<PreprocessorDefinitions>_DEBUG;_XBOX;%(PreprocessorDefinitions);PACKAGE_VERSION="0.9.6";_CRT_SECURE_NO_WARNINGS;main=rarch_main;HAVE_CONFIGFILE;HAVE_FILEBROWSER;RARCH_CONSOLE;HAVE_ZLIB;HAVE_RARCH_MAIN_WRAP;HAVE_RARCH_EXEC;HAVE_LIBRETRO_MANAGEMENT;D3DCOMPILE_USEVOIDS;HAVE_GRIFFIN;HAVE_HLSL;HAVE_VID_CONTEXT;HAVE_D3D9</PreprocessorDefinitions>
|
||||
<PreprocessorDefinitions>_DEBUG;_XBOX;%(PreprocessorDefinitions);PACKAGE_VERSION="0.9.6";HAVE_DEFAULT_RETROPAD_INPUT;_CRT_SECURE_NO_WARNINGS;main=rarch_main;HAVE_CONFIGFILE;HAVE_FILEBROWSER;RARCH_CONSOLE;HAVE_ZLIB;HAVE_RARCH_MAIN_WRAP;HAVE_RARCH_EXEC;HAVE_LIBRETRO_MANAGEMENT;D3DCOMPILE_USEVOIDS;HAVE_GRIFFIN;HAVE_HLSL;HAVE_VID_CONTEXT;HAVE_D3D9</PreprocessorDefinitions>
|
||||
<CallAttributedProfiling>Callcap</CallAttributedProfiling>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
@ -190,7 +190,7 @@
|
||||
<FavorSizeOrSpeed>Size</FavorSizeOrSpeed>
|
||||
<BufferSecurityCheck>false</BufferSecurityCheck>
|
||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||
<PreprocessorDefinitions>NDEBUG;_XBOX;PROFILE;%(PreprocessorDefinitions);PACKAGE_VERSION="0.9.6";_CRT_SECURE_NO_WARNINGS;RARCH_CONSOLE;main=rarch_main;HAVE_CONFIGFILE;HAVE_FILEBROWSER;HAVE_ZLIB;HAVE_RARCH_MAIN_WRAP;HAVE_RARCH_EXEC;HAVE_LIBRETRO_MANAGEMENT;D3DCOMPILE_USEVOIDS;HAVE_GRIFFIN;HAVE_HLSL;HAVE_VID_CONTEXT;HAVE_D3D9</PreprocessorDefinitions>
|
||||
<PreprocessorDefinitions>NDEBUG;_XBOX;PROFILE;%(PreprocessorDefinitions);PACKAGE_VERSION="0.9.6";HAVE_DEFAULT_RETROPAD_INPUT;_CRT_SECURE_NO_WARNINGS;RARCH_CONSOLE;main=rarch_main;HAVE_CONFIGFILE;HAVE_FILEBROWSER;HAVE_ZLIB;HAVE_RARCH_MAIN_WRAP;HAVE_RARCH_EXEC;HAVE_LIBRETRO_MANAGEMENT;D3DCOMPILE_USEVOIDS;HAVE_GRIFFIN;HAVE_HLSL;HAVE_VID_CONTEXT;HAVE_D3D9</PreprocessorDefinitions>
|
||||
<CallAttributedProfiling>Callcap</CallAttributedProfiling>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
@ -234,7 +234,7 @@
|
||||
<FavorSizeOrSpeed>Size</FavorSizeOrSpeed>
|
||||
<BufferSecurityCheck>false</BufferSecurityCheck>
|
||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||
<PreprocessorDefinitions>NDEBUG;_XBOX;PROFILE;FASTCAP;%(PreprocessorDefinitions);PACKAGE_VERSION="0.9.6";_CRT_SECURE_NO_WARNINGS;main=rarch_main;HAVE_CONFIGFILE;HAVE_FILEBROWSER;HAVE_ZLIB;HAVE_RARCH_MAIN_WRAP;HAVE_RARCH_EXEC;HAVE_LIBRETRO_MANAGEMENT;D3DCOMPILE_USEVOIDS;HAVE_GRIFFIN;HAVE_HLSL;HAVE_VID_CONTEXT;HAVE_D3D9</PreprocessorDefinitions>
|
||||
<PreprocessorDefinitions>NDEBUG;_XBOX;PROFILE;FASTCAP;%(PreprocessorDefinitions);PACKAGE_VERSION="0.9.6";HAVE_DEFAULT_RETROPAD_INPUT;_CRT_SECURE_NO_WARNINGS;main=rarch_main;HAVE_CONFIGFILE;HAVE_FILEBROWSER;HAVE_ZLIB;HAVE_RARCH_MAIN_WRAP;HAVE_RARCH_EXEC;HAVE_LIBRETRO_MANAGEMENT;D3DCOMPILE_USEVOIDS;HAVE_GRIFFIN;HAVE_HLSL;HAVE_VID_CONTEXT;HAVE_D3D9</PreprocessorDefinitions>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
@ -275,7 +275,7 @@
|
||||
<ExceptionHandling>false</ExceptionHandling>
|
||||
<BufferSecurityCheck>false</BufferSecurityCheck>
|
||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||
<PreprocessorDefinitions>NDEBUG;_XBOX;%(PreprocessorDefinitions);PACKAGE_VERSION="0.9.6";_CRT_SECURE_NO_WARNINGS;main=rarch_main;RARCH_CONSOLE=1;HAVE_CONFIGFILE;HAVE_FILEBROWSER;HAVE_NETPLAY;HAVE_SOCKET_LEGACY;HAVE_ZLIB;HAVE_RARCH_MAIN_WRAP;HAVE_RARCH_EXEC;HAVE_LIBRETRO_MANAGEMENT;D3DCOMPILE_USEVOIDS;HAVE_GRIFFIN;HAVE_HLSL;HAVE_VID_CONTEXT;HAVE_D3D9</PreprocessorDefinitions>
|
||||
<PreprocessorDefinitions>NDEBUG;_XBOX;%(PreprocessorDefinitions);PACKAGE_VERSION="0.9.6";_CRT_SECURE_NO_WARNINGS;HAVE_DEFAULT_RETROPAD_INPUT;main=rarch_main;RARCH_CONSOLE=1;HAVE_CONFIGFILE;HAVE_FILEBROWSER;HAVE_NETPLAY;HAVE_SOCKET_LEGACY;HAVE_ZLIB;HAVE_RARCH_MAIN_WRAP;HAVE_RARCH_EXEC;HAVE_LIBRETRO_MANAGEMENT;D3DCOMPILE_USEVOIDS;HAVE_GRIFFIN;HAVE_HLSL;HAVE_VID_CONTEXT;HAVE_D3D9</PreprocessorDefinitions>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
@ -316,7 +316,7 @@
|
||||
<ExceptionHandling>false</ExceptionHandling>
|
||||
<BufferSecurityCheck>false</BufferSecurityCheck>
|
||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||
<PreprocessorDefinitions>NDEBUG;_XBOX;LTCG;%(PreprocessorDefinitions);PACKAGE_VERSION="0.9.6";_CRT_SECURE_NO_WARNINGS;RARCH_CONSOLE;main=rarch_main;HAVE_CONFIGFILE;HAVE_FILEBROWSER;HAVE_NETPLAY;HAVE_SOCKET_LEGACY;HAVE_ZLIB;HAVE_RARCH_MAIN_WRAP;HAVE_RARCH_EXEC;HAVE_LIBRETRO_MANAGEMENT;D3DCOMPILE_USEVOIDS;HAVE_GRIFFIN;HAVE_HLSL;HAVE_VID_CONTEXT;HAVE_D3D9</PreprocessorDefinitions>
|
||||
<PreprocessorDefinitions>NDEBUG;_XBOX;LTCG;%(PreprocessorDefinitions);PACKAGE_VERSION="0.9.6";_CRT_SECURE_NO_WARNINGS;HAVE_DEFAULT_RETROPAD_INPUT;RARCH_CONSOLE;main=rarch_main;HAVE_CONFIGFILE;HAVE_FILEBROWSER;HAVE_NETPLAY;HAVE_SOCKET_LEGACY;HAVE_ZLIB;HAVE_RARCH_MAIN_WRAP;HAVE_RARCH_EXEC;HAVE_LIBRETRO_MANAGEMENT;D3DCOMPILE_USEVOIDS;HAVE_GRIFFIN;HAVE_HLSL;HAVE_VID_CONTEXT;HAVE_D3D9</PreprocessorDefinitions>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
@ -714,4 +714,4 @@
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
||||
</Project>
|
||||
|
@ -39,13 +39,15 @@
|
||||
#include <np.h>
|
||||
#include <np/drm.h>
|
||||
|
||||
#include "ps3_input.h"
|
||||
#include "../ps3_input.h"
|
||||
|
||||
#include "../console/console_ext.h"
|
||||
#include "../conf/config_file.h"
|
||||
#include "../conf/config_file_macros.h"
|
||||
#include "../general.h"
|
||||
#include "../file.h"
|
||||
#include "../../gfx/gl_common.h"
|
||||
|
||||
#include "../../console/console_ext.h"
|
||||
#include "../../conf/config_file.h"
|
||||
#include "../../conf/config_file_macros.h"
|
||||
#include "../../general.h"
|
||||
#include "../../file.h"
|
||||
|
||||
#include "shared.h"
|
||||
|
||||
@ -100,25 +102,7 @@ static void set_default_settings(void)
|
||||
g_settings.video.msg_pos_y = 0.90f;
|
||||
g_settings.video.aspect_ratio = -1.0f;
|
||||
|
||||
rarch_default_keybind_lut[RETRO_DEVICE_ID_JOYPAD_B] = platform_keys[PS3_DEVICE_ID_JOYPAD_CROSS].joykey;
|
||||
rarch_default_keybind_lut[RETRO_DEVICE_ID_JOYPAD_Y] = platform_keys[PS3_DEVICE_ID_JOYPAD_SQUARE].joykey;
|
||||
rarch_default_keybind_lut[RETRO_DEVICE_ID_JOYPAD_SELECT] = platform_keys[PS3_DEVICE_ID_JOYPAD_SELECT].joykey;
|
||||
rarch_default_keybind_lut[RETRO_DEVICE_ID_JOYPAD_START] = platform_keys[PS3_DEVICE_ID_JOYPAD_START].joykey;
|
||||
rarch_default_keybind_lut[RETRO_DEVICE_ID_JOYPAD_UP] = platform_keys[PS3_DEVICE_ID_JOYPAD_UP].joykey;
|
||||
rarch_default_keybind_lut[RETRO_DEVICE_ID_JOYPAD_DOWN] = platform_keys[PS3_DEVICE_ID_JOYPAD_DOWN].joykey;
|
||||
rarch_default_keybind_lut[RETRO_DEVICE_ID_JOYPAD_LEFT] = platform_keys[PS3_DEVICE_ID_JOYPAD_LEFT].joykey;
|
||||
rarch_default_keybind_lut[RETRO_DEVICE_ID_JOYPAD_RIGHT] = platform_keys[PS3_DEVICE_ID_JOYPAD_RIGHT].joykey;
|
||||
rarch_default_keybind_lut[RETRO_DEVICE_ID_JOYPAD_A] = platform_keys[PS3_DEVICE_ID_JOYPAD_CIRCLE].joykey;
|
||||
rarch_default_keybind_lut[RETRO_DEVICE_ID_JOYPAD_X] = platform_keys[PS3_DEVICE_ID_JOYPAD_TRIANGLE].joykey;
|
||||
rarch_default_keybind_lut[RETRO_DEVICE_ID_JOYPAD_L] = platform_keys[PS3_DEVICE_ID_JOYPAD_L1].joykey;
|
||||
rarch_default_keybind_lut[RETRO_DEVICE_ID_JOYPAD_R] = platform_keys[PS3_DEVICE_ID_JOYPAD_R1].joykey;
|
||||
rarch_default_keybind_lut[RETRO_DEVICE_ID_JOYPAD_R2] = platform_keys[PS3_DEVICE_ID_JOYPAD_R2].joykey;
|
||||
rarch_default_keybind_lut[RETRO_DEVICE_ID_JOYPAD_R3] = platform_keys[PS3_DEVICE_ID_JOYPAD_R3].joykey;
|
||||
rarch_default_keybind_lut[RETRO_DEVICE_ID_JOYPAD_L2] = platform_keys[PS3_DEVICE_ID_JOYPAD_L2].joykey;
|
||||
rarch_default_keybind_lut[RETRO_DEVICE_ID_JOYPAD_L3] = platform_keys[PS3_DEVICE_ID_JOYPAD_L3].joykey;
|
||||
|
||||
for(uint32_t x = 0; x < MAX_PLAYERS; x++)
|
||||
rarch_input_set_default_keybinds(x);
|
||||
rarch_input_set_controls_default();
|
||||
|
||||
// g_console
|
||||
g_console.block_config_read = true;
|
||||
@ -133,7 +117,7 @@ static void set_default_settings(void)
|
||||
g_console.fbo_enabled = true;
|
||||
g_console.mode_switch = MODE_MENU;
|
||||
g_console.screen_orientation = ORIENTATION_NORMAL;
|
||||
g_console.current_resolution_id = CELL_VIDEO_OUT_RESOLUTION_UNDEFINED;
|
||||
g_console.current_resolution_id = 0;
|
||||
strlcpy(g_console.default_rom_startup_dir, "/", sizeof(g_console.default_rom_startup_dir));
|
||||
strlcpy(g_console.default_savestate_dir, usrDirPath, sizeof(g_console.default_savestate_dir));
|
||||
strlcpy(g_console.default_sram_dir, usrDirPath, sizeof(g_console.default_sram_dir));
|
@ -23,16 +23,20 @@
|
||||
#include <sysutil/sysutil_bgmplayback.h>
|
||||
#endif
|
||||
|
||||
#include "ps3_input.h"
|
||||
#include "../console/fileio/file_browser.h"
|
||||
#include "../ps3_input.h"
|
||||
#include "../../console/fileio/file_browser.h"
|
||||
|
||||
#include "../console/console_ext.h"
|
||||
#include "../../console/console_ext.h"
|
||||
|
||||
#include "../gfx/gl_common.h"
|
||||
#include "../../gfx/gl_common.h"
|
||||
#include "../../gfx/gl_font.h"
|
||||
#include "../../gfx/gfx_context.h"
|
||||
#include "../../gfx/context/ps3_ctx.h"
|
||||
#include "../../gfx/shader_cg.h"
|
||||
|
||||
#include "shared.h"
|
||||
#include "../file.h"
|
||||
#include "../general.h"
|
||||
#include "../../file.h"
|
||||
#include "../../general.h"
|
||||
|
||||
#include "menu.h"
|
||||
#include "menu-entries.h"
|
||||
@ -702,7 +706,8 @@ static void set_setting_label(menu * menu_obj, uint64_t currentsetting)
|
||||
else
|
||||
menu_obj->items[currentsetting].text_color = ORANGE;
|
||||
const char * value = rarch_input_find_platform_key_label(g_settings.input.binds[currently_selected_controller_menu][currentsetting-(FIRST_CONTROL_BIND)].joykey);
|
||||
snprintf(menu_obj->items[currentsetting].text, sizeof(menu_obj->items[currentsetting].text), rarch_default_libretro_keybind_name_lut[currentsetting-(FIRST_CONTROL_BIND)]);
|
||||
unsigned id = currentsetting - FIRST_CONTROL_BIND;
|
||||
snprintf(menu_obj->items[currentsetting].text, sizeof(menu_obj->items[currentsetting].text), rarch_input_get_default_keybind_name(id));
|
||||
snprintf(menu_obj->items[currentsetting].comment, sizeof(menu_obj->items[currentsetting].comment), "INFO - [%s] on the PS3 controller is mapped to action:\n[%s].", menu_obj->items[currentsetting].text, value);
|
||||
snprintf(menu_obj->items[currentsetting].setting_text, sizeof(menu_obj->items[currentsetting].setting_text), value);
|
||||
}
|
@ -16,7 +16,7 @@
|
||||
|
||||
#include "../driver.h"
|
||||
#include "../general.h"
|
||||
#include "shared.h"
|
||||
#include "frontend/shared.h"
|
||||
#include <stdlib.h>
|
||||
#include <cell/audio.h>
|
||||
#include <sys/timer.h>
|
||||
|
@ -33,7 +33,7 @@
|
||||
#include "../console/console_ext.h"
|
||||
#include "../libretro.h"
|
||||
#include "../general.h"
|
||||
#include "shared.h"
|
||||
#include "frontend/shared.h"
|
||||
|
||||
/*============================================================
|
||||
PS3 MOUSE
|
||||
|
@ -100,7 +100,7 @@ check_pkgconf() #$1 = HAVE_$1 $2 = package $3 = version $4 = critical error mess
|
||||
ECHOBUF="Checking for pkg-config"
|
||||
# echo -n "Checking for pkg-config"
|
||||
for PKG_CONF_PATH in $(which pkg-config) ''; do [ "$PKG_CONF_PATH" ] && break; done
|
||||
[ "$PKG_CONF_PATH" ] || { echo "Not found. Exiting ..."; exit 1;}
|
||||
[ "$PKG_CONF_PATH" ] || { echo "pkg-config not found. Exiting ..."; exit 1;}
|
||||
echo "$ECHOBUF ... $PKG_CONF_PATH"
|
||||
}
|
||||
|
||||
|
18
retroarch.c
18
retroarch.c
@ -198,8 +198,8 @@ static void video_frame(const void *data, unsigned width, unsigned height, size_
|
||||
|
||||
// Slightly messy code,
|
||||
// but we really need to do processing before blocking on VSync for best possible scheduling.
|
||||
#ifdef HAVE_FFMPEG
|
||||
bool is_dupe = !data;
|
||||
#ifdef HAVE_FFMPEG
|
||||
|
||||
if (g_extern.recording && (!g_extern.filter.active || !g_settings.video.post_filter_record || is_dupe))
|
||||
{
|
||||
@ -211,10 +211,9 @@ static void video_frame(const void *data, unsigned width, unsigned height, size_
|
||||
ffemu_data.is_dupe = is_dupe;
|
||||
ffemu_push_video(g_extern.rec, &ffemu_data);
|
||||
}
|
||||
|
||||
#endif
|
||||
if (is_dupe)
|
||||
return;
|
||||
#endif
|
||||
|
||||
const char *msg = msg_queue_pull(g_extern.msg_queue);
|
||||
|
||||
@ -259,7 +258,6 @@ static void video_frame(const void *data, unsigned width, unsigned height, size_
|
||||
#include "console/griffin/rarch_func_hooks.h"
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_GRIFFIN_OVERRIDE_VIDEO_FRAME_FUNC
|
||||
void rarch_render_cached_frame(void)
|
||||
{
|
||||
#ifdef HAVE_FFMPEG
|
||||
@ -271,19 +269,15 @@ void rarch_render_cached_frame(void)
|
||||
// Not 100% safe, since the library might have
|
||||
// freed the memory, but no known implementations do this :D
|
||||
// It would be really stupid at any rate ...
|
||||
if (g_extern.frame_cache.data)
|
||||
{
|
||||
video_frame(g_extern.frame_cache.data,
|
||||
g_extern.frame_cache.width,
|
||||
g_extern.frame_cache.height,
|
||||
g_extern.frame_cache.pitch);
|
||||
}
|
||||
video_frame(g_extern.frame_cache.data,
|
||||
g_extern.frame_cache.width,
|
||||
g_extern.frame_cache.height,
|
||||
g_extern.frame_cache.pitch);
|
||||
|
||||
#ifdef HAVE_FFMPEG
|
||||
g_extern.recording = recording;
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_GRIFFIN_OVERRIDE_AUDIO_FLUSH_FUNC
|
||||
static bool audio_flush(const int16_t *data, size_t samples)
|
||||
|
@ -68,6 +68,8 @@ const char *config_get_default_audio(void)
|
||||
return "ps3";
|
||||
case AUDIO_WII:
|
||||
return "wii";
|
||||
case AUDIO_NULL:
|
||||
return "null";
|
||||
default:
|
||||
return NULL;
|
||||
}
|
||||
@ -93,6 +95,8 @@ const char *config_get_default_video(void)
|
||||
return "ext";
|
||||
case VIDEO_RPI:
|
||||
return "rpi";
|
||||
case VIDEO_NULL:
|
||||
return "null";
|
||||
default:
|
||||
return NULL;
|
||||
}
|
||||
@ -116,6 +120,8 @@ const char *config_get_default_input(void)
|
||||
return "wii";
|
||||
case INPUT_LINUXRAW:
|
||||
return "linuxraw";
|
||||
case INPUT_NULL:
|
||||
return "null";
|
||||
default:
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user