🏠 ホーム 🔧 自作ツール 🗃️ アーカイブ 📓 日常のブログ 🍜 飯のブログ 📚 勉強のブログ 🗂️ その他のブログ
👃 WWave's Code - NoseScape

てんともち / WWave Public

SettingLoader.hsp 824 Bytes
sdim buffers
notesel buffers
exist "settings.ini"
if strsize=-1 : dialog "設定ファイルが見つかりません。",1 : end
noteload "settings.ini"

#module
	#defcfunc Readini int p1, str p2
		sdim tmp
		if p1>notemax-1  : dialog "設定ファイルが無効です。",1 : end
		noteget tmp,p1
		split tmp,"=",tmp
		if length(tmp)=1 : dialog "設定ファイルが無効です。",1 : end
		if tmp(0)!=p2    : dialog "設定ファイルが無効です。",1 : end
		sdim res
		res=tmp(1)
		repeat length(tmp)-2
			res+="="+tmp(cnt+2)
		loop
	return res
#global

//mainのターゲットチェック
if Readini(1,"target")!=AppNameInternal   : dialog "設定ファイルが無効です。",1 : end

//graphic
Var_DPIMode            = int(Readini(4,"DPIMode"))
Var_isForceTop         = int(Readini(5,"isForceTop"))
Var_ViewScale          = 1.0*Readini(6,"ViewScale")