浏览代码

[flash] add __global__ access to swc dependencies catalog

Dan Korostelev 6 年之前
父节点
当前提交
09a0770f0e
共有 1 个文件被更改,包括 3 次插入0 次删除
  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 =