These pages are written by only Japanese.
|
Namazu for hns による簡易全文検索です。 詳細は 詳細指定/ヘルプをご参照下さい。 |
|||||||||||||||||||||||||||||||||||||||||||||||||
% php YSwf.php ~/flash/ffxi2.swf head_length=21 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef 0x00000000 46 57 53 04 ae 5b 05 00 78 00 05 00 00 00 0e ec FWS [ x 0x00000010 00 4c 00 14 00 L tag=777 length=5 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef 0x00000010 43 c2 72 66 78 C rfx tag=9(SetBackgroundColor) length=5 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef 0x00000010 43 02 00 00 00 C tag=21(DefineBitsJPEG2) length=27125 id=1 checksum=308096141 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef 0x00000010 7f 0x00000020 05 ef 69 00 00 01 00 ff d8 ff db 00 43 00 0d 09 i C 0x00000030 0a 0b 0a 08 0d 0b 0a 0b 0e 0e 0d 0f 13 20 15 13 0x00000040 12 12 13 27 1c 1e 17 20 2e 29 31 30 2e 29 2d 2c ' .)10.)-, 0x00000050 33 3a 4a 3e 33 36 46 37 2c 2d 40 57 41 46 4c 4e 3:J>36F7,-@WAFLN 0x00000060 52 53 52 32 3e 5a 61 5a 50 60 4a 51 52 4f ff db RSR2>ZaZP`JQRO
ウィンドウが画面の端に移動されたときに自動的に整列されないようにしますを on にすれば OK
日常操作していて、もっともわずらわしい機能が、 勝手に、ウインドウの最大化される機能である。まったくです。。。
php swfstrip.php -f <swf_file>どの id がどう集約されるかは、
php swfstrip.php -f <swf_file> -dとすると、id map が表示されます。
% wget http://diary.awm.jp/~yoya/data/2010/07/28/YSwf.tar.gz % tar xvfz YSwf.tar.gz % cd YSwf % php swfdump.php -f ~/flash/ffxi2.swf head_length=21 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef 0x00000000 46 57 53 04 ae 5b 05 00 78 00 05 00 00 00 0e ec FWS [ x 0x00000010 00 4c 00 14 00 L tag=777 length=5 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef 0x00000010 43 c2 72 66 78 C rfx <略>今日も16進眺めてて不具合見つけた。16進は嘘付かない。
% mkdir phpopengl % cd phpopengl % cvs -d:pserver:anonymous@phpopengl.cvs.sourceforge.net:/cvsroot/phpopengl login % cvs -z3 -d:pserver:anonymous@phpopengl.cvs.sourceforge.net:/cvsroot/phpopengl co -P . % cd php_opengl % (cd opengl ; phpize ; ./configure ; make ) # ☆ これで失敗する ☆ % (cd gult ; phpize ; ./configure ; make )
/home/yoya/cvs/phpopengl/php_opengl/opengl/php_opengl.c:5779: error: 'GL_COLOR_TABLE_GREEN_SIZE_EXT' undeclared (first use in this function)どうやら、これらの ..._EXT は ..._SGI と同じ値っぽい。 #define ..._EXT ..._SGI を片っ端からかけて解決。
/home/yoya/cvs/phpopengl/php_opengl/opengl/php_opengl.c:56: error: 'BYREF_FORCE' undeclared here (not in a function) /home/yoya/cvs/phpopengl/php_opengl/opengl/php_opengl.c:59: error: 'BYREF_NONE' undeclared here (not in a function)BYREF_... は PHP4 extension の引数定義に使うもので、 PHP5 では ZEND_BEGIN_ARG_INFO を使うらしい。
% grep BYREF_ ~/src/php/php-4.0.0/*/*.h /home/yoya/src/php/php-4.0.0/Zend/zend.h:#define BYREF_NONE 0 /home/yoya/src/php/php-4.0.0/Zend/zend.h:#define BYREF_FORCE 1 /home/yoya/src/php/php-4.0.0/Zend/zend.h:#define BYREF_ALLOW 2 /home/yoya/src/php/php-4.0.0/Zend/zend.h:#define BYREF_FORCE_REST 3とりあえず、全部 NULL に define する。
/* {{{ arginfo */ #ifdef ZEND_ENGINE_2 #define force_ref_first_arg NULL #define force_ref_second_arg NULL #define force_ref_third_arg NULL #define force_ref_fourth_arg NULL #define force_ref_ninth_arg NULL #else (BYREF_ 何とかしてる場所) #endif /* }}} */
% mkdir phpopengl % cd phpopengl % git init (オリジナルの php_opengl samples をコピーしてくる) % git add php_opengl samples % git commit -m 'copy from phpopengl.cvs.sourceforge.net:/cvsroot/phpopengl' % git remote add origin git@github.com:yoya/phpopengl.git % git push origin master改造分を反映(commit & push)
% emacs php_opengl.h (編集) % emacs php_opengl.c (編集) % git commit -a (vi 画面が開くので上の方にコメントを追記) % git push origin master