From 23f9cf86182ae91206e5bdf2da0413e725799b26 Mon Sep 17 00:00:00 2001 From: TwinAphex51224 Date: Thu, 29 Mar 2012 15:30:27 +0200 Subject: [PATCH] (360) Have 360 use HAVE_GRIFFIN_OVERRIDE_VIDEO_FRAME_FUNC too --- 360/file_browser.h | 6 +++++- 360/menu.cpp | 2 ++ 360/xdk360_audio.cpp | 8 +++++++- console/griffin/func_hooks.h | 5 ++--- console/griffin/ssnes_func_hooks.h | 1 - msvc-360/SSNES-360/SSNES-360.vcxproj | 1 - msvc-360/SSNES-360/SSNES-360.vcxproj.filters | 6 ------ 7 files changed, 16 insertions(+), 13 deletions(-) diff --git a/360/file_browser.h b/360/file_browser.h index 6d3afcd6d2..67ba6160b0 100644 --- a/360/file_browser.h +++ b/360/file_browser.h @@ -15,6 +15,8 @@ * You should have received a copy of the GNU General Public License along with SSNES. * If not, see . */ +#ifndef FILEBROWSER_H_ +#define FILEBROWSER_H_ #include @@ -40,4 +42,6 @@ void filebrowser_new(filebrowser_t * filebrowser, const char * start_dir, const void filebrowser_parse_directory(filebrowser_t * filebrowser, const char * path, const char *extensions); void filebrowser_push_directory(filebrowser_t * filebrowser, const char * path, bool with_extension); -#define FILEBROWSER_GET_CURRENT_DIRECTORY_NAME(filebrowser) (filebrowser.dir[filebrowser.directory_stack_size]) \ No newline at end of file +#define FILEBROWSER_GET_CURRENT_DIRECTORY_NAME(filebrowser) (filebrowser.dir[filebrowser.directory_stack_size]) + +#endif \ No newline at end of file diff --git a/360/menu.cpp b/360/menu.cpp index 54e44e3fa0..7e1d868b19 100644 --- a/360/menu.cpp +++ b/360/menu.cpp @@ -524,7 +524,9 @@ void menu_loop(void) { g_frame_count++; if(g_console.emulator_initialized) + { ssnes_render_cached_frame(); + } else D3DDevice_Clear(vid->xdk360_render_device, 0, NULL, D3DCLEAR_TARGET, D3DCOLOR_ARGB(255, 32, 32, 64), 1.0, 0, FALSE); diff --git a/360/xdk360_audio.cpp b/360/xdk360_audio.cpp index 5bb939afae..a3bd1922fe 100644 --- a/360/xdk360_audio.cpp +++ b/360/xdk360_audio.cpp @@ -210,6 +210,12 @@ static void xa_free(void *data) delete xa; } +static bool xa_use_float(void *data) +{ + (void)data; + return false; +} + const audio_driver_t audio_xdk360 = { xa_init, xa_write, @@ -217,6 +223,6 @@ const audio_driver_t audio_xdk360 = { xa_start, xa_set_nonblock_state, xa_free, - NULL, + xa_use_float, "xdk360" }; diff --git a/console/griffin/func_hooks.h b/console/griffin/func_hooks.h index bae2d79abb..f3d8c7edea 100644 --- a/console/griffin/func_hooks.h +++ b/console/griffin/func_hooks.h @@ -19,13 +19,12 @@ #define _FUNC_HOOKS_H /*============================================================ - PLAYSTATION3 + GENERAL ============================================================ */ +#define HAVE_GRIFFIN_OVERRIDE_VIDEO_FRAME_FUNC 1 -#ifdef __CELLOS_LV2__ #define ssnes_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, lines_to_pitch(g_extern.frame_cache.height), msg); -#endif #endif diff --git a/console/griffin/ssnes_func_hooks.h b/console/griffin/ssnes_func_hooks.h index ac3ab0a886..267f938395 100644 --- a/console/griffin/ssnes_func_hooks.h +++ b/console/griffin/ssnes_func_hooks.h @@ -26,7 +26,6 @@ #ifdef __CELLOS_LV2__ #define HAVE_GRIFFIN_OVERRIDE_AUDIO_FLUSH_FUNC 1 -#define HAVE_GRIFFIN_OVERRIDE_VIDEO_FRAME_FUNC 1 static bool audio_flush(const int16_t *data, size_t samples) { diff --git a/msvc-360/SSNES-360/SSNES-360.vcxproj b/msvc-360/SSNES-360/SSNES-360.vcxproj index aeefe0065c..13d043c143 100644 --- a/msvc-360/SSNES-360/SSNES-360.vcxproj +++ b/msvc-360/SSNES-360/SSNES-360.vcxproj @@ -347,7 +347,6 @@ - CompileAsC diff --git a/msvc-360/SSNES-360/SSNES-360.vcxproj.filters b/msvc-360/SSNES-360/SSNES-360.vcxproj.filters index 689d77ea20..b78779d282 100644 --- a/msvc-360/SSNES-360/SSNES-360.vcxproj.filters +++ b/msvc-360/SSNES-360/SSNES-360.vcxproj.filters @@ -15,9 +15,6 @@ {4FC737F1-C7A5-4376-A066-2A32D752A2FF} cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx - - {b9371e8d-2e72-4ced-8bf6-6ee6a77a1f78} - {755ce6db-d242-40fb-9c8b-c14154fc94e1} @@ -41,9 +38,6 @@ - - Source Files\360 - Source Files\console\szlib