FLUID: Stroe uid's in hex

This commit is contained in:
Matthias Melcher
2023-10-31 11:20:54 +01:00
parent 99826a5fba
commit a2d7fde645
4 changed files with 309 additions and 305 deletions
File diff suppressed because it is too large Load Diff
+210 -210
View File
File diff suppressed because it is too large Load Diff
+2
View File
@@ -765,6 +765,8 @@ int Fd_Code_Writer::write_code(const char *s, const char *t, bool to_sourceview)
// Remember the last code file location for MergeBack
if (s && g_project.write_mergeback_data && !to_sourceview) {
Fl_String proj_filename = g_project.projectfile_path() + g_project.projectfile_name();
int i, n = proj_filename.size();
for (i=0; i<n; i++) if (proj_filename[i]=='\\') proj_filename[i] = '/';
Fl_Preferences build_records(Fl_Preferences::USER_L, "fltk.org.build", "fluid");
Fl_Preferences path(build_records, proj_filename.c_str());
path.set("code", s);
+2
View File
@@ -1291,6 +1291,8 @@ int mergeback_code_files()
if (!batch_mode) {
Fl_Preferences build_records(Fl_Preferences::USER_L, "fltk.org.build", "fluid");
Fl_Preferences path(build_records, proj_filename.c_str());
int i, n = proj_filename.size();
for (i=0; i<n; i++) if (proj_filename[i]=='\\') proj_filename[i] = '/';
preferences_get(path, "code", code_filename, "");
}
#endif