mirror of
https://github.com/Pecusx/libretro-atari800.git
synced 2026-05-21 21:33:56 +02:00
Try to make it more compatible with PS3
This commit is contained in:
@@ -4,9 +4,6 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#if HAVE_STRINGS_H
|
|
||||||
#include <strings.h>
|
|
||||||
#endif
|
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#ifdef HAVE_WINDOWS_H
|
#ifdef HAVE_WINDOWS_H
|
||||||
|
|||||||
+21
-18
@@ -398,6 +398,10 @@ void retro_audio_cb( short l, short r)
|
|||||||
audio_cb(l,r);
|
audio_cb(l,r);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Forward declarations */
|
||||||
|
void retro_sound_update(void);
|
||||||
|
void Retro_PollEvent(void);
|
||||||
|
|
||||||
void retro_run(void)
|
void retro_run(void)
|
||||||
{
|
{
|
||||||
int x;
|
int x;
|
||||||
@@ -407,35 +411,34 @@ void retro_run(void)
|
|||||||
if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE_UPDATE, &updated) && updated)
|
if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE_UPDATE, &updated) && updated)
|
||||||
update_variables();
|
update_variables();
|
||||||
|
|
||||||
if(pauseg==0){
|
if(pauseg==0){
|
||||||
|
|
||||||
if (ToggleTV == 1)
|
if (ToggleTV == 1)
|
||||||
{
|
{
|
||||||
struct retro_system_av_info ninfo;
|
struct retro_system_av_info ninfo;
|
||||||
|
|
||||||
retro_fps=CURRENT_TV==312?49.8607597:59.9227434;
|
retro_fps=CURRENT_TV==312?49.8607597:59.9227434;
|
||||||
|
|
||||||
retro_get_system_av_info(&ninfo);
|
retro_get_system_av_info(&ninfo);
|
||||||
|
|
||||||
environ_cb(RETRO_ENVIRONMENT_SET_SYSTEM_AV_INFO, &ninfo);
|
environ_cb(RETRO_ENVIRONMENT_SET_SYSTEM_AV_INFO, &ninfo);
|
||||||
|
|
||||||
if (log_cb)
|
if (log_cb)
|
||||||
log_cb(RETRO_LOG_INFO, "ChangeAV: w:%d h:%d ra:%f.\n",
|
log_cb(RETRO_LOG_INFO, "ChangeAV: w:%d h:%d ra:%f.\n",
|
||||||
ninfo.geometry.base_width, ninfo.geometry.base_height, ninfo.geometry.aspect_ratio);
|
ninfo.geometry.base_width, ninfo.geometry.base_height, ninfo.geometry.aspect_ratio);
|
||||||
|
|
||||||
ToggleTV=0;
|
ToggleTV=0;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(retro_sound_finalized)
|
||||||
|
retro_sound_update();
|
||||||
|
|
||||||
|
Retro_PollEvent();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if(retro_sound_finalized)retro_sound_update();
|
|
||||||
|
|
||||||
Retro_PollEvent();
|
|
||||||
}
|
|
||||||
|
|
||||||
video_cb(Retro_Screen,retrow,retroh,retrow<<PIXEL_BYTES);
|
video_cb(Retro_Screen,retrow,retroh,retrow<<PIXEL_BYTES);
|
||||||
|
|
||||||
co_switch(emuThread);
|
co_switch(emuThread);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned int lastdown,lastup,lastchar;
|
unsigned int lastdown,lastup,lastchar;
|
||||||
|
|||||||
Reference in New Issue
Block a user