Consider return value of the fread(3).
Check return value of fread() and fgets(), this also fixes some
potentially unallocated memory.
Check return value of fread() and fgets(), this also fixes some potentially unallocated memory.
o Fix replay mode, maininit() needs to be called before we can
out something out on the screen;

o rework argument parsing to avoid lot of duplicated code and make
it easier to manage.
Limit /X option to unix&sdl.