OSDN Git Service

プロパティ保存フォルダ決定方法修正
authorqwerty2501 <riot313@gmail.com>
Thu, 9 Feb 2012 22:00:34 +0000 (07:00 +0900)
committerqwerty2501 <riot313@gmail.com>
Thu, 9 Feb 2012 22:00:34 +0000 (07:00 +0900)
nlite.suo
nlite/nlite_property.cpp
nlite/nlite_property.h

index 167ec28..912e188 100644 (file)
Binary files a/nlite.suo and b/nlite.suo differ
index ae7a190..9edb220 100644 (file)
@@ -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);
                
index e83832e..4bc12ee 100644 (file)
@@ -128,6 +128,7 @@ namespace nlite{
                CommentReadProperty crp;                                        //\83R\83\81\83\93\83g\93Ç\82Ý\8fã\82°\83v\83\8d\83p\83e\83B
                CNLiteString appLocalPath;                                      //\83\8d\81[\83J\83\8b\83t\83H\83\8b\83_\83p\83X
                CNLiteString propertyFolderPath;                        //\83v\83\8d\83p\83e\83B\94z\92u\83t\83H\83\8b\83_
+               CNLiteString propertySaveFolderPath;            //\83v\83\8d\83p\83e\83B\83t\83H\83\8b\83_
                CNLiteString propertyPath;                                      //\83v\83\8d\83p\83e\83B\83t\83@\83C\83\8b\83p\83X
                CNLiteString userSettingPath;                           //\83\8a\83X\83i\81[\8fî\95ñ\90Ý\92è\83t\83@\83C\83\8b\83p\83X
                Property();