feat: add 4 new added classes in Unvirt.

- fix a fatal issue that make the output message from CKContext is empty.
- fix argument type error for CKCamera::GetAspect and CKCamera::SetAspect.
- add enums annotation and struct diaplay function in Unvirt for showing 4 new added classes.
This commit is contained in:
2024-12-25 13:58:39 +08:00
parent eef3a352d9
commit 86b27557c9
6 changed files with 94 additions and 7 deletions

View File

@ -264,8 +264,7 @@ namespace LibCmo::CK2 {
va_list argptr;
va_start(argptr, fmt);
XContainer::XString result;
YYCC::StringHelper::VPrintf(fmt, argptr);
XContainer::XString result(YYCC::StringHelper::VPrintf(fmt, argptr));
va_end(argptr);
// use c_str(), not XContainer::NSXString::ToCKSTRING because we want make sure this paramter is not nullptr.