Subversion Repositories spk

Rev

Rev 118 | Rev 126 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 118 Rev 123
Line 1138... Line 1138...
1138
		}
1138
		}
1139
 
1139
 
1140
		void SaveData()
1140
		void SaveData()
1141
		{
1141
		{
1142
			System::String ^mydoc = Environment::GetFolderPath(Environment::SpecialFolder::Personal );
1142
			System::String ^mydoc = Environment::GetFolderPath(Environment::SpecialFolder::Personal );
1143
			CFileIO Config(CyStringFromSystemString(mydoc) + "/Egosoft/creator.dat");
1143
			CFileIO Config(_S(mydoc) + "/Egosoft/creator.dat");
1144
			CyStringList lines;
1144
			Utils::CStringList lines;
1145
 
1145
 
1146
			if ( this->WindowState == FormWindowState::Normal )
1146
			if ( this->WindowState == FormWindowState::Normal )
1147
			{
1147
			{
1148
				lines.PushBack(CyString("CreatorSize:") + (long)this->Size.Width + " " + (long)this->Size.Height);
1148
				lines.pushBack(Utils::String("CreatorSize:") + (long)this->Size.Width + " " + (long)this->Size.Height);
1149
				lines.PushBack(CyString("CreatorPos:") + (long)this->Location.X + " " + (long)this->Location.Y);
1149
				lines.pushBack(Utils::String("CreatorPos:") + (long)this->Location.X + " " + (long)this->Location.Y);
1150
			}
1150
			}
1151
			else
1151
			else
1152
			{
1152
			{
1153
				lines.PushBack(CyString("CreatorPos:") + (long)this->RestoreBounds.Location.X + " " + (long)this->RestoreBounds.Location.Y);
1153
				lines.pushBack(Utils::String("CreatorPos:") + (long)this->RestoreBounds.Location.X + " " + (long)this->RestoreBounds.Location.Y);
1154
				lines.PushBack(CyString("CreatorSize:") + (long)this->RestoreBounds.Size.Width + " " + (long)this->RestoreBounds.Size.Height);
1154
				lines.pushBack(Utils::String("CreatorSize:") + (long)this->RestoreBounds.Size.Width + " " + (long)this->RestoreBounds.Size.Height);
1155
			}
1155
			}
1156
 
1156
 
1157
			if ( this->WindowState == FormWindowState::Maximized )
1157
			if ( this->WindowState == FormWindowState::Maximized )
1158
				lines.PushBack("CreatorMax:");
1158
				lines.pushBack("CreatorMax:");
1159
 
1159
 
1160
			for ( SStringList *str = m_pLoadedList->Head(); str; str = str->next )
1160
			for ( SStringList *str = m_pLoadedList->Head(); str; str = str->next )
1161
				lines.PushBack(CyString("Loaded:") + str->data + "; " + str->str);
1161
				lines.pushBack(Utils::String("Loaded:") + str->data.ToString() + "; " + str->str.ToString());
1162
			_pGameDir->writeData(&lines);
1162
			_pGameDir->writeData(&lines);
1163
			if ( m_settings->bGenerateUpdate )
1163
			if ( m_settings->bGenerateUpdate )
1164
				lines.PushBack("GenerateUpdate:");
1164
				lines.pushBack("GenerateUpdate:");
1165
 
1165
 
1166
			Config.WriteFile(&lines);
1166
			Config.writeFile(&lines);
1167
		}
1167
		}
1168
 
1168
 
1169
		void LoadData()
1169
		void LoadData()
1170
		{
1170
		{
1171
			System::String ^mydoc = Environment::GetFolderPath(Environment::SpecialFolder::Personal );
1171
			System::String ^mydoc = Environment::GetFolderPath(Environment::SpecialFolder::Personal );