use functions to free cache space & smaller DLL (Data_DWORD_General)
This commit is contained in:
parent
f48cbd1756
commit
2e1dab501c
|
@ -1310,3 +1310,16 @@ void CALL DllAbout ( HWND hParent )
|
|||
hostWindow = NULL;
|
||||
#endif
|
||||
}
|
||||
|
||||
void general_setting(short setting_ID, const char * name, unsigned int value)
|
||||
{
|
||||
RegisterSetting(
|
||||
setting_ID,
|
||||
Data_DWORD_General,
|
||||
name,
|
||||
NULL,
|
||||
value,
|
||||
NULL
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -286,4 +286,7 @@ enum {
|
|||
|
||||
extern short Set_basic_mode, Set_texture_dir;
|
||||
|
||||
extern void
|
||||
general_setting(short setting_ID, const char * name, unsigned int value);
|
||||
|
||||
#endif // CONFIG_H
|
||||
|
|
|
@ -1578,49 +1578,49 @@ void CALL PluginLoaded (void)
|
|||
Set_texture_dir = FindSystemSettingId("Dir:Texture");
|
||||
|
||||
SetModuleName("Glide64");
|
||||
RegisterSetting(Set_CardId, Data_DWORD_General,"card_id",NULL,0,NULL);
|
||||
RegisterSetting(Set_Resolution, Data_DWORD_General,"resolution",NULL,7,NULL);
|
||||
RegisterSetting(Set_vsync, Data_DWORD_General,"vsync",NULL,1,NULL);
|
||||
RegisterSetting(Set_ssformat, Data_DWORD_General,"ssformat",NULL,1,NULL);
|
||||
RegisterSetting(Set_ShowFps, Data_DWORD_General,"show_fps",NULL,0,NULL);
|
||||
RegisterSetting(Set_clock, Data_DWORD_General,"clock",NULL,0,NULL);
|
||||
RegisterSetting(Set_clock_24_hr, Data_DWORD_General,"clock_24_hr",NULL,0,NULL);
|
||||
RegisterSetting(Set_texenh_options, Data_DWORD_General,"texenh_options",NULL,0,NULL);
|
||||
RegisterSetting(Set_hotkeys, Data_DWORD_General,"hotkeys",NULL,1,NULL);
|
||||
RegisterSetting(Set_wrpResolution, Data_DWORD_General,"wrpResolution",NULL,0,NULL);
|
||||
RegisterSetting(Set_wrpVRAM, Data_DWORD_General,"wrpVRAM",NULL,0,NULL);
|
||||
RegisterSetting(Set_wrpFBO, Data_DWORD_General,"wrpFBO",NULL,0,NULL);
|
||||
RegisterSetting(Set_wrpAnisotropic, Data_DWORD_General,"wrpAnisotropic",NULL,0,NULL);
|
||||
RegisterSetting(Set_autodetect_ucode, Data_DWORD_General,"autodetect_ucode",NULL, 1,NULL);
|
||||
RegisterSetting(Set_ucode, Data_DWORD_General,"ucode",NULL, 2,NULL);
|
||||
RegisterSetting(Set_wireframe, Data_DWORD_General,"wireframe",NULL, 0,NULL);
|
||||
RegisterSetting(Set_wfmode, Data_DWORD_General,"wfmode",NULL, 1,NULL);
|
||||
RegisterSetting(Set_logging, Data_DWORD_General,"logging",NULL, 0,NULL);
|
||||
RegisterSetting(Set_log_clear, Data_DWORD_General,"log_clear",NULL, 0,NULL);
|
||||
RegisterSetting(Set_run_in_window, Data_DWORD_General,"run_in_window",NULL, 0,NULL);
|
||||
RegisterSetting(Set_elogging, Data_DWORD_General,"elogging",NULL, 0,NULL);
|
||||
RegisterSetting(Set_filter_cache, Data_DWORD_General,"filter_cache",NULL, 0,NULL);
|
||||
RegisterSetting(Set_unk_as_red, Data_DWORD_General,"unk_as_red",NULL, 0,NULL);
|
||||
RegisterSetting(Set_log_unk, Data_DWORD_General,"log_unk",NULL, 0,NULL);
|
||||
RegisterSetting(Set_unk_clear, Data_DWORD_General,"unk_clear",NULL, 0,NULL);
|
||||
RegisterSetting(Set_ghq_fltr, Data_DWORD_General,"ghq_fltr",NULL, 0,NULL);
|
||||
RegisterSetting(Set_ghq_cmpr, Data_DWORD_General,"ghq_cmpr",NULL, 0,NULL);
|
||||
RegisterSetting(Set_ghq_enht, Data_DWORD_General,"ghq_enht",NULL, 0,NULL);
|
||||
RegisterSetting(Set_ghq_hirs, Data_DWORD_General,"ghq_hirs",NULL, 0,NULL);
|
||||
RegisterSetting(Set_ghq_enht_cmpr, Data_DWORD_General,"ghq_enht_cmpr",NULL, 0,NULL);
|
||||
RegisterSetting(Set_ghq_enht_tile, Data_DWORD_General,"ghq_enht_tile",NULL, 0,NULL);
|
||||
RegisterSetting(Set_ghq_enht_f16bpp, Data_DWORD_General,"ghq_enht_f16bpp",NULL, 0,NULL);
|
||||
RegisterSetting(Set_ghq_enht_gz, Data_DWORD_General,"ghq_enht_gz",NULL, 1,NULL);
|
||||
RegisterSetting(Set_ghq_enht_nobg, Data_DWORD_General,"ghq_enht_nobg",NULL, 0,NULL);
|
||||
RegisterSetting(Set_ghq_hirs_cmpr, Data_DWORD_General,"ghq_hirs_cmpr",NULL, 0,NULL);
|
||||
RegisterSetting(Set_ghq_hirs_tile, Data_DWORD_General,"ghq_hirs_tile",NULL, 0,NULL);
|
||||
RegisterSetting(Set_ghq_hirs_f16bpp, Data_DWORD_General,"ghq_hirs_f16bpp",NULL, 0,NULL);
|
||||
RegisterSetting(Set_ghq_hirs_gz, Data_DWORD_General,"ghq_hirs_gz",NULL, 1,NULL);
|
||||
RegisterSetting(Set_ghq_hirs_altcrc, Data_DWORD_General,"ghq_hirs_altcrc",NULL, 1,NULL);
|
||||
RegisterSetting(Set_ghq_cache_save, Data_DWORD_General,"ghq_cache_save",NULL, 1,NULL);
|
||||
RegisterSetting(Set_ghq_cache_size, Data_DWORD_General,"ghq_cache_size",NULL, 0,NULL);
|
||||
RegisterSetting(Set_ghq_hirs_let_texartists_fly, Data_DWORD_General,"ghq_hirs_let_texartists_fly",NULL, 0,NULL);
|
||||
RegisterSetting(Set_ghq_hirs_dump, Data_DWORD_General,"ghq_hirs_dump",NULL, 0,NULL);
|
||||
general_setting(Set_CardId, "card_id", 0);
|
||||
general_setting(Set_Resolution, "resolution", 7);
|
||||
general_setting(Set_vsync, "vsync", 1);
|
||||
general_setting(Set_ssformat, "ssformat", 1);
|
||||
general_setting(Set_ShowFps, "show_fps", 0);
|
||||
general_setting(Set_clock, "clock", 0);
|
||||
general_setting(Set_clock_24_hr, "clock_24_hr", 0);
|
||||
general_setting(Set_texenh_options, "texenh_options", 0);
|
||||
general_setting(Set_hotkeys, "hotkeys", 1);
|
||||
general_setting(Set_wrpResolution, "wrpResolution", 0);
|
||||
general_setting(Set_wrpVRAM, "wrpVRAM", 0);
|
||||
general_setting(Set_wrpFBO, "wrpFBO", 0);
|
||||
general_setting(Set_wrpAnisotropic, "wrpAnisotropic", 0);
|
||||
general_setting(Set_autodetect_ucode, "autodetect_ucode", 1);
|
||||
general_setting(Set_ucode, "ucode", 2);
|
||||
general_setting(Set_wireframe, "wireframe", 0);
|
||||
general_setting(Set_wfmode, "wfmode", 1);
|
||||
general_setting(Set_logging, "logging", 0);
|
||||
general_setting(Set_log_clear, "log_clear", 0);
|
||||
general_setting(Set_run_in_window, "run_in_window", 0);
|
||||
general_setting(Set_elogging, "elogging", 0);
|
||||
general_setting(Set_filter_cache, "filter_cache", 0);
|
||||
general_setting(Set_unk_as_red, "unk_as_red", 0);
|
||||
general_setting(Set_log_unk, "log_unk", 0);
|
||||
general_setting(Set_unk_clear, "unk_clear", 0);
|
||||
general_setting(Set_ghq_fltr, "ghq_fltr", 0);
|
||||
general_setting(Set_ghq_cmpr, "ghq_cmpr", 0);
|
||||
general_setting(Set_ghq_enht, "ghq_enht", 0);
|
||||
general_setting(Set_ghq_hirs, "ghq_hirs", 0);
|
||||
general_setting(Set_ghq_enht_cmpr, "ghq_enht_cmpr", 0);
|
||||
general_setting(Set_ghq_enht_tile, "ghq_enht_tile", 0);
|
||||
general_setting(Set_ghq_enht_f16bpp, "ghq_enht_f16bpp", 0);
|
||||
general_setting(Set_ghq_enht_gz, "ghq_enht_gz", 1);
|
||||
general_setting(Set_ghq_enht_nobg, "ghq_enht_nobg", 0);
|
||||
general_setting(Set_ghq_hirs_cmpr, "ghq_hirs_cmpr", 0);
|
||||
general_setting(Set_ghq_hirs_tile, "ghq_hirs_tile", 0);
|
||||
general_setting(Set_ghq_hirs_f16bpp, "ghq_hirs_f16bpp", 0);
|
||||
general_setting(Set_ghq_hirs_gz, "ghq_hirs_gz", 1);
|
||||
general_setting(Set_ghq_hirs_altcrc, "ghq_hirs_altcrc", 1);
|
||||
general_setting(Set_ghq_cache_save, "ghq_cache_save", 1);
|
||||
general_setting(Set_ghq_cache_size, "ghq_cache_size", 0);
|
||||
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);
|
||||
|
|
Loading…
Reference in New Issue