2012-05-28 23:27:45 +00:00
/* RetroArch - A frontend for libretro.
* Copyright ( C ) 2010 - 2012 - Hans - Kristian Arntzen
* Copyright ( C ) 2011 - 2012 - Daniel De Matteis
*
* RetroArch is free software : you can redistribute it and / or modify it under the terms
* of the GNU General Public License as published by the Free Software Found -
* ation , either version 3 of the License , or ( at your option ) any later version .
*
* RetroArch is distributed in the hope that it will be useful , but WITHOUT ANY WARRANTY ;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE . See the GNU General Public License for more details .
*
* You should have received a copy of the GNU General Public License along with RetroArch .
* If not , see < http : //www.gnu.org/licenses/>.
*/
# include <stdio.h>
# include <stdlib.h>
# include <stddef.h>
# include <string.h>
# include "../general.h"
2012-07-28 13:54:35 +00:00
# include "rarch_console_settings.h"
2012-05-28 23:27:45 +00:00
void rarch_settings_change ( unsigned setting )
{
switch ( setting )
{
2012-05-29 16:03:58 +00:00
case S_ASPECT_RATIO_DECREMENT :
2012-10-15 04:24:39 +00:00
if ( g_settings . video . aspect_ratio_idx > 0 )
g_settings . video . aspect_ratio_idx - - ;
2012-05-29 16:03:58 +00:00
break ;
2012-06-05 16:11:42 +00:00
case S_ASPECT_RATIO_INCREMENT :
2012-10-15 04:24:39 +00:00
if ( g_settings . video . aspect_ratio_idx < LAST_ASPECT_RATIO )
g_settings . video . aspect_ratio_idx + + ;
2012-05-29 16:03:58 +00:00
break ;
2012-07-16 23:06:13 +00:00
case S_AUDIO_MUTE :
2012-07-19 00:38:09 +00:00
g_extern . audio_data . mute = ! g_extern . audio_data . mute ;
break ;
case S_AUDIO_CONTROL_RATE_DECREMENT :
if ( g_settings . audio . rate_control_delta > 0.0 )
g_settings . audio . rate_control_delta - = 0.001 ;
if ( g_settings . audio . rate_control_delta = = 0.0 )
g_settings . audio . rate_control = false ;
else
g_settings . audio . rate_control = true ;
break ;
case S_AUDIO_CONTROL_RATE_INCREMENT :
if ( g_settings . audio . rate_control_delta < 0.2 )
g_settings . audio . rate_control_delta + = 0.001 ;
g_settings . audio . rate_control = true ;
2012-07-16 23:06:13 +00:00
break ;
2012-05-29 00:05:23 +00:00
case S_FRAME_ADVANCE :
2012-10-15 04:24:39 +00:00
g_extern . console . screen . state . frame_advance . enable = true ;
g_extern . console . rmenu . state . rmenu . enable = false ;
g_extern . console . rmenu . mode = MODE_EMULATION ;
2012-05-29 00:05:23 +00:00
break ;
2012-05-28 23:37:09 +00:00
case S_HW_TEXTURE_FILTER :
g_settings . video . smooth = ! g_settings . video . smooth ;
break ;
case S_HW_TEXTURE_FILTER_2 :
2012-05-29 00:05:23 +00:00
g_settings . video . second_pass_smooth = ! g_settings . video . second_pass_smooth ;
2012-05-28 23:37:09 +00:00
break ;
2012-05-28 23:27:45 +00:00
case S_OVERSCAN_DECREMENT :
2012-10-15 04:24:39 +00:00
g_extern . console . screen . overscan_amount - = 0.01f ;
g_extern . console . screen . state . overscan . enable = true ;
if ( g_extern . console . screen . overscan_amount = = 0.0f )
g_extern . console . screen . state . overscan . enable = false ;
2012-05-28 23:27:45 +00:00
break ;
case S_OVERSCAN_INCREMENT :
2012-10-15 04:24:39 +00:00
g_extern . console . screen . overscan_amount + = 0.01f ;
g_extern . console . screen . state . overscan . enable = true ;
if ( g_extern . console . screen . overscan_amount = = 0.0f )
g_extern . console . screen . state . overscan . enable = 0 ;
2012-05-29 00:17:35 +00:00
break ;
2012-06-05 16:11:42 +00:00
case S_RESOLUTION_PREVIOUS :
2012-10-15 04:24:39 +00:00
if ( g_extern . console . screen . resolutions . current . idx )
2012-06-05 16:11:42 +00:00
{
2012-10-15 04:24:39 +00:00
g_extern . console . screen . resolutions . current . idx - - ;
g_extern . console . screen . resolutions . current . id = g_extern . console . screen . resolutions . list [ g_extern . console . screen . resolutions . current . idx ] ;
2012-06-05 16:11:42 +00:00
}
break ;
case S_RESOLUTION_NEXT :
2012-10-15 04:24:39 +00:00
if ( g_extern . console . screen . resolutions . current . idx + 1 < g_extern . console . screen . resolutions . count )
2012-07-19 00:38:09 +00:00
{
2012-10-15 04:24:39 +00:00
g_extern . console . screen . resolutions . current . idx + + ;
g_extern . console . screen . resolutions . current . id = g_extern . console . screen . resolutions . list [ g_extern . console . screen . resolutions . current . idx ] ;
2012-07-19 00:38:09 +00:00
}
2012-06-05 16:11:42 +00:00
break ;
2012-05-29 02:16:38 +00:00
case S_QUIT :
2012-10-15 04:24:39 +00:00
g_extern . console . rmenu . state . rmenu . enable = false ;
g_extern . console . rmenu . state . ingame_menu . enable = false ;
g_extern . console . rmenu . mode = MODE_EXIT ;
2012-05-29 02:16:38 +00:00
break ;
2012-08-22 19:27:21 +00:00
case S_QUIT_RARCH :
2012-10-15 04:24:39 +00:00
g_extern . console . rmenu . state . rmenu . enable = false ;
g_extern . console . initialize_rarch_enable = false ;
g_extern . console . rmenu . mode = MODE_EXIT ;
2012-05-28 23:27:45 +00:00
break ;
2012-05-29 00:32:34 +00:00
case S_RETURN_TO_GAME :
2012-10-15 04:24:39 +00:00
g_extern . console . screen . state . frame_advance . enable = false ;
g_extern . console . rmenu . state . rmenu . enable = false ;
g_extern . console . rmenu . mode = MODE_EMULATION ;
2012-05-29 00:05:23 +00:00
break ;
2012-05-29 00:48:13 +00:00
case S_RETURN_TO_LAUNCHER :
2012-10-15 04:24:39 +00:00
g_extern . console . external_launch . enable = true ;
g_extern . console . rmenu . state . rmenu . enable = false ;
g_extern . console . initialize_rarch_enable = false ;
g_extern . console . rmenu . mode = MODE_EXIT ;
2012-05-29 00:48:13 +00:00
break ;
2012-05-29 00:33:06 +00:00
case S_RETURN_TO_MENU :
2012-10-15 04:24:39 +00:00
g_extern . console . rmenu . state . rmenu . enable = false ;
g_extern . console . rmenu . ingame_menu . idx = 0 ;
g_extern . console . rmenu . mode = MODE_MENU ;
2012-05-29 00:33:06 +00:00
break ;
2012-05-29 20:22:47 +00:00
case S_ROTATION_DECREMENT :
2012-10-15 04:24:39 +00:00
if ( g_extern . console . screen . orientation > 0 )
g_extern . console . screen . orientation - - ;
2012-05-28 23:27:45 +00:00
break ;
2012-05-29 20:22:47 +00:00
case S_ROTATION_INCREMENT :
2012-10-15 04:24:39 +00:00
if ( g_extern . console . screen . orientation < LAST_ORIENTATION )
g_extern . console . screen . orientation + + ;
2012-05-28 23:27:45 +00:00
break ;
2012-05-29 20:22:47 +00:00
case S_START_RARCH :
2012-10-15 04:24:39 +00:00
g_extern . console . rmenu . state . rmenu . enable = false ;
g_extern . console . initialize_rarch_enable = 1 ;
g_extern . console . rmenu . mode = MODE_EMULATION ;
2012-05-29 20:22:47 +00:00
break ;
2012-05-29 19:29:32 +00:00
case S_REWIND :
g_settings . rewind_enable = ! g_settings . rewind_enable ;
break ;
2012-05-28 23:27:45 +00:00
case S_SAVESTATE_DECREMENT :
2012-05-29 00:05:23 +00:00
if ( g_extern . state_slot ! = 0 )
2012-05-28 23:27:45 +00:00
g_extern . state_slot - - ;
break ;
case S_SAVESTATE_INCREMENT :
2012-05-29 00:05:23 +00:00
g_extern . state_slot + + ;
2012-05-28 23:27:45 +00:00
break ;
case S_SCALE_ENABLED :
2012-10-15 04:24:39 +00:00
g_settings . video . fbo . enable = ! g_settings . video . fbo . enable ;
2012-05-28 23:27:45 +00:00
break ;
case S_SCALE_FACTOR_DECREMENT :
2012-10-15 04:24:39 +00:00
g_settings . video . fbo . scale_x - = 1.0f ;
g_settings . video . fbo . scale_y - = 1.0f ;
2012-05-28 23:27:45 +00:00
break ;
case S_SCALE_FACTOR_INCREMENT :
2012-10-15 04:24:39 +00:00
g_settings . video . fbo . scale_x + = 1.0f ;
g_settings . video . fbo . scale_y + = 1.0f ;
2012-05-28 23:27:45 +00:00
break ;
case S_THROTTLE :
2012-08-15 19:00:23 +00:00
if ( ! g_extern . system . force_nonblock )
2012-10-15 04:24:39 +00:00
g_extern . console . screen . state . throttle . enable =
! g_extern . console . screen . state . throttle . enable ;
2012-05-28 23:27:45 +00:00
break ;
case S_TRIPLE_BUFFERING :
2012-10-15 04:24:39 +00:00
g_extern . console . screen . state . triple_buffering . enable =
! g_extern . console . screen . state . triple_buffering . enable ;
2012-07-19 00:38:09 +00:00
break ;
2012-05-28 23:27:45 +00:00
}
}
void rarch_settings_default ( unsigned setting )
{
switch ( setting )
{
2012-05-29 16:03:58 +00:00
case S_DEF_ASPECT_RATIO :
2012-10-15 04:24:39 +00:00
g_settings . video . aspect_ratio_idx = ASPECT_RATIO_4_3 ;
2012-05-29 16:03:58 +00:00
break ;
2012-07-16 23:06:13 +00:00
case S_DEF_AUDIO_MUTE :
2012-07-19 00:38:09 +00:00
g_extern . audio_data . mute = false ;
break ;
case S_DEF_AUDIO_CONTROL_RATE :
# ifdef GEKKO
2012-07-28 12:51:09 +00:00
g_settings . audio . rate_control_delta = 0.006 ;
2012-07-19 00:38:09 +00:00
g_settings . audio . rate_control = true ;
# else
g_settings . audio . rate_control_delta = 0.0 ;
g_settings . audio . rate_control = false ;
# endif
2012-07-16 23:06:13 +00:00
break ;
2012-05-28 23:37:09 +00:00
case S_DEF_HW_TEXTURE_FILTER :
g_settings . video . smooth = 1 ;
break ;
case S_DEF_HW_TEXTURE_FILTER_2 :
2012-05-29 00:05:23 +00:00
g_settings . video . second_pass_smooth = 1 ;
2012-05-28 23:37:09 +00:00
break ;
2012-05-28 23:27:45 +00:00
case S_DEF_OVERSCAN :
2012-10-15 04:24:39 +00:00
g_extern . console . screen . overscan_amount = 0.0f ;
g_extern . console . screen . state . overscan . enable = false ;
2012-05-28 23:27:45 +00:00
break ;
2012-07-19 00:38:09 +00:00
case S_DEF_ROTATION :
2012-10-15 04:24:39 +00:00
g_extern . console . screen . orientation = ORIENTATION_NORMAL ;
2012-05-29 19:29:32 +00:00
break ;
2012-05-28 23:27:45 +00:00
case S_DEF_THROTTLE :
2012-08-15 19:00:23 +00:00
if ( ! g_extern . system . force_nonblock )
2012-10-15 04:24:39 +00:00
g_extern . console . screen . state . throttle . enable = true ;
2012-05-28 23:27:45 +00:00
break ;
case S_DEF_TRIPLE_BUFFERING :
2012-10-15 04:24:39 +00:00
g_extern . console . screen . state . triple_buffering . enable = true ;
2012-05-28 23:27:45 +00:00
break ;
case S_DEF_SAVE_STATE :
2012-05-29 00:05:23 +00:00
g_extern . state_slot = 0 ;
2012-05-28 23:27:45 +00:00
break ;
case S_DEF_SCALE_ENABLED :
2012-10-15 04:24:39 +00:00
g_settings . video . fbo . enable = true ;
g_settings . video . fbo . scale_x = 2.0f ;
g_settings . video . fbo . scale_y = 2.0f ;
2012-05-28 23:27:45 +00:00
break ;
case S_DEF_SCALE_FACTOR :
2012-10-15 04:24:39 +00:00
g_settings . video . fbo . scale_x = 2.0f ;
g_settings . video . fbo . scale_y = 2.0f ;
2012-05-28 23:27:45 +00:00
break ;
}
}
2012-05-29 14:45:37 +00:00
void rarch_settings_msg ( unsigned setting , unsigned delay )
{
2012-06-28 10:04:40 +00:00
char str [ PATH_MAX ] , tmp [ PATH_MAX ] ;
2012-05-29 14:45:37 +00:00
msg_queue_clear ( g_extern . msg_queue ) ;
2012-06-28 10:04:40 +00:00
( void ) tmp ;
2012-05-29 14:45:37 +00:00
switch ( setting )
{
case S_MSG_CACHE_PARTITION :
snprintf ( str , sizeof ( str ) , " INFO - All the contents of the ZIP files you have selected in the filebrowser \n are extracted to this partition. " ) ;
break ;
2012-05-29 16:03:58 +00:00
case S_MSG_CHANGE_CONTROLS :
2012-05-29 14:45:37 +00:00
snprintf ( str , sizeof ( str ) , " INFO - Press LEFT/RIGHT to change the controls, and press \n [RetroPad Start] to reset a button to default values. " ) ;
2012-05-29 16:03:58 +00:00
break ;
case S_MSG_EXTRACTED_ZIPFILE :
2012-10-15 04:24:39 +00:00
switch ( g_extern . file_state . zip_extract_mode )
2012-07-26 11:08:08 +00:00
{
case ZIP_EXTRACT_TO_CURRENT_DIR :
snprintf ( str , sizeof ( str ) , " INFO - ZIP file successfully extracted to current directory. " ) ;
break ;
2012-07-27 12:31:16 +00:00
case ZIP_EXTRACT_TO_CURRENT_DIR_AND_LOAD_FIRST_FILE :
snprintf ( str , sizeof ( str ) , " INFO - ZIP file successfully extracted, now loading first file. " ) ;
break ;
2012-07-26 11:08:08 +00:00
# ifdef HAVE_HDD_CACHE_PARTITION
case ZIP_EXTRACT_TO_CACHE_DIR :
2012-07-29 22:26:37 +00:00
snprintf ( str , sizeof ( str ) , " INFO - ZIP file successfully extracted to cache partition. " ) ;
2012-07-26 11:08:08 +00:00
break ;
# endif
}
2012-05-29 14:45:37 +00:00
break ;
2012-06-28 10:04:40 +00:00
case S_MSG_LOADING_ROM :
2012-10-15 04:24:39 +00:00
fill_pathname_base ( tmp , g_extern . file_state . rom_path , sizeof ( tmp ) ) ;
2012-06-29 01:13:45 +00:00
snprintf ( str , sizeof ( str ) , " INFO - Loading %s... " , tmp ) ;
2012-06-28 10:04:40 +00:00
break ;
2012-08-01 15:22:10 +00:00
case S_MSG_DIR_LOADING_ERROR :
snprintf ( str , sizeof ( str ) , " ERROR - Failed to open selected directory. " ) ;
break ;
2012-06-28 16:10:04 +00:00
case S_MSG_ROM_LOADING_ERROR :
snprintf ( str , sizeof ( str ) , " ERROR - An error occurred during ROM loading. " ) ;
break ;
2012-05-29 14:45:37 +00:00
case S_MSG_NOT_IMPLEMENTED :
snprintf ( str , sizeof ( str ) , " TODO - Not yet implemented. " ) ;
break ;
2012-07-19 00:38:09 +00:00
case S_MSG_RESIZE_SCREEN :
2012-05-29 14:45:37 +00:00
snprintf ( str , sizeof ( str ) , " INFO - Resize the screen by moving around the two analog sticks. \n Press [RetroPad X] to reset to default values, and [RetroPad A] to go back. \n To select the resized screen mode, set Aspect Ratio to: 'Custom'. " ) ;
break ;
2012-07-19 00:38:09 +00:00
case S_MSG_RESTART_RARCH :
2012-08-04 03:10:49 +00:00
snprintf ( str , sizeof ( str ) , " INFO - You need to restart RetroArch. " ) ;
2012-05-29 14:45:37 +00:00
break ;
2012-07-19 00:38:09 +00:00
case S_MSG_SELECT_LIBRETRO_CORE :
2012-08-04 03:10:49 +00:00
snprintf ( str , sizeof ( str ) , " INFO - Select a Libretro core from the menu. " ) ;
2012-05-29 14:45:37 +00:00
break ;
2012-07-19 00:38:09 +00:00
case S_MSG_SELECT_SHADER :
2012-08-04 03:10:49 +00:00
snprintf ( str , sizeof ( str ) , " INFO - Select a shader from the menu. " ) ;
2012-05-29 14:45:37 +00:00
break ;
2012-07-19 00:38:09 +00:00
case S_MSG_SHADER_LOADING_SUCCEEDED :
2012-05-29 14:45:37 +00:00
snprintf ( str , sizeof ( str ) , " INFO - Shader successfully loaded. " ) ;
break ;
}
msg_queue_push ( g_extern . msg_queue , str , 1 , delay ) ;
2012-05-29 17:51:35 +00:00
}
2012-06-23 20:55:46 +00:00
void rarch_settings_create_menu_item_label_w ( wchar_t * strwbuf , unsigned setting , size_t size )
2012-05-29 17:51:35 +00:00
{
char str [ PATH_MAX ] ;
2012-06-23 20:55:46 +00:00
rarch_settings_create_menu_item_label ( str , setting , sizeof ( str ) ) ;
2012-07-28 20:36:49 +00:00
convert_char_to_wchar ( strwbuf , str , size ) ;
2012-06-23 20:55:46 +00:00
}
void rarch_settings_create_menu_item_label ( char * str , unsigned setting , size_t size )
{
2012-05-29 17:51:35 +00:00
switch ( setting )
{
case S_LBL_ASPECT_RATIO :
2012-10-15 04:24:39 +00:00
snprintf ( str , size , " Aspect Ratio: %s " , aspectratio_lut [ g_settings . video . aspect_ratio_idx ] . name ) ;
2012-05-29 17:51:35 +00:00
break ;
2012-07-19 00:38:09 +00:00
case S_LBL_SHADER :
2012-06-24 20:54:43 +00:00
snprintf ( str , size , " Shader #1: %s " , g_settings . video . cg_shader_path ) ;
2012-05-29 18:34:06 +00:00
break ;
2012-07-19 00:38:09 +00:00
case S_LBL_SHADER_2 :
2012-06-24 20:54:43 +00:00
snprintf ( str , size , " Shader #2: %s " , g_settings . video . second_pass_shader ) ;
2012-05-29 19:47:53 +00:00
break ;
2012-07-19 00:38:09 +00:00
case S_LBL_RARCH_VERSION :
2012-06-24 20:54:43 +00:00
snprintf ( str , size , " RetroArch %s " , PACKAGE_VERSION ) ;
2012-05-29 18:34:06 +00:00
break ;
2012-07-19 00:38:09 +00:00
case S_LBL_SCALE_FACTOR :
2012-10-15 04:24:39 +00:00
snprintf ( str , size , " Scale Factor: %f (X) / %f (Y) " , g_settings . video . fbo . scale_x , g_settings . video . fbo . scale_y ) ;
2012-05-29 18:34:06 +00:00
break ;
2012-07-19 00:38:09 +00:00
case S_LBL_ROTATION :
2012-10-15 04:24:39 +00:00
snprintf ( str , size , " Rotation: %s " , rotation_lut [ g_extern . console . screen . orientation ] ) ;
2012-05-29 19:29:32 +00:00
break ;
2012-07-19 00:38:09 +00:00
case S_LBL_LOAD_STATE_SLOT :
2012-06-24 20:54:43 +00:00
snprintf ( str , size , " Load State #%d " , g_extern . state_slot ) ;
2012-05-29 19:40:45 +00:00
break ;
2012-07-19 00:38:09 +00:00
case S_LBL_SAVE_STATE_SLOT :
snprintf ( str , size , " Save State #%d " , g_extern . state_slot ) ;
2012-05-29 20:12:28 +00:00
break ;
2012-08-19 20:53:01 +00:00
case S_LBL_ZIP_EXTRACT :
{
char msg [ 128 ] ;
2012-10-15 04:24:39 +00:00
switch ( g_extern . file_state . zip_extract_mode )
2012-08-19 20:53:01 +00:00
{
case ZIP_EXTRACT_TO_CURRENT_DIR :
snprintf ( msg , sizeof ( msg ) , " Current dir " ) ;
break ;
case ZIP_EXTRACT_TO_CURRENT_DIR_AND_LOAD_FIRST_FILE :
snprintf ( msg , sizeof ( msg ) , " Current dir and load first file " ) ;
break ;
case ZIP_EXTRACT_TO_CACHE_DIR :
snprintf ( msg , sizeof ( msg ) , " Cache dir " ) ;
break ;
}
snprintf ( str , size , " ZIP Extract: %s " , msg ) ;
}
break ;
2012-05-29 17:51:35 +00:00
}
2012-05-29 20:12:28 +00:00
}
2012-07-24 07:57:34 +00:00
2012-08-08 20:39:19 +00:00
# if defined(_XBOX360)
# define DEFAULT_GAMMA 1
2012-08-09 04:29:33 +00:00
# else
2012-08-08 20:39:19 +00:00
# define DEFAULT_GAMMA 0
# endif
2012-09-09 23:48:39 +00:00
void rarch_settings_set_default ( void )
2012-07-24 07:57:34 +00:00
{
// g_settings
g_settings . rewind_enable = false ;
2012-08-04 05:26:50 +00:00
# ifdef HAVE_XML
2012-07-24 07:57:34 +00:00
strlcpy ( g_settings . cheat_database , default_paths . port_dir , sizeof ( g_settings . cheat_database ) ) ;
2012-08-04 05:26:50 +00:00
# endif
2012-07-24 07:57:34 +00:00
# if defined(HAVE_CG) || defined(HAVE_HLSL) || defined(HAVE_GLSL)
strlcpy ( g_settings . video . cg_shader_path , default_paths . shader_file , sizeof ( g_settings . video . cg_shader_path ) ) ;
strlcpy ( g_settings . video . second_pass_shader , default_paths . shader_file , sizeof ( g_settings . video . second_pass_shader ) ) ;
g_settings . video . second_pass_smooth = true ;
# endif
# ifdef HAVE_FBO
2012-10-15 04:24:39 +00:00
g_settings . video . fbo . scale_x = 2.0f ;
g_settings . video . fbo . scale_y = 2.0f ;
2012-07-24 07:57:34 +00:00
# endif
2012-08-06 19:44:25 +00:00
# ifdef GEKKO
g_settings . audio . rate_control_delta = 0.006 ;
g_settings . audio . rate_control = true ;
# endif
2012-07-24 07:57:34 +00:00
g_settings . video . render_to_texture = true ;
g_settings . video . smooth = true ;
g_settings . video . vsync = true ;
2012-08-15 17:59:22 +00:00
g_settings . video . refresh_rate = 59.92 ;
2012-07-24 07:57:34 +00:00
strlcpy ( g_settings . system_directory , default_paths . system_dir , sizeof ( g_settings . system_directory ) ) ;
g_settings . video . msg_pos_x = 0.05f ;
g_settings . video . msg_pos_y = 0.90f ;
g_settings . video . aspect_ratio = - 1.0f ;
2012-10-15 04:24:39 +00:00
# ifdef _XBOX360
g_settings . video . color_format = 0 ;
# endif
2012-07-24 07:57:34 +00:00
2012-10-15 04:24:39 +00:00
// g_extern
strlcpy ( g_extern . console . main_wrap . paths . default_sram_dir , default_paths . sram_dir , sizeof ( g_extern . console . main_wrap . paths . default_sram_dir ) ) ;
g_extern . console . screen . state . overscan . enable = false ;
g_extern . console . screen . overscan_amount = 0.0f ;
g_extern . console . sound . custom_bgm . enable = true ;
g_extern . console . screen . gamma_correction = DEFAULT_GAMMA ;
g_extern . console . initialize_rarch_enable = false ;
g_extern . console . screen . state . screenshots . enable = true ;
g_extern . console . screen . state . throttle . enable = true ;
g_extern . console . rmenu . state . msg_info . enable = true ;
g_extern . console . screen . state . triple_buffering . enable = true ;
g_extern . console . main_wrap . state . default_savestate_dir . enable = false ;
g_extern . console . main_wrap . state . default_sram_dir . enable = false ;
g_extern . console . screen . orientation = ORIENTATION_NORMAL ;
g_extern . console . screen . resolutions . current . id = 0 ;
strlcpy ( g_extern . console . main_wrap . paths . default_rom_startup_dir , default_paths . filebrowser_startup_dir , sizeof ( g_extern . console . main_wrap . paths . default_rom_startup_dir ) ) ;
strlcpy ( g_extern . console . main_wrap . paths . default_savestate_dir , default_paths . savestate_dir , sizeof ( g_extern . console . main_wrap . paths . default_savestate_dir ) ) ;
2012-07-24 07:57:34 +00:00
# ifdef HAVE_FBO
2012-10-15 04:24:39 +00:00
g_settings . video . fbo . enable = true ;
2012-07-24 07:57:34 +00:00
# else
2012-10-15 04:24:39 +00:00
g_settings . video . fbo . enable = false ;
2012-07-24 07:57:34 +00:00
# endif
2012-10-15 04:24:39 +00:00
g_settings . video . aspect_ratio_idx = 0 ;
g_extern . console . block_config_read = true ;
g_extern . console . screen . state . frame_advance . enable = false ;
g_extern . state_slot = 0 ;
g_extern . audio_data . mute = 0 ;
g_extern . verbose = true ;
2012-07-24 07:57:34 +00:00
2012-10-15 04:24:39 +00:00
g_extern . console . emulator_initialized = 0 ;
g_extern . console . rmenu . mode = MODE_MENU ;
g_extern . console . rmenu . font_size = 1.0f ;
g_extern . console . sound . mode = SOUND_MODE_NORMAL ;
g_extern . console . screen . viewports . custom_vp . width = 0 ;
g_extern . console . screen . viewports . custom_vp . height = 0 ;
g_extern . console . screen . viewports . custom_vp . x = 0 ;
g_extern . console . screen . viewports . custom_vp . y = 0 ;
2012-08-07 16:33:16 +00:00
# ifdef _XBOX1
2012-10-15 04:24:39 +00:00
g_extern . console . screen . state . flicker_filter . enable = 1 ;
g_extern . console . sound . volume_level = 0 ;
2012-08-07 16:33:16 +00:00
# endif
2012-10-15 04:24:39 +00:00
g_extern . console . screen . state . soft_filter . enable = true ;
2012-07-26 11:08:08 +00:00
# ifdef HAVE_ZLIB
2012-10-15 04:24:39 +00:00
g_extern . file_state . zip_extract_mode = 0 ;
2012-07-26 11:08:08 +00:00
# endif
2012-07-24 07:57:34 +00:00
}