(thetype)
| 88 | return thetype |
| 89 | |
| 90 | def converttype(thetype): |
| 91 | if(thetype[0:11] == 'struct vr::'): |
| 92 | thetype = thetype[11:] |
| 93 | if(thetype[0:17] == 'const struct vr::'): |
| 94 | thetype = thetype[17:] |
| 95 | if(thetype[0:10] == 'class vr::'): |
| 96 | thetype = thetype[10:] |
| 97 | if(thetype == 'const char *const'): |
| 98 | thetype = 'string' |
| 99 | #thetype = thetype.replace('::', '_') |
| 100 | thetypewithnamespace = thetype |
| 101 | thetype = getclasswithoutnamespace(thetype) |
| 102 | if(thetype[0:6] == 'const '): |
| 103 | thetype = thetype[6:] |
| 104 | if(thetype == 'class CSteamID'): |
| 105 | thetype = 'ulong' |
| 106 | if(thetype == 'uint8'): |
| 107 | thetype = 'byte' |
| 108 | if(thetype == 'uint8_t'): |
| 109 | thetype = 'byte' |
| 110 | if(thetype == 'unsigned short'): |
| 111 | thetype = 'ushort' |
| 112 | if(thetype == 'unsigned char'): |
| 113 | thetype = 'byte' |
| 114 | #if(thetype == 'unsigned int'): |
| 115 | # thetype = 'uint' |
| 116 | if(thetype == 'uint16'): |
| 117 | thetype = 'ushort' |
| 118 | if(thetype == 'uint16_t'): |
| 119 | thetype = 'ushort' |
| 120 | if(thetype == 'uint32'): |
| 121 | thetype = 'uint' |
| 122 | if(thetype == 'uint32_t'): |
| 123 | thetype = 'uint' |
| 124 | if(thetype == 'uint64'): |
| 125 | thetype = 'ulong' |
| 126 | if(thetype == 'short'): |
| 127 | thetype = 'short' |
| 128 | if(thetype == 'int32'): |
| 129 | thetype = 'int' |
| 130 | if(thetype == 'int32_t'): |
| 131 | thetype = 'int' |
| 132 | if(thetype == 'int64'): |
| 133 | thetype = 'long' |
| 134 | if(thetype == 'uint64_t'): |
| 135 | thetype = 'ulong' |
| 136 | if(thetype == '_Bool'): |
| 137 | thetype = 'bool' |
| 138 | if(thetype == 'char *'): |
| 139 | thetype = 'string' |
| 140 | if(thetype == 'char **'): |
| 141 | thetype = 'string' |
| 142 | if(thetype == 'void *'): |
| 143 | thetype = 'IntPtr' |
| 144 | if(thetype == 'byte *'): |
| 145 | thetype = 'IntPtr' |
| 146 | if(thetype == 'uint8 *'): |
| 147 | thetype = 'IntPtr' |
no test coverage detected