diff options
author | SupSuper | 2018-12-19 01:25:18 +0000 |
---|---|---|
committer | Filippos Karapetis | 2018-12-23 18:39:06 +0200 |
commit | 35ea621a4ef883b0735c827d5d5c126b86451e3c (patch) | |
tree | 43c6b6674f54fd18410a80316b4671d44c4e1d4d /devtools/create_project | |
parent | 5004c331c9926fb4117d597d792e950bc27ba39e (diff) | |
download | scummvm-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.natvis | 16 |
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 && _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 && _extern._refCount != 0" Name="[refCount]">*_extern._refCount</Item> <ArrayItems> <Size>_size</Size> <ValuePointer>_str</ValuePointer> |