すぐに忘れるのでメモ
管理者権限でコマンドプロンプト実行
ディレクトリーをリンクする場合
mklink /D [リンク先] [リンク元]
mklink /D C:\link C:\directory
Gitとかでも認識するようにするにはジャンクションにする。
mklink /j [リンク先] [リンク元]
mklink /j C:\link C:\directory
すぐに忘れるのでメモ
管理者権限でコマンドプロンプト実行
mklink /D [リンク先] [リンク元]
mklink /D C:\link C:\directory
mklink /j [リンク先] [リンク元]
mklink /j C:\link C:\directory
# # cocos2d-x-3.13.1 # # cocos2d-x/cocos/ui/UIWebViewImpl-ios.mm #include "ui/UIWebViewImpl-ios.h" #include "renderer/CCRenderer.h" #include "base/CCDirector.h" #include "platform/CCGLView.h" #include "platform/ios/CCEAGLView-ios.h" #include "platform/CCFileUtils.h" #include "ui/UIWebView.h" #import// 追記 // 100行目あたり @interface UIWebViewWrapper () //変更 @property(nonatomic, retain) WKWebView *uiWebView; // 変更 // 120行目あたり - (void)dealloc { self.uiWebView.navigationDelegate = nil; // 変更 self.uiWebView.UIDelegate = nil; // 変更 [self.uiWebView removeFromSuperview]; self.uiWebView = nil; self.jsScheme = nil; [super dealloc]; } - (void)setupWebView { if (!self.uiWebView) { self.uiWebView = [[[WKWebView alloc] init] autorelease]; // 変更 self.uiWebView.navigationDelegate = self; // 変更 self.uiWebView.UIDelegate = self; // 変更 [self.uiWebView setOpaque:NO]; [self.uiWebView setBackgroundColor:[UIColor clearColor]]; } if (!self.uiWebView.superview) { auto view = cocos2d::Director::getInstance()->getOpenGLView(); auto eaglview = (CCEAGLView *) view->getEAGLView(); [eaglview addSubview:self.uiWebView]; } } // 220行目あたり - (void)evaluateJS:(const std::string &)js { if (!self.uiWebView) {[self setupWebView];} // [self.uiWebView stringByEvaluatingJavaScriptFromString:@(js.c_str())]; // コメントアウト // 以下を追記 コールバックは省略 [self.uiWebView evaluateJavaScript:@(js.c_str()) completionHandler:^(NSString *result, NSError *error){ NSLog(@"Error %@", error); NSLog(@"Result %@", result); }]; } - (void)setScalesPageToFit:(const bool)scalesPageToFit { if (!self.uiWebView) {[self setupWebView];} // self.uiWebView.scalesPageToFit = scalesPageToFit; // WKWebViewでは使わなさそうなのでとりあえずコメントアウト }
--
-- try-catch関数
--
function try_catch(what)
local status, result = pcall(what.try)
if not status then
what.catch(result)
end
return result
end
--
-- 使い方
--
try_catch{
try=function()
-- 何か実行する
end,
catch=function(error)
print("caught error " .. error)
end
}