Skip to content

Instantly share code, notes, and snippets.

View splhack's full-sized avatar

Kazuki Sakamoto splhack

View GitHub Profile
diff --git a/jni/Android.mk b/jni/Android.mk
index d8f7995..eec3115 100644
--- a/jni/Android.mk
+++ b/jni/Android.mk
@@ -6,6 +6,7 @@ LOCAL_MODULE := irrlicht_vuforia
LS_CPP=$(subst $(1)/,,$(wildcard $(1)/*.cpp))
LOCAL_SRC_FILES := $(call LS_CPP,$(LOCAL_PATH))
+LOCAL_CPPFLAGS := -I$(LOCAL_PATH)/../../irrlichtandroid/project/include -Wno-error=format-security
diff --git a/protobuf-2.5.0/src/google/protobuf/stubs/once.cc b/protobuf-2.5.0/src/google/protobuf/stubs/once.cc
index 1e24b85..e9056ac 100644
--- a/protobuf-2.5.0/src/google/protobuf/stubs/once.cc
+++ b/protobuf-2.5.0/src/google/protobuf/stubs/once.cc
@@ -63,7 +63,7 @@ void SchedYield() {
} // namespace
void GoogleOnceInitImpl(ProtobufOnceType* once, Closure* closure) {
- internal::AtomicWord state = internal::Acquire_Load(once);
+ internal::AtomicWord state = internal::Acquire_Load((volatile internal::Atomic32 *)once);
> Flashのパブリッシュターゲットは Flash Player 7 にする
> ビットマッププロパティの圧縮は「劣化なし」にする
> 「劣化なし」でない場合 ERROR: Bitmap is as JPEG. Bitmap should be as 'Loss-less' となる
このへんはPublish for LWF が自動的に調整してくれるのでそれほど気にしなくても大丈夫です。
> ムービークリップの回転はできるがムービークリップ内の画像を回転させるとLWF変換時にエラーとなる
最近swf2lwf.rbが改善されてエラーにならなくなりました。
diff --git a/csharp/unity/wrapper/LWFObject.cs b/csharp/unity/wrapper/LWFObject.cs
index c257411..b02054c 100644
--- a/csharp/unity/wrapper/LWFObject.cs
+++ b/csharp/unity/wrapper/LWFObject.cs
@@ -104,7 +104,8 @@ public class LWFObject : MonoBehaviour
{
isAlive = false;
- lwfDestroyCallbacks.ForEach(c => c(this));
+ foreach (var c in lwfDestroyCallbacks)
@splhack
splhack / 🐱
Created October 24, 2013 01:33 — forked from niw/🐱
🐱
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := dispatch
LOCAL_SRC_FILES := libs/$(TARGET_ARCH_ABI)/libdispatch.so
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include
include $(PREBUILT_SHARED_LIBRARY)
@splhack
splhack / Main.hx
Last active December 19, 2015 22:18
package test;
import js.Browser;
import lwf.LWF;
import lwf.Movie;
import lwf.ResourceCache;
class Main
{
static var mLWF:LWF;
@splhack
splhack / zsh.rb
Created June 4, 2013 20:44
Zsh Homebrew formula with allow-to-input-emoji-in-zsh-5.0.2.patch
require 'formula'
class Zsh < Formula
homepage 'http://www.zsh.org/'
url 'http://www.zsh.org/pub/zsh-5.0.2.tar.bz2'
mirror 'http://sourceforge.net/projects/zsh/files/zsh/5.0.2/zsh-5.0.2.tar.bz2'
sha1 '9f55ecaaae7cdc1495f91237ba2ec087777a4ad9'
depends_on 'gdbm'
depends_on 'pcre'
diff --git a/Src/Zle/zle_refresh.c b/Src/Zle/zle_refresh.c
index 17b78ce..e377ea1 100644
--- a/Src/Zle/zle_refresh.c
+++ b/Src/Zle/zle_refresh.c
@@ -1244,7 +1244,7 @@ zrefresh(void)
#ifdef __STDC_ISO_10646__
!ZSH_INVALID_WCHAR_TEST(*t) &&
#endif
- iswprint(*t) && (width = WCWIDTH(*t)) > 0) {
+ ISWPRINT(*t) && (width = WCWIDTH(*t)) > 0) {
public void ApplyMatrix(GameObject gObj, ref Matrix4x4 m)
{
Transform transform = gObj.transform;
Vector3 v = vector;
v.x = m[0,3];
v.y = m[1,3];
v.z = m[2,3];
transform.localPosition = v;