diff options
author | lolbot-iichan | 2019-06-18 19:52:43 +0300 |
---|---|---|
committer | Filippos Karapetis | 2019-06-18 21:20:33 +0300 |
commit | a7efc8afd8f4831d00eec82bfdd8b299f56f6d52 (patch) | |
tree | 1828fa1c724e23f1e342a5b872878f0410d04c52 /engines/wintermute/debugger.h | |
parent | bbed50ff27a1d4c656a8876f277fe1d8dcfb5f3f (diff) | |
download | scummvm-rg350-a7efc8afd8f4831d00eec82bfdd8b299f56f6d52.tar.gz scummvm-rg350-a7efc8afd8f4831d00eec82bfdd8b299f56f6d52.tar.bz2 scummvm-rg350-a7efc8afd8f4831d00eec82bfdd8b299f56f6d52.zip |
WINTERMUTE: Fix Split() method of ext_string
It's hard to believe, but this fixes bug "#10432" WME Carol Reed
Mysteries hint system not working.
Carol Reed hint system happen to heavily use line.Split(";") results,
which were wrong by 1 byte (delimeter was appended to result while it
shouldn't be).
I started with decompiling Carol Reed source code, reproducing issue
with a stand-alone test project (which worked with WME and showed [null]
with ScummVM). then minimized it to a minimal testcase:
var line = new String("New Goal;Visit Christina at the Art
Museum;1;0;S;;");
var ar = line.Split(";");
if((ar[0] == "New Goal")) { var g = ar[1]; }
Diffstat (limited to 'engines/wintermute/debugger.h')
0 files changed, 0 insertions, 0 deletions