Re: [Freeciv-Dev] Running with Xaw (PR#20)
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Hello,
> Probably some kind of return value might be checked
> and an error msg printed.
>
> XtGetApplicationResources(toplevel, &appResources, resources,
> XtNumber(resources), NULL, 0);
>
> loglevel = log_parse_level_str(appResources.loglevel_str);
> if (loglevel==-1) {
> exit(1);
To be perfect, you can put a freelog(LOG_FATAL,"The ressource file
isn't the expected one.\nPlease rebuild Freeciv with an uptodate ressource
file.\n");
I assume loglevel==-1 if and only if the ressource file is incorrect.
If I'm wrong, the message in freelog has to be changed.
Best regards,
|
|