mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
todos
This commit is contained in:
parent
98d507d0a5
commit
26a1cc5b73
@ -53,7 +53,7 @@ public:
|
||||
private:
|
||||
si64 clock()
|
||||
{
|
||||
#ifdef __FreeBSD__
|
||||
#ifdef __FreeBSD__ // TODO: enable also for Apple?
|
||||
struct rusage usage;
|
||||
getrusage(RUSAGE_SELF, &usage);
|
||||
return static_cast<si64>(usage.ru_utime.tv_sec + usage.ru_stime.tv_sec) * 1000000 + usage.ru_utime.tv_usec + usage.ru_stime.tv_usec;
|
||||
|
@ -916,7 +916,7 @@ int main(int argc, char * argv[])
|
||||
signal(SIGSEGV, handleLinuxSignal);
|
||||
#endif
|
||||
|
||||
// todo ios: double console log
|
||||
// todo ios: double console log in single-process mode. Why removing the lines below breaks connecting to local server?!
|
||||
console = new CConsoleHandler();
|
||||
CBasicLogConfigurator logConfig(VCMIDirs::get().userLogsPath() / "VCMI_Server_log.txt", console);
|
||||
logConfig.configureDefault();
|
||||
@ -927,7 +927,6 @@ int main(int argc, char * argv[])
|
||||
argc = 1;
|
||||
boost::condition_variable * cond = reinterpret_cast<boost::condition_variable *>(argv[1]);
|
||||
cond->notify_one();
|
||||
//#endif
|
||||
#else
|
||||
handleCommandOptions(argc, argv, opts);
|
||||
preinitDLL(console);
|
||||
@ -936,7 +935,6 @@ int main(int argc, char * argv[])
|
||||
|
||||
loadDLLClasses();
|
||||
srand((ui32)time(nullptr));
|
||||
//#ifdef VCMI_IOS
|
||||
#endif
|
||||
try
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user