Commit 0aba4aea authored by David Skywalker's avatar David Skywalker
Browse files

vita: minor suggestions applied after testers send feedback. tests ok!

parent 3f8eaee3
......@@ -71,7 +71,6 @@ extern void play_tape();
extern void retro_joy0(unsigned char joy0);
extern void retro_key_down(int key);
extern void retro_key_up(int key);
extern void Screen_SetFullUpdate(int scr);
//VIDEO
PIXEL_TYPE video_buffer[WINDOW_MAX_SIZE];
......@@ -1270,7 +1269,10 @@ void retro_run(void)
bool updated = false;
if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE_UPDATE, &updated) && updated)
{
update_variables();
retro_message("options updated, changes applied!");
}
retro_loop();
......@@ -1366,20 +1368,3 @@ void retro_cheat_set(unsigned index, bool enabled, const char *code)
(void)enabled;
(void)code;
}
// unused funcs
void save_bkg()
{
memcpy(save_Screen,video_buffer,gfx_buffer_size);
}
void restore_bgk()
{
memcpy(video_buffer,save_Screen,gfx_buffer_size);
}
void Screen_SetFullUpdate(int scr)
{
if(scr==0 ||scr>1)
memset(&video_buffer, 0, gfx_buffer_size);
if(scr>0)
memset(&bmp,0, gfx_buffer_size);
}
......@@ -28,26 +28,11 @@ extern unsigned amstrad_devices[ PORTS_NUMBER ];
#define TEX_MAX_WIDTH CPC_SCREEN_WIDTH * 2
#define TEX_MAX_HEIGHT CPC_SCREEN_HEIGHT
#define LOWRES 1
//AUDIO
#define FRAME_PERIOD_MS 20.0 // check cap32.h
#define AUDIO_BYTES 2
#define AUDIO_CHANNELS 2
#define AUDIO_SAMPLE_SIZE 44100
#define AUDIO_BUFSIZE (AUDIO_SAMPLE_SIZE * FRAME_PERIOD_MS / 1000)
//LOG
#if defined(__ANDROID__) || defined(ANDROID)
#include <android/log.h>
#define LOG_TAG "RetroArch.Frodo"
#define LOGI(...) __android_log_print(ANDROID_LOG_INFO,LOG_TAG,__VA_ARGS__)
#else
#define LOGI printf
#endif
//SCREEN 16BITS
//#define M16B
// compile flags
#define NO_FLOPPY_SND
#define LOWRES
#define M16B // SCREEN 16BITS
#ifdef M16B
#define PIXEL_RAW_DENSITY 2
......@@ -94,6 +79,21 @@ extern unsigned amstrad_devices[ PORTS_NUMBER ];
#define CURSOR_MOVEMENT_Y 2
#endif
//AUDIO
#define FRAME_PERIOD_MS 20.0 // check cap32.h
#define AUDIO_BYTES 2
#define AUDIO_CHANNELS 2
#define AUDIO_SAMPLE_SIZE 44100
#define AUDIO_BUFSIZE (AUDIO_SAMPLE_SIZE * FRAME_PERIOD_MS / 1000)
//LOG
#if defined(__ANDROID__) || defined(ANDROID)
#include <android/log.h>
#define LOG_TAG "RetroArch.Frodo"
#define LOGI(...) __android_log_print(ANDROID_LOG_INFO,LOG_TAG,__VA_ARGS__)
#else
#define LOGI printf
#endif
// BIT OPERATIONS - MACROS
#define BIT_SET(var, bit) var = 1 << bit
......
......@@ -45,7 +45,6 @@ extern bool kbd_runcmd;
extern void kbd_buf_feed(char *s);
extern bool kbd_buf_update();
extern void save_bkg();
extern void play_tape();
extern void stop_tape(void);
extern void Tape_Rewind(void);
......@@ -230,7 +229,9 @@ static unsigned do_action(const retro_action_t* action)
{
switch(action->type) {
case EVENT_WRITE:
// TODO: generate an internal command for this behaivor
kbd_buf_feed((char*) action->kbd_buf);
ev_set(EV_AUTO);
break;
case EVENT_VKEYB:
ev_toggle_call();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment