Subversion Repositories spk

Rev

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

Rev 82 Rev 118
Line 147... Line 147...
147
			this->CockpitWeapons->ItemCheck += gcnew ItemCheckEventHandler(this, &Form1::Event_Changed);
147
			this->CockpitWeapons->ItemCheck += gcnew ItemCheckEventHandler(this, &Form1::Event_Changed);
148
 
148
 
149
			// read data file
149
			// read data file
150
			System::String ^mydoc = Environment::GetFolderPath(Environment::SpecialFolder::Personal );
150
			System::String ^mydoc = Environment::GetFolderPath(Environment::SpecialFolder::Personal );
151
			CFileIO Config;
151
			CFileIO Config;
152
			if ( Config.Open(CyStringFromSystemString(mydoc) + "/Egosoft/xspconvert.dat") )
152
			if ( Config.open(_S(mydoc) + "/Egosoft/xspconvert.dat") )
153
			{
153
			{
154
				std::vector<CyString> *lines = Config.ReadLines();
154
				std::vector<CyString> *lines = Config.ReadLines();
155
				if ( lines )
155
				if ( lines )
156
				{
156
				{
157
					for ( int i = 0; i < (int)lines->size(); i++ )
157
					for ( int i = 0; i < (int)lines->size(); i++ )