(360) More of aforementioned

This commit is contained in:
TwinAphex51224 2012-03-12 03:53:44 +01:00
parent e1bbaee64c
commit ed4a81e497
3 changed files with 3 additions and 4 deletions

View File

@ -315,7 +315,7 @@ HRESULT CSSNESFileBrowser::OnNotifyPress( HXUIOBJ hObjPressed, BOOL& bHandled )
{
memset(strbuffer, 0, sizeof(strbuffer));
wcstombs(strbuffer, (const wchar_t *)m_romlist.GetText(index), sizeof(strbuffer));
if((strstr(strbuffer, ".zip") || strstr(strbuffer, ".ZIP")) && g_console.extract_zip_files_enable)
if((strstr(strbuffer, ".zip") || strstr(strbuffer, ".ZIP")) && !g_console.block_zip_extract)
{
char path_tmp[1024];
sprintf(path_tmp, "%s\\%s", FILEBROWSER_GET_CURRENT_DIRECTORY_NAME(browser), strbuffer);

View File

@ -388,7 +388,7 @@ static bool environment_cb(unsigned cmd, void *data)
#ifdef SSNES_CONSOLE
case SNES_ENVIRONMENT_SET_BATCH_LOAD:
g_console.block_zip_extract = *(const bool*)data;
g_console.block_zip_extract = *(uint32_t*)data;
break;
case SNES_ENVIRONMENT_SET_ROM_FORMATS:

View File

@ -189,8 +189,6 @@ struct console_settings
bool block_config_read;
bool default_sram_dir_enable;
bool default_savestate_dir_enable;
bool extract_zip_files_enable;
bool block_zip_extract;
bool frame_advance_enable;
bool gamma_correction_enable;
bool initialize_ssnes_enable;
@ -202,6 +200,7 @@ struct console_settings
bool throttle_enable;
bool triple_buffering_enable;
float overscan_amount;
uint32_t block_zip_extract;
uint32_t aspect_ratio_index;
uint32_t custom_viewport_width;
uint32_t custom_viewport_height;