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

てんともち / LychiBrowser Public

SettingLoader.hsp 1,135 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")

//search
Var_Language_Location  = Readini(9,"Language_Location")
Var_IsEnableSafeSearch = Readini(10,"IsEnableSafeSearch")

//rss
Var_isShowURLinList    = int(Readini(13,"isShowURLinList"))
Var_NewsURL            = Readini(14,"NewsURL")

//url
Var_MDRenderWebSite    = Readini(17,"MDRenderWebsite")