Commits
Ryan Schmidt authored f0520ee8fa4
1 1 | Backport the effects of the "-svd 0" configuration flag introduced in |
2 - | 36.00alpha20180520. |
2 + | 36.00alpha20180520 and fix a bug that prevented it from being able to |
3 + | create the "out" directory on 10.6 and earlier. |
4 + | https://gist.github.com/ryandesign/a7fdea794e1b84a01f15536fabe7f9ff |
3 5 | --- src/CNFGRAPI.h.orig 2018-06-18 10:41:10.000000000 -0500 |
4 6 | +++ src/CNFGRAPI.h 2018-06-18 15:48:56.000000000 -0500 |
5 7 | |
6 8 | |
7 9 | #define RomFileName "vMac.ROM" |
8 10 | #define EnableDragDrop 1 |
9 11 | +#define SaveDialogEnable 0 |
10 12 | #define EnableAltKeysMode 0 |
11 13 | #define SwapCommandControl 0 |
12 14 | #define VarFullScreen 0 |
36 38 | + NSString *RslvPath = MyResolveAlias(r, &isDirectory); |
37 39 | + if (nil != RslvPath) { |
38 40 | + if (isDirectory) { |
39 41 | + *childPath = RslvPath; |
40 42 | + v = trueblnr; |
41 43 | + } |
42 44 | + } |
43 45 | + } |
44 46 | + } else { |
45 47 | + if ([fm respondsToSelector:@selector( |
46 - | +createDirectoryAtURL:withIntermediateDirectories:attributes:error: |
48 + | +createDirectoryAtPath:withIntermediateDirectories:attributes:error: |
47 49 | + )]) |
48 50 | + { |
49 51 | + if ([fm |
50 52 | + createDirectoryAtPath:r |
51 53 | + withIntermediateDirectories:NO |
52 54 | + attributes:nil |
53 55 | + error:nil]) |
54 56 | + { |
55 57 | + *childPath = r; |
56 58 | + v = trueblnr; |
57 59 | + } |
58 60 | + } else |
59 61 | + if ([fm respondsToSelector: |
60 - | + @selector(createDirectoryAtURL:attributes:)]) |
62 + | + @selector(createDirectoryAtPath:attributes:)]) |
61 63 | + { |
62 64 | + if ([fm |
63 65 | + createDirectoryAtPath:r |
64 66 | + attributes:nil]) |
65 67 | + { |
66 68 | + *childPath = r; |
67 69 | + v = trueblnr; |
68 70 | + } |
69 71 | + } else |
70 72 | + { |