/// <summary> /// 指定した名前のバンドルの,Wineのインストールディレクトリを取得します /// </summary> private string getBuiltinWineTop(string bundle_name) { string appstart = PortUtil.getApplicationStartupPath(); // Wine.bundleの場所は../Wine.bundleまたは./Wine.bundleのどちらか // まず../Wine.bundleがあるかどうかチェック string parent = PortUtil.getDirectoryName(appstart); string ret = Path.Combine(parent, bundle_name); if (!Directory.Exists(ret)) { // ../Wine.bundleが無い場合 ret = Path.Combine(appstart, bundle_name); } ret = Path.Combine(ret, "Contents"); ret = Path.Combine(ret, "SharedSupport"); return(ret); }