@@ -523,6 +523,17 @@ bool MCDeployWriteCapsule(const MCDeployParameters& p_params, MCDeployFileRef p_
523523 /* UNCHECKED */ MCArrayFetchValueAtIndex (p_params.redirects , i + 1 , t_val);
524524 t_success = MCDeployCapsuleDefineString (t_capsule, kMCCapsuleSectionTypeRedirect , (MCStringRef)t_val);
525525 }
526+
527+ // //////
528+
529+ // AL-2015-02-10: [[ Standalone Inclusions ]] Add the resource mappings, if any.
530+ if (t_success)
531+ for (uindex_t i = 0 ; i < MCArrayGetCount (p_params.library ) && t_success; i++)
532+ {
533+ MCValueRef t_val;
534+ /* UNCHECKED */ MCArrayFetchValueAtIndex (p_params.library , i + 1 , t_val);
535+ t_success = MCDeployCapsuleDefineString (t_capsule, kMCCapsuleSectionTypeLibrary , (MCStringRef)t_val);
536+ }
526537
527538 // //////
528539
@@ -572,16 +583,7 @@ bool MCDeployWriteCapsule(const MCDeployParameters& p_params, MCDeployFileRef p_
572583 if (t_success)
573584 t_success = MCDeployCapsuleDefineFromStackFile (t_capsule, (MCStringRef)t_val, t_aux_stackfiles[i], false );
574585 }
575-
576- // AL-2015-02-10: [[ Standalone Inclusions ]] Add the resource mappings, if any.
577- if (t_success)
578- for (uindex_t i = 0 ; i < MCArrayGetCount (p_params.library ) && t_success; i++)
579- {
580- MCValueRef t_val;
581- /* UNCHECKED */ MCArrayFetchValueAtIndex (p_params.library , i + 1 , t_val);
582- t_success = MCDeployCapsuleDefineString (t_capsule, kMCCapsuleSectionTypeLibrary , (MCStringRef)t_val);
583- }
584-
586+
585587 // Now add the externals, if any
586588 if (t_success)
587589 for (uindex_t i = 0 ; i < MCArrayGetCount (p_params.externals ) && t_success; i++)
0 commit comments