Subversion Repositories spk

Rev

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

Rev 107 Rev 109
Line 40... Line 40...
40
	// parse any switches
40
	// parse any switches
41
	this->parseCommandArguments(args);
41
	this->parseCommandArguments(args);
42
 
42
 
43
	if ( _pGameDir->isEmpty() )
43
	if ( _pGameDir->isEmpty() )
44
		_pGameDir->syncWithControlled(m_pPackages->GetGameExe());
44
		_pGameDir->syncWithControlled(m_pPackages->GetGameExe());
-
 
45
}
-
 
46
 
-
 
47
bool Form1::CheckCommandArguments(array<System::String ^> ^args)
-
 
48
{
-
 
49
	for ( int i = 0; i < args->Length; i++ ) {
-
 
50
		String ^str = args[i];
-
 
51
		if ( !String::Compare(str, "--create", true) )
-
 
52
			return true;
-
 
53
		else if ( !String::Compare(str, "--extract", true) )
-
 
54
			return true;
-
 
55
		else if ( !String::Compare(str, "--extracthere", true) )
-
 
56
			return true;
-
 
57
		else if ( !String::Compare(str, "--export", true) )
-
 
58
			return true;
-
 
59
	}
-
 
60
 
-
 
61
	return false;
45
}
62
}
46
 
63
 
47
void Form1::parseCommandArguments(array<System::String ^> ^args)
64
void Form1::parseCommandArguments(array<System::String ^> ^args)
48
{
65
{
49
	int switchType = SWITCH_NONE;
66
	int switchType = SWITCH_NONE;