aboutsummaryrefslogtreecommitdiff
path: root/devtools/create_project
diff options
context:
space:
mode:
authorSupSuper2018-12-19 01:25:18 +0000
committerFilippos Karapetis2018-12-23 18:39:06 +0200
commit35ea621a4ef883b0735c827d5d5c126b86451e3c (patch)
tree43c6b6674f54fd18410a80316b4671d44c4e1d4d /devtools/create_project
parent5004c331c9926fb4117d597d792e950bc27ba39e (diff)
downloadscummvm-rg350-35ea621a4ef883b0735c827d5d5c126b86451e3c.tar.gz
scummvm-rg350-35ea621a4ef883b0735c827d5d5c126b86451e3c.tar.bz2
scummvm-rg350-35ea621a4ef883b0735c827d5d5c126b86451e3c.zip
MSVC: Add visualiser for unicode strings
Diffstat (limited to 'devtools/create_project')
-rw-r--r--devtools/create_project/scripts/scummvm.natvis16
1 files changed, 15 insertions, 1 deletions
diff --git a/devtools/create_project/scripts/scummvm.natvis b/devtools/create_project/scripts/scummvm.natvis
index 5470f20ba7..8d839246cf 100644
--- a/devtools/create_project/scripts/scummvm.natvis
+++ b/devtools/create_project/scripts/scummvm.natvis
@@ -108,7 +108,21 @@
<Expand>
<Item Name="[size]">_size</Item>
<Item Condition="_str != _storage" Name="[capacity]">_extern._capacity</Item>
- <Item Condition="_str != _storage" Name="[refCount]">*_extern._refCount</Item>
+ <Item Condition="_str != _storage &amp;&amp; _extern._refCount != 0" Name="[refCount]">*_extern._refCount</Item>
+ <ArrayItems>
+ <Size>_size</Size>
+ <ValuePointer>_str</ValuePointer>
+ </ArrayItems>
+ </Expand>
+ </Type>
+
+ <Type Name="Common::U32String">
+ <DisplayString>{_str,s32}</DisplayString>
+ <StringView>_str,s32</StringView>
+ <Expand>
+ <Item Name="[size]">_size</Item>
+ <Item Condition="_str != _storage" Name="[capacity]">_extern._capacity</Item>
+ <Item Condition="_str != _storage &amp;&amp; _extern._refCount != 0" Name="[refCount]">*_extern._refCount</Item>
<ArrayItems>
<Size>_size</Size>
<ValuePointer>_str</ValuePointer>