mirror of
https://github.com/rvtr/TwlIPL.git
synced 2025-10-31 06:01:12 -04:00
フォントの各種データ、無線ファームの各種データを追加。 各バイナリに対してゲームコードの設定を行った。 実行ファイルの種類を更に細分化し、Makefileを条件指定ファイルから自動生成するように修正。 ユーザデータの破壊、リセットに確認を追加。 NANDアプリにはそれぞれ新規バナーを割り当てた。 ハッシュデータの照合において、結果がIncorrectだった場合は文字色を赤で表記するようにした。 git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@2083 b08762b0-b915-fc4b-9d8c-17b2551a87ff
54 lines
977 B
Ruby
Executable File
54 lines
977 B
Ruby
Executable File
fHead = open("makeHeader.txt")
|
|
fFoot = open("makeFooter.txt")
|
|
contentHead = fHead.read
|
|
contentFoot = fFoot.read
|
|
fHead.close
|
|
fFoot.close
|
|
|
|
fCond = open("makeConditions.txt")
|
|
numArg = 0
|
|
|
|
argList = Array.new
|
|
fCond.gets.split(/\s+/).each do |arg|
|
|
numArg += 1
|
|
argList.push arg
|
|
end
|
|
|
|
puts "argList"
|
|
puts argList
|
|
|
|
|
|
fileIdx = 0
|
|
|
|
while l = fCond.gets
|
|
next if l[0] == '#'
|
|
argIdx = 0
|
|
|
|
puts "file making: Makefile." + fileIdx.to_s
|
|
f = open("Makefile." + fileIdx.to_s, "w")
|
|
f.puts contentHead
|
|
|
|
l.split(/\t+/).each do |value|
|
|
strVal = "TRUE" if value == "1"
|
|
strVal = "FALSE" if value == "0"
|
|
strVal = "DONTCARE" if value == "D"
|
|
|
|
if argList[argIdx] == "GAMECODE" || argList[argIdx] == "FILE_IDX"
|
|
argSet = argList[argIdx] + "\t=\t"
|
|
argSet += value
|
|
else
|
|
argSet = argList[argIdx].to_s + "\t=\t"
|
|
argSet += strVal
|
|
end
|
|
|
|
f.puts argSet
|
|
|
|
argIdx += 1
|
|
end
|
|
|
|
f.puts contentFoot
|
|
f.close
|
|
fileIdx += 1
|
|
end
|
|
|
|
fCond.close |