Subversion Repositories spk

Rev

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

Rev 52 Rev 55
Line 93... Line 93...
93
			{
93
			{
94
				int zero = 0;
94
				int zero = 0;
95
				RegistryKey ^searchKey = Registry::CurrentUser->CreateSubKey("Software\\Egosoft\\PluginManagerSettings");
95
				RegistryKey ^searchKey = Registry::CurrentUser->CreateSubKey("Software\\Egosoft\\PluginManagerSettings");
96
				if ( searchKey )
96
				if ( searchKey )
97
					searchKey->SetValue("DontAutoResume", zero);
97
					searchKey->SetValue("DontAutoResume", zero);
-
 
98
			}
-
 
99
			else if ( argSwitch == "--debug" ) {
-
 
100
				CFileLog *log = dynamic_cast<CFileLog *>(CFileLog::create());
-
 
101
				log->setFile(_S(mydoc) + "/Egosoft/pluginmanager.log");
-
 
102
				log->setFilter(CLog::Log_Install | CLog::Log_Uninstall | CLog::Log_IO);
-
 
103
				log->setLevel(rest.ToInt());
98
			}
104
			}
99
		}
105
		}
100
		// otherwise it must be a file to open
106
		// otherwise it must be a file to open
101
		else
107
		else
102
			openPackage = SystemStringFromCyString(arg);
108
			openPackage = SystemStringFromCyString(arg);
Line 172... Line 178...
172
 
178
 
173
	// Create the main window and run it
179
	// Create the main window and run it
174
	MainGui ^gui = gcnew MainGui(&packages, &dirList, &remDirList, Advanced);
180
	MainGui ^gui = gcnew MainGui(&packages, &dirList, &remDirList, Advanced);
175
	gui->AddGameArgs(gameArgs);
181
	gui->AddGameArgs(gameArgs);
176
 
182
 
177
	CFileLog *log = dynamic_cast<CFileLog *>(CFileLog::create());
-
 
178
	log->setFile(_S(mydoc) + "/Egosoft/pluginmanager.log");
-
 
179
	log->setFilter(CLog::Log_Install | CLog::Log_Uninstall | CLog::Log_IO);
-
 
180
	log->setLevel(4);
-
 
181
 
183
 
182
	// load in the config file
184
	// load in the config file
183
	CFileIO configFile(CyStringFromSystemString(mydoc) + "/Egosoft/pluginmanager.dat");
185
	CFileIO configFile(CyStringFromSystemString(mydoc) + "/Egosoft/pluginmanager.dat");
184
	bool anyDirs = false;
186
	bool anyDirs = false;
185
	if ( configFile.exists() )
187
	if ( configFile.exists() )