private static string TryGetVersionFileV3_js(Solution sln) { string str = Path.Combine((string)sln.BaseDirectory, "frameworks", "js-bindings", "cocos2d-x", "cocos", "cocos2d.cpp"); if (File.Exists(str)) { return(CocosInfo.GetVersionText(str)); } return(string.Empty); }
private static bool TryCreateCodeInfoV3_JS(string path, out CocosInfo codeInfo) { string str = Path.Combine(path, "frameworks", "js-bindings", "cocos2d-x", "cocos", "cocos2d.cpp"); if (File.Exists(str)) { codeInfo = new CocosInfo() { RootPath = path, MainVersion = 3, EnableCpp = false, EnableLua = false, EnableJs = true, VersionText = CocosInfo.GetVersionText(str) }; return(true); } codeInfo = (CocosInfo)null; return(false); }