use functions to free cache space & smaller DLL (Data_DWORD_Game)
This commit is contained in:
parent
2e1dab501c
commit
5387b9354d
|
@ -1323,3 +1323,15 @@ void general_setting(short setting_ID, const char * name, unsigned int value)
|
|||
);
|
||||
return;
|
||||
}
|
||||
void game_setting(short setting_ID, const char * name, unsigned int value)
|
||||
{
|
||||
RegisterSetting(
|
||||
setting_ID,
|
||||
Data_DWORD_Game,
|
||||
name,
|
||||
NULL,
|
||||
value,
|
||||
NULL
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -288,5 +288,7 @@ extern short Set_basic_mode, Set_texture_dir;
|
|||
|
||||
extern void
|
||||
general_setting(short setting_ID, const char * name, unsigned int value);
|
||||
extern void
|
||||
game_setting(short setting_ID, const char * name, unsigned int value);
|
||||
|
||||
#endif // CONFIG_H
|
||||
|
|
|
@ -1622,46 +1622,46 @@ void CALL PluginLoaded (void)
|
|||
general_setting(Set_ghq_hirs_let_texartists_fly, "ghq_hirs_let_texartists_fly", 0);
|
||||
general_setting(Set_ghq_hirs_dump, "ghq_hirs_dump", 0);
|
||||
|
||||
RegisterSetting(Set_alt_tex_size,Data_DWORD_Game,"alt_tex_size",NULL,0,NULL);
|
||||
RegisterSetting(Set_use_sts1_only,Data_DWORD_Game,"use_sts1_only",NULL,0,NULL);
|
||||
RegisterSetting(Set_force_calc_sphere,Data_DWORD_Game,"force_calc_sphere",NULL,0,NULL);
|
||||
RegisterSetting(Set_correct_viewport,Data_DWORD_Game,"correct_viewport",NULL,0,NULL);
|
||||
RegisterSetting(Set_increase_texrect_edge,Data_DWORD_Game,"increase_texrect_edge",NULL,0,NULL);
|
||||
RegisterSetting(Set_decrease_fillrect_edge,Data_DWORD_Game,"decrease_fillrect_edge",NULL,0,NULL);
|
||||
RegisterSetting(Set_texture_correction,Data_DWORD_Game,"texture_correction",NULL,1,NULL);
|
||||
RegisterSetting(Set_pal230,Data_DWORD_Game,"pal230",NULL,0,NULL);
|
||||
RegisterSetting(Set_stipple_mode,Data_DWORD_Game,"stipple_mode",NULL,2,NULL);
|
||||
game_setting(Set_alt_tex_size, "alt_tex_size", 0);
|
||||
game_setting(Set_use_sts1_only, "use_sts1_only", 0);
|
||||
game_setting(Set_force_calc_sphere, "force_calc_sphere", 0);
|
||||
game_setting(Set_correct_viewport, "correct_viewport", 0);
|
||||
game_setting(Set_increase_texrect_edge, "increase_texrect_edge", 0);
|
||||
game_setting(Set_decrease_fillrect_edge, "decrease_fillrect_edge", 0);
|
||||
game_setting(Set_texture_correction, "texture_correction", 1);
|
||||
game_setting(Set_pal230, "pal230", 0);
|
||||
game_setting(Set_stipple_mode, "stipple_mode", 2);
|
||||
|
||||
RegisterSetting(Set_stipple_pattern,Data_DWORD_Game,"stipple_pattern",NULL,0x3E0F83E0,NULL);
|
||||
RegisterSetting(Set_force_microcheck,Data_DWORD_Game,"force_microcheck",NULL,0,NULL);
|
||||
RegisterSetting(Set_force_quad3d,Data_DWORD_Game,"force_quad3d",NULL,0,NULL);
|
||||
RegisterSetting(Set_clip_zmin,Data_DWORD_Game,"clip_zmin",NULL,0,NULL);
|
||||
RegisterSetting(Set_clip_zmax,Data_DWORD_Game,"clip_zmax",NULL,1,NULL);
|
||||
RegisterSetting(Set_fast_crc,Data_DWORD_Game,"fast_crc",NULL,1,NULL);
|
||||
RegisterSetting(Set_adjust_aspect,Data_DWORD_Game,"adjust_aspect",NULL,1,NULL);
|
||||
RegisterSetting(Set_zmode_compare_less,Data_DWORD_Game,"zmode_compare_less",NULL,0,NULL);
|
||||
RegisterSetting(Set_old_style_adither,Data_DWORD_Game,"old_style_adither",NULL,0,NULL);
|
||||
RegisterSetting(Set_n64_z_scale,Data_DWORD_Game,"n64_z_scale",NULL,0,NULL);
|
||||
RegisterSetting(Set_optimize_texrect,Data_DWORD_Game,"optimize_texrect",NULL,1,NULL);
|
||||
RegisterSetting(Set_ignore_aux_copy,Data_DWORD_Game,"ignore_aux_copy",NULL,(unsigned int)-1,NULL);
|
||||
RegisterSetting(Set_hires_buf_clear,Data_DWORD_Game,"hires_buf_clear",NULL,1,NULL);
|
||||
RegisterSetting(Set_fb_read_alpha,Data_DWORD_Game,"fb_read_alpha",NULL,0,NULL);
|
||||
RegisterSetting(Set_useless_is_useless,Data_DWORD_Game,"useless_is_useless",NULL,(unsigned int)-1,NULL);
|
||||
RegisterSetting(Set_fb_crc_mode,Data_DWORD_Game,"fb_crc_mode",NULL,1,NULL);
|
||||
RegisterSetting(Set_filtering,Data_DWORD_Game,"filtering",NULL,0,NULL);
|
||||
RegisterSetting(Set_fog,Data_DWORD_Game,"fog",NULL,1,NULL);
|
||||
RegisterSetting(Set_buff_clear,Data_DWORD_Game,"buff_clear",NULL,1,NULL);
|
||||
RegisterSetting(Set_swapmode,Data_DWORD_Game,"swapmode",NULL,1,NULL);
|
||||
RegisterSetting(Set_aspect,Data_DWORD_Game,"aspect",NULL,0,NULL);
|
||||
RegisterSetting(Set_lodmode,Data_DWORD_Game,"lodmode",NULL,0,NULL);
|
||||
game_setting(Set_stipple_pattern,Data_DWORD_Game,"stipple_pattern",NULL,0x3E0F83E0,NULL);
|
||||
game_setting(Set_force_microcheck,Data_DWORD_Game,"force_microcheck",NULL,0,NULL);
|
||||
game_setting(Set_force_quad3d,Data_DWORD_Game,"force_quad3d",NULL,0,NULL);
|
||||
game_setting(Set_clip_zmin,Data_DWORD_Game,"clip_zmin",NULL,0,NULL);
|
||||
game_setting(Set_clip_zmax,Data_DWORD_Game,"clip_zmax",NULL,1,NULL);
|
||||
game_setting(Set_fast_crc,Data_DWORD_Game,"fast_crc",NULL,1,NULL);
|
||||
game_setting(Set_adjust_aspect,Data_DWORD_Game,"adjust_aspect",NULL,1,NULL);
|
||||
game_setting(Set_zmode_compare_less,Data_DWORD_Game,"zmode_compare_less",NULL,0,NULL);
|
||||
game_setting(Set_old_style_adither,Data_DWORD_Game,"old_style_adither",NULL,0,NULL);
|
||||
game_setting(Set_n64_z_scale,Data_DWORD_Game,"n64_z_scale",NULL,0,NULL);
|
||||
game_setting(Set_optimize_texrect,Data_DWORD_Game,"optimize_texrect",NULL,1,NULL);
|
||||
game_setting(Set_ignore_aux_copy,Data_DWORD_Game,"ignore_aux_copy",NULL,(unsigned int)-1,NULL);
|
||||
game_setting(Set_hires_buf_clear,Data_DWORD_Game,"hires_buf_clear",NULL,1,NULL);
|
||||
game_setting(Set_fb_read_alpha,Data_DWORD_Game,"fb_read_alpha",NULL,0,NULL);
|
||||
game_setting(Set_useless_is_useless,Data_DWORD_Game,"useless_is_useless",NULL,(unsigned int)-1,NULL);
|
||||
game_setting(Set_fb_crc_mode,Data_DWORD_Game,"fb_crc_mode",NULL,1,NULL);
|
||||
game_setting(Set_filtering,Data_DWORD_Game,"filtering",NULL,0,NULL);
|
||||
game_setting(Set_fog,Data_DWORD_Game,"fog",NULL,1,NULL);
|
||||
game_setting(Set_buff_clear,Data_DWORD_Game,"buff_clear",NULL,1,NULL);
|
||||
game_setting(Set_swapmode,Data_DWORD_Game,"swapmode",NULL,1,NULL);
|
||||
game_setting(Set_aspect,Data_DWORD_Game,"aspect",NULL,0,NULL);
|
||||
game_setting(Set_lodmode,Data_DWORD_Game,"lodmode",NULL,0,NULL);
|
||||
|
||||
RegisterSetting(Set_fb_smart,Data_DWORD_Game,"fb_smart",NULL,1,NULL);
|
||||
RegisterSetting(Set_fb_hires,Data_DWORD_Game,"fb_hires",NULL,1,NULL);
|
||||
RegisterSetting(Set_fb_read_always,Data_DWORD_Game,"fb_read_always",NULL,0,NULL);
|
||||
RegisterSetting(Set_read_back_to_screen,Data_DWORD_Game,"read_back_to_screen",NULL,0,NULL);
|
||||
RegisterSetting(Set_detect_cpu_write,Data_DWORD_Game,"detect_cpu_write",NULL,0,NULL);
|
||||
RegisterSetting(Set_fb_get_info,Data_DWORD_Game,"fb_get_info",NULL,0,NULL);
|
||||
RegisterSetting(Set_fb_render,Data_DWORD_Game,"fb_render",NULL,1,NULL);
|
||||
game_setting(Set_fb_smart, "fb_smart", 1);
|
||||
game_setting(Set_fb_hires, "fb_hires", 1);
|
||||
game_setting(Set_fb_read_always, "fb_read_always", 0);
|
||||
game_setting(Set_read_back_to_screen, "read_back_to_screen", 0);
|
||||
game_setting(Set_detect_cpu_write, "detect_cpu_write", 0);
|
||||
game_setting(Set_fb_get_info, "fb_get_info", 0);
|
||||
game_setting(Set_fb_render, "fb_render", 1);
|
||||
}
|
||||
|
||||
/******************************************************************
|
||||
|
|
Loading…
Reference in New Issue