Move retroarch_logger.h to libretro-common/include

This commit is contained in:
twinaphex 2015-06-30 00:38:10 +02:00
parent e5d8773464
commit 96c119bb1d
15 changed files with 105 additions and 85 deletions

View File

@ -14,29 +14,9 @@
* If not, see <http://www.gnu.org/licenses/>.
*/
#include "dynamic.h"
#include <compat/strl.h>
#include <compat/posix_string.h>
#include "retroarch_logger.h"
#include "performance.h"
#include <file/file_path.h>
#include <string.h>
#include <ctype.h>
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <boolean.h>
#include "libretro_private.h"
#include "cores/internal_cores.h"
#include "retroarch.h"
#include "runloop.h"
#include "configuration.h"
#include "general.h"
#include "input/input_sensor.h"
#ifdef NEED_DYNAMIC
#ifdef _WIN32
#include <windows.h>
@ -45,6 +25,28 @@
#endif
#endif
#include <boolean.h>
#include <file/file_path.h>
#include <retro_log.h>
#include <compat/strl.h>
#include <compat/posix_string.h>
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "dynamic.h"
#include "performance.h"
#include "libretro_private.h"
#include "cores/internal_cores.h"
#include "retroarch.h"
#include "runloop.h"
#include "configuration.h"
#include "general.h"
#include "input/input_sensor.h"
#ifdef HAVE_DYNAMIC
#undef SYM
#define SYM(x) do { \

View File

@ -357,7 +357,7 @@ static void frontend_ps3_exitspawn(char *core_path, size_t core_path_size)
#include <np.h>
#include <np/drm.h>
#include "../../retroarch_logger.h"
#include <retro_log.h>
static void frontend_ps3_exec(const char *path, bool should_load_game)
{

View File

@ -22,12 +22,14 @@
#include <gctypes.h>
#include <ogc/cache.h>
#include "../../gfx/drivers/ppc_asm.h"
#include <file/file_path.h>
#include <retro_miscellaneous.h>
#include <ogc/system.h>
#include <ogc/usbstorage.h>
#include <sdcard/wiisd_io.h>
#include <retro_log.h>
#include <file/file_path.h>
#include <retro_miscellaneous.h>
#define EXECUTE_ADDR ((uint8_t *) 0x91800000)
#define BOOTER_ADDR ((uint8_t *) 0x93000000)
#define ARGS_ADDR ((uint8_t *) 0x93200000)
@ -37,8 +39,6 @@ extern uint8_t _binary_wii_app_booter_app_booter_bin_end[];
#define booter_start _binary_wii_app_booter_app_booter_bin_start
#define booter_end _binary_wii_app_booter_app_booter_bin_end
#include "../../retroarch_logger.h"
#ifdef IS_SALAMANDER
char gx_rom_path[PATH_MAX_LENGTH];
#endif

View File

@ -13,10 +13,12 @@
* If not, see <http://www.gnu.org/licenses/>.
*/
#include "video_shader_driver.h"
#include "../retroarch_logger.h"
#include <string.h>
#include <retro_log.h>
#include "video_shader_driver.h"
static const shader_backend_t *shader_ctx_drivers[] = {
#ifdef HAVE_GLSL
&gl_glsl_backend,

View File

@ -34,12 +34,13 @@
#include <windowsx.h>
#include <retro_log.h>
#include "../../general.h"
#include "../input_autodetect.h"
#include "../input_common.h"
#include "../input_joypad.h"
#include "../input_keymaps.h"
#include "../../retroarch_logger.h"
/* Keep track of which pad indexes are 360 controllers.
* Not static, will be read in xinput_joypad.c

View File

@ -16,18 +16,20 @@
#include <dinput.h>
#include "../../general.h"
#include <boolean.h>
#include "../input_autodetect.h"
#include "../input_common.h"
#include "../input_joypad.h"
#include "../input_keymaps.h"
#include "../../retroarch_logger.h"
#include <stdlib.h>
#include <stddef.h>
#include <string.h>
#include <windowsx.h>
#include <retro_log.h>
#include <boolean.h>
#include "../../general.h"
#include "../input_autodetect.h"
#include "../input_common.h"
#include "../input_joypad.h"
#include "../input_keymaps.h"
struct dinput_joypad
{
LPDIRECTINPUTDEVICE8 joypad;

View File

@ -42,11 +42,15 @@
#include <compat/strl.h>
#if defined(HAVE_FILE_LOGGER) && defined(RARCH_INTERNAL) && !defined(IS_JOYCONFIG)
#ifdef __cplusplus
extern "C"
#endif
FILE *rarch_main_log_file(void);
#define LOG_FILE (rarch_main_log_file())
#else
#define LOG_FILE (stderr)
#endif

View File

@ -45,10 +45,7 @@
#endif
#include <compat/msvc.h>
#if defined(RARCH_INTERNAL) || defined(IS_SALAMANDER)
/* TODO/FIXME - dirty hack */
#include "../../retroarch_logger.h"
#endif
#include <retro_log.h>
#include <retro_inline.h>
#include <retro_endianness.h>
#include <limits.h>

View File

@ -15,16 +15,19 @@
* If not, see <http://www.gnu.org/licenses/>.
*/
#include <boolean.h>
#include "libretro.h"
#include "dynamic.h"
#include "libretro_version_1.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <retro_inline.h>
#include <ctype.h>
#include <errno.h>
#include <retro_inline.h>
#include <retro_log.h>
#include <boolean.h>
#include "libretro_version_1.h"
#include "libretro.h"
#include "dynamic.h"
#include "general.h"
#include "runloop.h"
#include "runloop_data.h"
@ -34,7 +37,6 @@
#include "input/input_remapping.h"
#include "audio/audio_driver.h"
#include "audio/audio_utils.h"
#include "retroarch_logger.h"
#include "record/record_driver.h"
#include "gfx/video_pixel_converter.h"
#include "intl/intl.h"

View File

@ -21,6 +21,7 @@
#include <string.h>
#include <limits.h>
#include <retro_log.h>
#include <compat/posix_string.h>
#include <file/file_path.h>
@ -33,7 +34,6 @@
#include "../../gfx/video_thread_wrapper.h"
#include "../../gfx/font_driver.h"
#include "../../gfx/video_texture.h"
#include "../../retroarch_logger.h"
#include "shared.h"

13
patch.c
View File

@ -17,16 +17,19 @@
/* BPS/UPS/IPS implementation from bSNES (nall::).
* Modified for RetroArch. */
#include <file/file_path.h>
#include <boolean.h>
#include <compat/msvc.h>
#include <stdint.h>
#include <string.h>
#include <boolean.h>
#include <retro_log.h>
#include <compat/msvc.h>
#include <file/file_path.h>
#include <file/file_extract.h>
#include "patch.h"
#include "file_ops.h"
#include <file/file_extract.h>
#include "general.h"
#include "retroarch_logger.h"
enum bps_mode
{

View File

@ -28,34 +28,37 @@
#ifndef CPU_FEATURES_H
#define CPU_FEATURES_H
#include <sys/cdefs.h>
#include <stdint.h>
#include "../retroarch_logger.h"
#include <sys/cdefs.h>
typedef enum {
ANDROID_CPU_FAMILY_UNKNOWN = 0,
ANDROID_CPU_FAMILY_ARM,
ANDROID_CPU_FAMILY_X86,
ANDROID_CPU_FAMILY_MIPS,
#include <retro_log.h>
ANDROID_CPU_FAMILY_MAX /* do not remove */
typedef enum
{
ANDROID_CPU_FAMILY_UNKNOWN = 0,
ANDROID_CPU_FAMILY_ARM,
ANDROID_CPU_FAMILY_X86,
ANDROID_CPU_FAMILY_MIPS,
ANDROID_CPU_FAMILY_MAX /* do not remove */
} AndroidCpuFamily;
/* Return family of the device's CPU */
extern AndroidCpuFamily android_getCpuFamily(void);
enum {
ANDROID_CPU_ARM_FEATURE_ARMv7 = (1 << 0),
ANDROID_CPU_ARM_FEATURE_VFPv3 = (1 << 1),
ANDROID_CPU_ARM_FEATURE_NEON = (1 << 2),
ANDROID_CPU_ARM_FEATURE_LDREX_STREX = (1 << 3),
enum
{
ANDROID_CPU_ARM_FEATURE_ARMv7 = (1 << 0),
ANDROID_CPU_ARM_FEATURE_VFPv3 = (1 << 1),
ANDROID_CPU_ARM_FEATURE_NEON = (1 << 2),
ANDROID_CPU_ARM_FEATURE_LDREX_STREX = (1 << 3)
};
enum {
ANDROID_CPU_X86_FEATURE_SSSE3 = (1 << 0),
ANDROID_CPU_X86_FEATURE_POPCNT = (1 << 1),
ANDROID_CPU_X86_FEATURE_MOVBE = (1 << 2),
enum
{
ANDROID_CPU_X86_FEATURE_SSSE3 = (1 << 0),
ANDROID_CPU_X86_FEATURE_POPCNT = (1 << 1),
ANDROID_CPU_X86_FEATURE_MOVBE = (1 << 2)
};
extern uint64_t android_getCpuFeatures(void);

View File

@ -15,15 +15,16 @@
* If not, see <http://www.gnu.org/licenses/>.
*/
#include "playlist.h"
#include <compat/posix_string.h>
#include <boolean.h>
#include "retroarch_logger.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <boolean.h>
#include <compat/posix_string.h>
#include <retro_log.h>
#include "playlist.h"
/**
* content_playlist_get_index:
* @playlist : Playlist handle.

View File

@ -18,6 +18,7 @@
#include <file/file_path.h>
#include <retro_inline.h>
#include <retro_log.h>
#include <compat/strl.h>
#include <rhash.h>
@ -25,7 +26,6 @@
#include "configuration.h"
#include "dynamic.h"
#include "performance.h"
#include "retroarch_logger.h"
#include "intl/intl.h"
#include "retroarch.h"
#include "runloop.h"

View File

@ -14,20 +14,31 @@
* If not, see <http://www.gnu.org/licenses/>.
*/
#include <compat/strl.h>
#ifdef _XBOX1
#include <xtl.h>
#include <xgraphics.h>
#endif
#include <stdio.h>
#include <stddef.h>
#include <time.h>
#include <boolean.h>
#include <stdint.h>
#include <string.h>
#include <retro_log.h>
#include <file/file_path.h>
#include <compat/strl.h>
#if defined(HAVE_ZLIB_DEFLATE) && defined(HAVE_RPNG)
#include <formats/rpng.h>
#endif
#include "general.h"
#include "intl/intl.h"
#include <file/file_path.h>
#include "gfx/scaler/scaler.h"
#include "retroarch.h"
#include "runloop.h"
#include "retroarch_logger.h"
#include "screenshot.h"
#include "gfx/video_driver.h"
#include "gfx/video_viewport.h"
@ -36,17 +47,9 @@
#include "config.h"
#endif
#ifdef _XBOX1
#include <xtl.h>
#include <xgraphics.h>
#endif
#if defined(HAVE_ZLIB_DEFLATE) && defined(HAVE_RPNG)
#include <formats/rpng.h>
#define IMG_EXT "png"
#else
#define IMG_EXT "bmp"
static bool write_header_bmp(FILE *file, unsigned width, unsigned height)