[lua]
-----------------------------------
-- キャッシュ登録
-----------------------------------

-- 画像を起動時に読んで、高速化
function cacheLoad(e)
	local datapath = e:var("os_name_path")
	local path = ""

	-- メッセージウインドウ
	path = datapath .. "image/gui/mw/"
	e:bindSurface(path .. "mw")
	e:bindSurface(path .. "mw_adv")
	e:bindSurface(path .. "mw_adv_flame")
	e:bindSurface(path .. "mw_adv_name")
	e:bindSurface(path .. "mw_adv_name_flame")

	-- グリフ
	path = datapath .. "image/gui/glyph/"
	for i = 0, 90 do
		e:bindSurface(path .. "glyph_" .. i)
	end

	-- システムボタン
	path = datapath .. "image/gui/systembtn/"
	e:bindSurface(path .. "sysbtn_auto_0")
	e:bindSurface(path .. "sysbtn_auto_1")
	e:bindSurface(path .. "sysbtn_back_0")
	e:bindSurface(path .. "sysbtn_back_1")
	e:bindSurface(path .. "sysbtn_config_0")
	e:bindSurface(path .. "sysbtn_config_1")
	e:bindSurface(path .. "sysbtn_load_0")
	e:bindSurface(path .. "sysbtn_load_1")
	e:bindSurface(path .. "sysbtn_log_0")
	e:bindSurface(path .. "sysbtn_log_1")
	e:bindSurface(path .. "sysbtn_menu_0")
	e:bindSurface(path .. "sysbtn_menu_1")
	e:bindSurface(path .. "sysbtn_qload_0")
	e:bindSurface(path .. "sysbtn_qload_1")
	e:bindSurface(path .. "sysbtn_replayvoice_0")
	e:bindSurface(path .. "sysbtn_replayvoice_1")
	e:bindSurface(path .. "sysbtn_save_0")
	e:bindSurface(path .. "sysbtn_save_1")
	e:bindSurface(path .. "sysbtn_skip_0")
	e:bindSurface(path .. "sysbtn_skip_1")
	e:bindSurface(path .. "sysbtn_vload_0")
	e:bindSurface(path .. "sysbtn_vload_1")
	e:bindSurface(path .. "sysbtn_vsave_0")
	e:bindSurface(path .. "sysbtn_vsave_1")


end
[/lua]
[if estimate = "$t.cacheload == 0"]
	[var name = "t.cacheload" data = "1"]
	[calllua function = "cacheLoad"]
[/if]
[return]

