Rev 6008 | Rev 6049 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6008 | Rev 6039 | ||
---|---|---|---|
Line 98... | Line 98... | ||
98 | FileShow.font_number = 0; |
98 | FileShow.font_number = 0; |
99 | ini_get_int stdcall (eolite_ini_path, #config_section, "ShowDeviceName", 1); show_dev_name = EAX; |
99 | ini_get_int stdcall (eolite_ini_path, #config_section, "ShowDeviceName", 1); show_dev_name = EAX; |
100 | ini_get_int stdcall (eolite_ini_path, #config_section, "RealFileNamesCase", 0); real_files_names_case = EAX; |
100 | ini_get_int stdcall (eolite_ini_path, #config_section, "RealFileNamesCase", 0); real_files_names_case = EAX; |
101 | ini_get_int stdcall (eolite_ini_path, #config_section, "InfoAfterCopy", 0); info_after_copy = EAX; |
101 | ini_get_int stdcall (eolite_ini_path, #config_section, "InfoAfterCopy", 0); info_after_copy = EAX; |
102 | ini_get_int stdcall (eolite_ini_path, #config_section, "FontSize", 9); label.size.pt = EAX; |
102 | ini_get_int stdcall (eolite_ini_path, #config_section, "FontSize", 12); label.size.pt = EAX; |
103 | ini_get_int stdcall (eolite_ini_path, #config_section, "TwoPanels", 0); two_panels = EAX; |
103 | ini_get_int stdcall (eolite_ini_path, #config_section, "TwoPanels", 0); two_panels = EAX; |
104 | ini_get_int stdcall (eolite_ini_path, #config_section, "LineHeight", 18); files.item_h = EAX; |
104 | ini_get_int stdcall (eolite_ini_path, #config_section, "LineHeight", 19); files.item_h = EAX; |
105 | ini_get_int stdcall (eolite_ini_path, #config_section, "WinX", 200); WinX = EAX; |
105 | ini_get_int stdcall (eolite_ini_path, #config_section, "WinX", 200); WinX = EAX; |
106 | ini_get_int stdcall (eolite_ini_path, #config_section, "WinY", 50); WinY = EAX; |
106 | ini_get_int stdcall (eolite_ini_path, #config_section, "WinY", 50); WinY = EAX; |
107 | ini_get_int stdcall (eolite_ini_path, #config_section, "WinW", 550); WinW = EAX; |
107 | ini_get_int stdcall (eolite_ini_path, #config_section, "WinW", 550); WinW = EAX; |
108 | ini_get_int stdcall (eolite_ini_path, #config_section, "WinH", 500); WinH = EAX; |
108 | ini_get_int stdcall (eolite_ini_path, #config_section, "WinH", 506); WinH = EAX; |
109 | ini_get_str stdcall (eolite_ini_path, #config_section, "DefaultPath", #path,4096,"/rd/1/"); |
109 | ini_get_str stdcall (eolite_ini_path, #config_section, "DefaultPath", #path,4096,"/rd/1/"); |
110 | 110 | ||
Line -... | Line 111... | ||
- | 111 | ||
111 | ini_get_str stdcall ("/sys/SETTINGS/SYSTEM.INI", "system", "font file",#temp,4096,DEFAULT_FONT); |
112 | ini_get_str stdcall ("/sys/SETTINGS/SYSTEM.INI", "system", "font file",#temp,4096,DEFAULT_FONT); |
112 | label.init(#temp); |
113 | label.init(#temp); |
113 | ini_get_str stdcall ("/sys/SETTINGS/SYSTEM.INI", "system", "font smoothing",#temp,4096,"on"); |
114 | ini_get_str stdcall ("/sys/SETTINGS/SYSTEM.INI", "system", "font smoothing",#temp,4096,"on"); |
114 | if(!strcmp(#temp,"off")) label.smooth = false; else label.smooth = true; |
115 | if(!strcmp(#temp,"off")) label.smooth = false; else label.smooth = true; |
115 | } |
116 | } |
Line 116... | Line -... | ||
116 | - | ||
117 | 117 | ||
118 | void SaveIniSettings() |
118 | void ProceedSaveSettings(dword save_path) |
- | 119 | { |
|
- | 120 | ini_set_int stdcall (save_path, #config_section, "ShowDeviceName", show_dev_name); |
|
- | 121 | ini_set_int stdcall (save_path, #config_section, "RealFileNamesCase", real_files_names_case); |
|
- | 122 | ini_set_int stdcall (save_path, #config_section, "InfoAfterCopy", info_after_copy); |
|
- | 123 | ini_set_int stdcall (save_path, #config_section, "FontSize", label.size.pt); |
|
- | 124 | ini_set_int stdcall (save_path, #config_section, "TwoPanels", two_panels); |
|
- | 125 | ini_set_int stdcall (save_path, #config_section, "LineHeight", files.item_h); |
|
- | 126 | ini_set_int stdcall (save_path, #config_section, "WinX", Form.left); |
|
- | 127 | ini_set_int stdcall (save_path, #config_section, "WinY", Form.top); |
|
- | 128 | ini_set_int stdcall (save_path, #config_section, "WinW", Form.width); |
|
- | 129 | ini_set_int stdcall (save_path, #config_section, "WinH", Form.height); |
|
Line 119... | Line -... | ||
119 | { |
- | |
120 | - | ||
121 | ini_set_int stdcall (eolite_ini_path, #config_section, "ShowDeviceName", show_dev_name); |
- | |
122 | ini_set_int stdcall (eolite_ini_path, #config_section, "RealFileNamesCase", real_files_names_case); |
- | |
123 | ini_set_int stdcall (eolite_ini_path, #config_section, "InfoAfterCopy", info_after_copy); |
- | |
124 | ini_set_int stdcall (eolite_ini_path, #config_section, "FontSize", label.size.pt); |
- | |
125 | ini_set_int stdcall (eolite_ini_path, #config_section, "TwoPanels", two_panels); |
- | |
126 | ini_set_int stdcall (eolite_ini_path, #config_section, "LineHeight", files.item_h); |
- | |
127 | ini_set_int stdcall (eolite_ini_path, #config_section, "WinX", Form.left); |
- | |
128 | ini_set_int stdcall (eolite_ini_path, #config_section, "WinY", Form.top); |
- | |
129 | ini_set_int stdcall (eolite_ini_path, #config_section, "WinW", Form.width); |
- | |
130 | ini_set_int stdcall (eolite_ini_path, #config_section, "WinH", Form.height); |
130 | } |
131 | 131 | ||
132 | if(CMD_ENABLE_SAVE_IMG) |
- | |
133 | { |
- | |
134 | ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "ShowDeviceName", show_dev_name); |
- | |
135 | ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "RealFileNamesCase", real_files_names_case); |
- | |
136 | ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "InfoAfterCopy", info_after_copy); |
- | |
137 | ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "FontSize", label.size.pt); |
- | |
138 | ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "TwoPanels", two_panels); |
- | |
139 | ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "LineHeight", files.item_h); |
132 | void SaveIniSettings() |
140 | ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "WinX", Form.left); |
133 | { |
141 | ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "WinY", Form.top); |
- | |
142 | ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "WinW", Form.width); |
- | |
143 | ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "WinH", Form.height); |
134 | ProceedSaveSettings(eolite_ini_path); |
Line 144... | Line 135... | ||
144 | } |
135 | if(CMD_ENABLE_SAVE_IMG) ProceedSaveSettings(fd_path_eolite_ini_path); |