(Griffin/MSVC) buildfixes

This commit is contained in:
twinaphex 2018-03-29 15:15:47 +02:00
parent 2bdfd2e1d0
commit 1b0420807b
4 changed files with 12 additions and 9 deletions

View File

@ -283,11 +283,11 @@ bool core_get_memory(retro_ctx_memory_info_t *info)
bool core_load_game(retro_ctx_load_content_info_t *load_info) bool core_load_game(retro_ctx_load_content_info_t *load_info)
{ {
set_load_content_info(load_info);
bool contentless = false; bool contentless = false;
bool is_inited = false; bool is_inited = false;
set_load_content_info(load_info);
content_get_status(&contentless, &is_inited); content_get_status(&contentless, &is_inited);
if (load_info && load_info->special) if (load_info && load_info->special)

View File

@ -18,7 +18,7 @@
bool unlink_utf8(const char * filename) bool unlink_utf8(const char * filename)
{ {
#if defined(LEGACY_WIN32) #if defined(LEGACY_WIN32)
bool result = DeleteFileA(filename_w); bool result = DeleteFileA(filename);
#else #else
wchar_t * filename_w = utf8_to_utf16_string_alloc(filename); wchar_t * filename_w = utf8_to_utf16_string_alloc(filename);
bool result = DeleteFileW(filename_w); bool result = DeleteFileW(filename_w);

View File

@ -1,15 +1,18 @@
#include "core.h"
#include "dynamic.h"
#include "audio/audio_driver.h"
#include "gfx/video_driver.h"
#include "boolean.h"
#include <stddef.h> #include <stddef.h>
#include <malloc.h> #include <malloc.h>
#include <string.h> #include <string.h>
#include <boolean.h>
#include "dirty_input.h" #include "dirty_input.h"
#include "mylist.h" #include "mylist.h"
#include "secondary_core.h" #include "secondary_core.h"
#include "../core.h"
#include "../dynamic.h"
#include "../audio/audio_driver.h"
#include "../gfx/video_driver.h"
static void *runahead_save_state_alloc(void); static void *runahead_save_state_alloc(void);
static void runahead_save_state_free(void *state); static void runahead_save_state_free(void *state);
static void runahead_save_state_list_init(size_t saveStateSize); static void runahead_save_state_list_init(size_t saveStateSize);

View File

@ -15,12 +15,12 @@
#include <compat/fopen_utf8.h> #include <compat/fopen_utf8.h>
#include <compat/unlink_utf8.h> #include <compat/unlink_utf8.h>
#include <dynamic/dylib.h> #include <dynamic/dylib.h>
#include <dynamic.h>
#include <file/file_path.h> #include <file/file_path.h>
#include "mem_util.h" #include "mem_util.h"
#include "../core.h" #include "../core.h"
#include "../dynamic.h"
#include "../paths.h" #include "../paths.h"
#include "../content.h" #include "../content.h"