• R/O
  • SSH
  • HTTPS

asc3to2: Commit


Commit MetaInfo

Revision2 (tree)
Zeit2008-02-04 18:26:43
Autoromoikane

Log Message

Open swf and abc file in binary mode.

Ändern Zusammenfassung

Diff

--- AsConverter.rb (revision 1)
+++ AsConverter.rb (revision 2)
@@ -159,7 +159,7 @@
159159 # 外部SWFファイルを読み込んでインスタンス変数にバイト列を格納する
160160 # Param:: 読み込むファイル名
161161 def readSwfFile(filename)
162- org = open(filename).read
162+ org = open(filename, "rb").read
163163 swf = org.unpack("B*").to_s
164164 h = 0
165165 # ヘッダ部
@@ -215,7 +215,7 @@
215215 # 外部ABCファイルを読み込んでインスタンス変数にバイト列を格納する
216216 # Param:: 読み込むファイル名
217217 def readAbcFile(filename)
218- @abc = open(filename).read.unpack("B*").to_s
218+ @abc = open(filename, "rb").read.unpack("B*").to_s
219219 end
220220
221221 # getNextBit
Show on old repository browser