mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-02-01 17:23:48 +00:00
(360) Starts up with default generated config file again
This commit is contained in:
parent
79d508b05a
commit
8889af2d19
@ -134,6 +134,7 @@ static void set_default_settings (void)
|
||||
strlcpy(g_settings.video.cg_shader_path, DEFAULT_SHADER_FILE, sizeof(g_settings.video.cg_shader_path));
|
||||
g_settings.video.fbo_scale_x = 2.0f;
|
||||
g_settings.video.fbo_scale_y = 2.0f;
|
||||
strlcpy(g_settings.video.second_pass_shader, DEFAULT_SHADER_FILE, sizeof(g_settings.video.second_pass_shader));
|
||||
g_settings.video.second_pass_smooth = true;
|
||||
g_settings.video.smooth = true;
|
||||
g_settings.video.vsync = true;
|
||||
@ -190,7 +191,7 @@ static void init_settings (bool load_libretro_path)
|
||||
if(!path_file_exists(SYS_CONFIG_FILE))
|
||||
{
|
||||
FILE * f;
|
||||
RARCH_ERR("Config file \"%s\" desn't exist. Creating...\n", "game:\\retroarch.cfg");
|
||||
RARCH_ERR("Config file \"%s\" doesn't exist. Creating...\n", SYS_CONFIG_FILE);
|
||||
f = fopen(SYS_CONFIG_FILE, "w");
|
||||
fclose(f);
|
||||
}
|
||||
|
@ -797,7 +797,12 @@ void menu_loop(void)
|
||||
|
||||
do
|
||||
{
|
||||
rarch_render_cached_frame();
|
||||
if(!g_console.emulator_initialized)
|
||||
d3d9->d3d_render_device->Clear(0, NULL, D3DCLEAR_TARGET, D3DCOLOR_ARGB(0, 0, 0, 0), 1.0f, 0);
|
||||
else
|
||||
{
|
||||
rarch_render_cached_frame();
|
||||
}
|
||||
|
||||
XINPUT_STATE state;
|
||||
XInputGetState(0, &state);
|
||||
|
@ -689,11 +689,8 @@ static void xdk360_set_nonblock_state(void *data, bool state)
|
||||
{
|
||||
xdk360_video_t *d3d9 = (xdk360_video_t*)data;
|
||||
|
||||
if(d3d9->vsync)
|
||||
{
|
||||
RARCH_LOG("D3D Vsync => %s\n", state ? "off" : "on");
|
||||
gfx_ctx_set_swap_interval(state ? 0 : 1, TRUE);
|
||||
}
|
||||
RARCH_LOG("D3D Vsync => %s\n", state ? "off" : "on");
|
||||
gfx_ctx_set_swap_interval(state ? 0 : 1, TRUE);
|
||||
}
|
||||
|
||||
static bool xdk360_alive(void *data)
|
||||
|
Loading…
x
Reference in New Issue
Block a user