mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-20 08:05:45 +00:00
ZoneCodeGenerator: Fix being able to load strings for non const char pointers
This commit is contained in:
parent
a1546f3080
commit
ffda895f95
@ -45,7 +45,11 @@ if ($TypeVarName(structure)$->$member.Member.Name$$PrintArrayIndices(reference)$
|
||||
>>
|
||||
|
||||
LoadSinglePointer_String(context, structure, member, reference) ::= <%
|
||||
$if(member.Member.VariableType.IsConst)$
|
||||
varXString = &$TypeVarName(structure)$->$member.Member.Name$$PrintArrayIndices(reference)$;$\n$
|
||||
$else$
|
||||
varXString = const_cast<const char**>(&$TypeVarName(structure)$->$member.Member.Name$$PrintArrayIndices(reference)$);$\n$
|
||||
$endif$
|
||||
LoadXString(false);
|
||||
%>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user