aboutsummaryrefslogtreecommitdiff
path: root/frontend/libretro.c
diff options
context:
space:
mode:
authorTobias Jakobi2014-08-06 19:51:29 +0200
committernotaz2014-12-20 02:57:24 +0200
commit32ab9e53f99b5b37b1262807393382baed8d8bba (patch)
tree807ffde86c5d87f783a529455ff235ef1cd15b95 /frontend/libretro.c
parentaf9db9c89737cb8c4269118c7f0f065b7b68cf8c (diff)
downloadpcsx_rearmed-32ab9e53f99b5b37b1262807393382baed8d8bba.tar.gz
pcsx_rearmed-32ab9e53f99b5b37b1262807393382baed8d8bba.tar.bz2
pcsx_rearmed-32ab9e53f99b5b37b1262807393382baed8d8bba.zip
libretro: adjust indentation style
The indentation style should be at least consistent inside a single function.
Diffstat (limited to 'frontend/libretro.c')
-rw-r--r--frontend/libretro.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/frontend/libretro.c b/frontend/libretro.c
index aea17e8..09e833b 100644
--- a/frontend/libretro.c
+++ b/frontend/libretro.c
@@ -870,17 +870,17 @@ static void update_variables(bool in_flight)
}
#endif
- if (in_flight) {
- // inform core things about possible config changes
- plugin_call_rearmed_cbs();
+ if (in_flight) {
+ // inform core things about possible config changes
+ plugin_call_rearmed_cbs();
- if (GPU_open != NULL && GPU_close != NULL) {
- GPU_close();
- GPU_open(&gpuDisp, "PCSX", NULL);
- }
+ if (GPU_open != NULL && GPU_close != NULL) {
+ GPU_close();
+ GPU_open(&gpuDisp, "PCSX", NULL);
+ }
- dfinput_activate();
- }
+ dfinput_activate();
+ }
}
void retro_run(void)
@@ -902,13 +902,13 @@ void retro_run(void)
if (input_state_cb(0, RETRO_DEVICE_JOYPAD, 0, i))
in_keystate |= retro_psx_map[i];
- if (in_type1 == PSE_PAD_TYPE_ANALOGPAD)
- {
- in_a1[0] = (input_state_cb(0, RETRO_DEVICE_ANALOG, RETRO_DEVICE_INDEX_ANALOG_LEFT, RETRO_DEVICE_ID_ANALOG_X) / 256) + 128;
- in_a1[1] = (input_state_cb(0, RETRO_DEVICE_ANALOG, RETRO_DEVICE_INDEX_ANALOG_LEFT, RETRO_DEVICE_ID_ANALOG_Y) / 256) + 128;
- in_a2[0] = (input_state_cb(0, RETRO_DEVICE_ANALOG, RETRO_DEVICE_INDEX_ANALOG_RIGHT, RETRO_DEVICE_ID_ANALOG_X) / 256) + 128;
- in_a2[1] = (input_state_cb(0, RETRO_DEVICE_ANALOG, RETRO_DEVICE_INDEX_ANALOG_RIGHT, RETRO_DEVICE_ID_ANALOG_Y) / 256) + 128;
- }
+ if (in_type1 == PSE_PAD_TYPE_ANALOGPAD)
+ {
+ in_a1[0] = (input_state_cb(0, RETRO_DEVICE_ANALOG, RETRO_DEVICE_INDEX_ANALOG_LEFT, RETRO_DEVICE_ID_ANALOG_X) / 256) + 128;
+ in_a1[1] = (input_state_cb(0, RETRO_DEVICE_ANALOG, RETRO_DEVICE_INDEX_ANALOG_LEFT, RETRO_DEVICE_ID_ANALOG_Y) / 256) + 128;
+ in_a2[0] = (input_state_cb(0, RETRO_DEVICE_ANALOG, RETRO_DEVICE_INDEX_ANALOG_RIGHT, RETRO_DEVICE_ID_ANALOG_X) / 256) + 128;
+ in_a2[1] = (input_state_cb(0, RETRO_DEVICE_ANALOG, RETRO_DEVICE_INDEX_ANALOG_RIGHT, RETRO_DEVICE_ID_ANALOG_Y) / 256) + 128;
+ }
stop = 0;
psxCpu->Execute();
@@ -1055,7 +1055,7 @@ void retro_init(void)
SaveFuncs.close = save_close;
update_variables(false);
- check_system_specs();
+ check_system_specs();
}
void retro_deinit(void)