Rev 369 | Rev 433 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 369 | Rev 371 | ||
---|---|---|---|
Line 23... | Line 23... | ||
23 | #include <string.h> |
23 | #include <string.h> |
24 | #include <stdio.h> |
24 | #include <stdio.h> |
25 | 25 | ||
26 | #include <windows.h> |
26 | #include <windows.h> |
27 | 27 | ||
- | 28 | #include "world.h" |
|
28 | #include "choosefile.h" |
29 | #include "choosefile.h" |
29 | #include "str.h" |
30 | #include "str.h" |
30 | #include "dbg.h" |
31 | #include "dbg.h" |
31 | #include "compat_string.h" |
32 | #include "compat_string.h" |
32 | 33 | ||
- | 34 | ||
- | 35 | Boolean fileHasExtension(StandardFileReply* sfr, const char* extension) { |
|
- | 36 | char name[MAX_PATH + 1]; |
|
- | 37 | return sfr->nFileExtension && !strcasecmp(myp2cstrcpy(name, sfr->sfFile.name) + sfr->nFileExtension - 1, extension); |
|
- | 38 | } |
|
- | 39 | ||
33 | Boolean choosefiletypes(StringPtr prompt,StandardFileReply *sfr,NavReplyRecord *reply, |
40 | Boolean choosefiletypes(StringPtr prompt,StandardFileReply *sfr,NavReplyRecord *reply, |
34 | OSType types[],int ntypes,const char *lpstrFilter,HWND hwndOwner){ |
41 | OSType types[],int ntypes,const char *lpstrFilter,HWND hwndOwner){ |
35 | return choosefile(prompt,sfr,reply,types[0],lpstrFilter,hwndOwner); |
42 | return choosefile(prompt,sfr,reply,types[0],lpstrFilter,hwndOwner); |
36 | } |
43 | } |
37 | 44 |