2 ===================================================================
3 --- u_main.tk (revision 10595)
4 +++ u_main.tk (working copy)
6 # set file types that open/save recognize
9 - {{Max Text Files} {.pat} }
10 + {{Max Patch Files} {.pat} }
11 + {{Max Text Files} {.mxt} }
13 } elseif { $tcl_platform(os) == "Darwin" } {
16 # set file types that open/save recognize
19 - {{Max Text Files (.pat)} {.pat} }
20 + {{Max Patch Files (.pat)} {.pat} }
21 + {{Max Text Files (.mxt)} {.mxt} }
26 # set file types that open/save recognize
29 - {{max text files} {.pat} }
30 + {{max patch files} {.pat} }
31 + {{max text files} {.mxt} }
36 ===================================================================
37 --- m_binbuf.c (revision 10506)
38 +++ m_binbuf.c (working copy)
41 strcat(fbuf, dir), strcat(fbuf, "/");
42 strcat(fbuf, filename);
43 - if (!strcmp(filename + strlen(filename) - 4, ".pat"))
44 + if (!strcmp(filename + strlen(filename) - 4, ".pat") ||
45 + !strcmp(filename + strlen(filename) - 4, ".mxt"))
47 x = binbuf_convert(x, 0);
50 void binbuf_evalfile(t_symbol *name, t_symbol *dir)
52 t_binbuf *b = binbuf_new();
53 - int import = !strcmp(name->s_name + strlen(name->s_name) - 4, ".pat");
54 + int import = !strcmp(name->s_name + strlen(name->s_name) - 4, ".pat") ||
55 + !strcmp(name->s_name + strlen(name->s_name) - 4, ".mxt");
56 /* set filename so that new canvases can pick them up */
57 int dspstate = canvas_suspend_dsp();
58 glob_setfilename(0, name, dir);
60 ===================================================================
61 --- g_readwrite.c (revision 10497)
62 +++ g_readwrite.c (working copy)
64 t_canvas *x2 = canvas_getrootfor(x);
65 char *name = x2->gl_name->s_name;
66 if (*name && strncmp(name, "Untitled", 8)
67 - && (strlen(name) < 4 || strcmp(name + strlen(name)-4, ".pat")))
68 + && (strlen(name) < 4 || strcmp(name + strlen(name)-4, ".pat")
69 + || strcmp(name + strlen(name)-4, ".mxt")))
70 canvas_savetofile(x2, x2->gl_name, canvas_getdir(x2));
71 else canvas_menusaveas(x2);
74 ===================================================================
75 --- u_main.tk (revision 10609)
76 +++ u_main.tk (working copy)
78 set directory [string range $filename 0 [expr [string last / $filename] - 1]]
79 set pd_opendir $directory
80 set basename [string range $filename [expr [string last / $filename] + 1] end]
81 - if {[string last .pd $filename] >= 0} {
82 + if {[regexp -nocase -- "\.(pd|pat|mxt)$" $filename]} {
83 pd "pd open [pdtk_enquote $basename] [pdtk_enquote $directory] ;"