Browse Source

[flash] add __global__ access to swc dependencies catalog

Dan Korostelev 6 years ago
parent
commit
09a0770f0e
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/generators/genswf.ml

+ 3 - 0
src/generators/genswf.ml

@@ -116,6 +116,9 @@ let build_dependencies t =
 				| None -> ()
 				| Some e -> add_expr e
 			end
+		| TArray ({ eexpr = TIdent "__global__" },{ eexpr = TConst (TString s) }) ->
+			let path = parse_path s in
+			add_path path DKExpr;
 		| _ ->
 			Type.iter add_expr e
 	and add_field f =