X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgldbg.cpp;h=d2ca85e6212b76cda3c1828e683e5462e122f9c0;hb=68bbf8f302d01d2ee82dee28b9f64cff3660e234;hp=5a4ad191f65c29a6c760deae5c329657b44b21b0;hpb=c6b2f7585d51164dc32f4dd2a05855913e464c58;p=gldbg.git diff --git a/source/gldbg.cpp b/source/gldbg.cpp index 5a4ad19..d2ca85e 100644 --- a/source/gldbg.cpp +++ b/source/gldbg.cpp @@ -26,6 +26,7 @@ Application::RegApp GlDbg::reg; GlDbg::GlDbg(int argc, char **argv): cmd_interp(*this), process(vector(argv+1, argv+argc)), + buf_offset(0), flushing(false), got_sigchld(false) { @@ -39,7 +40,13 @@ int GlDbg::main() catch_signal(SIGCHLD); set_loop_mode(TICK_BUSY); + IO::print("GLdbg 0.0\n"); + IO::print("Copyright © 2009 Mikkosoft Productions\n"); + IO::print("Type \"help\" for a list of commands\n"); + Application::main(); + + return 0; } void GlDbg::launch() @@ -127,6 +134,7 @@ void GlDbg::read_stream() if(size<0) break; tracer.decode(data, len); + glstate.decode(data, len); buf_offset += size; } if(buf_offset>8192)