diff options
author | Lars Skovlund | 2009-03-10 14:52:02 +0000 |
---|---|---|
committer | Lars Skovlund | 2009-03-10 14:52:02 +0000 |
commit | 3cddcb1660c32b902052e0e65b75e434e0f1035c (patch) | |
tree | d18127f31f61c80b239b3b3a2719341652f3ed96 /engines/sci/engine/scriptdebug.cpp | |
parent | cbfd80a5d17314790751ab59cffdf318a4b592b5 (diff) | |
download | scummvm-rg350-3cddcb1660c32b902052e0e65b75e434e0f1035c.tar.gz scummvm-rg350-3cddcb1660c32b902052e0e65b75e434e0f1035c.tar.bz2 scummvm-rg350-3cddcb1660c32b902052e0e65b75e434e0f1035c.zip |
String fragments support
WIP: No regressions in this part, I hope
svn-id: r39297
Diffstat (limited to 'engines/sci/engine/scriptdebug.cpp')
-rw-r--r-- | engines/sci/engine/scriptdebug.cpp | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/engines/sci/engine/scriptdebug.cpp b/engines/sci/engine/scriptdebug.cpp index 0aefa2b331..7a104c8df0 100644 --- a/engines/sci/engine/scriptdebug.cpp +++ b/engines/sci/engine/scriptdebug.cpp @@ -87,7 +87,8 @@ char inputbuf[256] = ""; const char *_debug_get_input_default() { char newinpbuf[256]; - + char *newline; + printf("> "); fgets(newinpbuf, 254, stdin); @@ -327,6 +328,10 @@ int c_segtable(EngineState *s) { sciprintf("M dynmem: %d bytes", mobj->data.dynmem.size); break; + case MEM_OBJ_STRING_FRAG: + sciprintf("F string fragments"); + break; + default: sciprintf("I Invalid (type = %x)", mobj->type); break; @@ -424,10 +429,12 @@ static void _c_single_seg_info(EngineState *s, MemObject *mobj) { SystemStrings *strings = &(mobj->data.sys_strings); int i; - sciprintf("system string table\n"); + sciprintf("system string table - viewing currently disabled\n"); +#if 0 for (i = 0; i < SYS_STRINGS_MAX; i++) if (strings->strings[i].name) sciprintf(" %s[%d]=\"%s\"\n", strings->strings[i].name, strings->strings[i].max_size, strings->strings[i].value); +#endif } break; @@ -483,6 +490,11 @@ static void _c_single_seg_info(EngineState *s, MemObject *mobj) { } break; + case MEM_OBJ_STRING_FRAG: { + sciprintf("string frags\n"); + break; + } + default : sciprintf("Invalid type %d\n", mobj->type); break; |