From: qwerty2501 Date: Thu, 9 Feb 2012 22:00:34 +0000 (+0900) Subject: プロパティ保存フォルダ決定方法修正 X-Git-Tag: v0.002~2^2~9 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=5ad0f5644e411f320913c80896b7900262a2f130;p=nlite%2Fnlite.git プロパティ保存フォルダ決定方法修正 --- diff --git a/nlite.suo b/nlite.suo index 167ec28..912e188 100644 Binary files a/nlite.suo and b/nlite.suo differ diff --git a/nlite/nlite_property.cpp b/nlite/nlite_property.cpp index ae7a190..9edb220 100644 --- a/nlite/nlite_property.cpp +++ b/nlite/nlite_property.cpp @@ -213,19 +213,21 @@ namespace nlite{ if((_tcslen(propertyBuf) == 0) || !((PathFileExists(propertyBuf) && !::PathIsDirectory( propertyBuf )))){ propertyFolderPath = appLocalPath; - propertyFolderPath += TEXT("\\qwerty_nico\\nlite"); + propertyFolderPath += TEXT("\\qwerty_nico"); ::WritePrivateProfileString(sectionName,keyName,propertyFolderPath,iniFile); + } else { propertyFolderPath = propertyBuf; } - - propertyPath = propertyFolderPath; + propertySaveFolderPath = propertyFolderPath; + propertySaveFolderPath += TEXT("\\nlite"); + propertyPath = propertySaveFolderPath; propertyPath += TEXT("\\property.xml"); - userSettingPath = propertyFolderPath; + userSettingPath = propertySaveFolderPath; userSettingPath += TEXT("\\user_setting.xml"); - SurelyCreate(propertyFolderPath,FALSE); + SurelyCreate(propertySaveFolderPath,FALSE); SurelyCreate(propertyPath,TRUE); SurelyCreate(userSettingPath,TRUE); diff --git a/nlite/nlite_property.h b/nlite/nlite_property.h index e83832e..4bc12ee 100644 --- a/nlite/nlite_property.h +++ b/nlite/nlite_property.h @@ -128,6 +128,7 @@ namespace nlite{ CommentReadProperty crp; //ƒRƒƒ“ƒg“ǂݏグƒvƒƒpƒeƒB CNLiteString appLocalPath; //ƒ[ƒJƒ‹ƒtƒHƒ‹ƒ_ƒpƒX CNLiteString propertyFolderPath; //ƒvƒƒpƒeƒB”z’uƒtƒHƒ‹ƒ_ + CNLiteString propertySaveFolderPath; //ƒvƒƒpƒeƒBƒtƒHƒ‹ƒ_ CNLiteString propertyPath; //ƒvƒƒpƒeƒBƒtƒ@ƒCƒ‹ƒpƒX CNLiteString userSettingPath; //ƒŠƒXƒi[î•ñÝ’èƒtƒ@ƒCƒ‹ƒpƒX Property();