mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-28 00:49:28 -05:00
Close tracker id 2994519 by applying patch, looks clean to me.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2870 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
4a410fbfb6
commit
f2f7a3b77d
@ -42,7 +42,9 @@ class RsInit
|
|||||||
|
|
||||||
/* PreLogin */
|
/* PreLogin */
|
||||||
static void InitRsConfig() ;
|
static void InitRsConfig() ;
|
||||||
static int InitRetroShare(int argc, char **argv);
|
static int InitRetroShare(int argc, char **argv,
|
||||||
|
bool strictCheck=true);
|
||||||
|
|
||||||
static char dirSeperator();
|
static char dirSeperator();
|
||||||
static bool isPortable();
|
static bool isPortable();
|
||||||
|
|
||||||
|
@ -251,7 +251,7 @@ void RsInit::InitRsConfig()
|
|||||||
|
|
||||||
/******************************** WINDOWS/UNIX SPECIFIC PART ******************/
|
/******************************** WINDOWS/UNIX SPECIFIC PART ******************/
|
||||||
#ifndef WINDOWS_SYS
|
#ifndef WINDOWS_SYS
|
||||||
int RsInit::InitRetroShare(int argc, char **argv)
|
int RsInit::InitRetroShare(int argc, char **argv, bool strictCheck)
|
||||||
{
|
{
|
||||||
/******************************** WINDOWS/UNIX SPECIFIC PART ******************/
|
/******************************** WINDOWS/UNIX SPECIFIC PART ******************/
|
||||||
#else
|
#else
|
||||||
@ -262,7 +262,7 @@ int RsInit::InitRetroShare(int argc, char **argv)
|
|||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int RsInit::InitRetroShare(int argcIgnored, char **argvIgnored)
|
int RsInit::InitRetroShare(int argcIgnored, char **argvIgnored, bool strictCheck)
|
||||||
{
|
{
|
||||||
|
|
||||||
/* THIS IS A HACK TO ALLOW WINDOWS TO ACCEPT COMMANDLINE ARGUMENTS */
|
/* THIS IS A HACK TO ALLOW WINDOWS TO ACCEPT COMMANDLINE ARGUMENTS */
|
||||||
@ -404,11 +404,13 @@ int RsInit::InitRetroShare(int argcIgnored, char **argvIgnored)
|
|||||||
exit(1);
|
exit(1);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
if (strictCheck) {
|
||||||
std::cerr << "Unknown Option!" << std::endl;
|
std::cerr << "Unknown Option!" << std::endl;
|
||||||
std::cerr << "Use '-h' for help." << std::endl;
|
std::cerr << "Use '-h' for help." << std::endl;
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// set the default Debug Level...
|
// set the default Debug Level...
|
||||||
|
Loading…
Reference in New Issue
Block a user