We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a260e0f commit a468620Copy full SHA for a468620
Documentation/Porting.md
@@ -140,8 +140,13 @@ to load that information:
140
+ UseResFile(refNum);
141
+ Handle handle = Get1NamedResource('swft', "\p__swift5_types");
142
+ if (handle && *handle) {
143
-+ size_t size = GetHandleSize(handle);
144
-+ body(*handle, size);
++ auto imageAddress = reinterpret_cast<const void *>(static_cast<uintptr_t>(refNum));
++ SWTSectionBounds sb = { imageAddress, *handle, GetHandleSize(handle) };
145
++ bool stop = false;
146
++ body(sb, &stop);
147
++ if (stop) {
148
++ break;
149
++ }
150
+ }
151
+ } while (noErr == GetNextResourceFile(refNum, &refNum));
152
+ UseResFile(oldRefNum);
0 commit comments