Patch level : 12.0 1086
Files correlati : bs0.exe bs0500a.msk ba3.exe cg0.exe ve0.exe ve2.exe Commento : Importazione Bee Store
This commit is contained in:
parent
8e1281acf5
commit
83232680bc
@ -3742,6 +3742,28 @@ BOOLEAN xvt_sys_set_profile_string(const char* file, const char* paragraph, cons
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
XVTDLL BOOLEAN xvt_sys_remove_profile_string(const char* file, const char* paragraph, const char* name)
|
||||||
|
{
|
||||||
|
if (file == NULL || *file == '\0')
|
||||||
|
file = xvt_fsys_get_campo_ini();
|
||||||
|
|
||||||
|
if (paragraph == NULL || *paragraph == '\0')
|
||||||
|
paragraph = "Main";
|
||||||
|
|
||||||
|
#ifdef __WXMSW__
|
||||||
|
return ::WritePrivateProfileString(paragraph, name, nullptr, file) > 0;
|
||||||
|
#else
|
||||||
|
wxFileConfig ini("", "", file, "", wxCONFIG_USE_LOCAL_FILE | wxCONFIG_USE_RELATIVE_PATH);
|
||||||
|
ini.SetUmask(0x0);
|
||||||
|
|
||||||
|
wxString path;
|
||||||
|
path << "/" << paragraph;
|
||||||
|
ini.SetPath(path);
|
||||||
|
|
||||||
|
return ini.DeleteEntry(name);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
BOOLEAN xvt_sys_find_editor(const char* file, char* editor)
|
BOOLEAN xvt_sys_find_editor(const char* file, char* editor)
|
||||||
{
|
{
|
||||||
BOOLEAN ok = FALSE;
|
BOOLEAN ok = FALSE;
|
||||||
|
@ -432,6 +432,7 @@ XVTDLL int xvt_sys_get_profile_string(const char* file, const char* paragra
|
|||||||
const char* defval, char* value, int maxsize);
|
const char* defval, char* value, int maxsize);
|
||||||
XVTDLL BOOLEAN xvt_sys_set_profile_int(const char* file, const char* paragraph, const char* name, long value);
|
XVTDLL BOOLEAN xvt_sys_set_profile_int(const char* file, const char* paragraph, const char* name, long value);
|
||||||
XVTDLL BOOLEAN xvt_sys_set_profile_string(const char* file, const char* paragraph, const char* name, const char* value);
|
XVTDLL BOOLEAN xvt_sys_set_profile_string(const char* file, const char* paragraph, const char* name, const char* value);
|
||||||
|
XVTDLL BOOLEAN xvt_sys_remove_profile_string(const char* file, const char* paragraph, const char* name);
|
||||||
|
|
||||||
XVTDLL int xvt_sys_get_session_id();
|
XVTDLL int xvt_sys_get_session_id();
|
||||||
XVTDLL unsigned long xvt_sys_get_free_memory();
|
XVTDLL unsigned long xvt_sys_get_free_memory();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user