More pyvalue pointers

This commit is contained in:
Amun
2025-08-27 14:32:26 +03:00
parent 4385a2c709
commit f33d8fc183
3 changed files with 4 additions and 4 deletions

View File

@@ -17,7 +17,7 @@ bool PyTuple_GetTextInstance(PyObject* poArgs, int pos, CGraphicTextInstance** p
PyObject* grpTextGenerate(PyObject* poSelf, PyObject* poArgs)
{
CGraphicTextInstance * pTextInstance = CGraphicTextInstance::New();
return Py_BuildValue("i", pTextInstance);
return Py_BuildValue("K", pTextInstance);
}
PyObject* grpTextDestroy(PyObject* poSelf, PyObject* poArgs)

View File

@@ -20,7 +20,7 @@ PyObject* grpThingGenerate(PyObject* poSelf, PyObject* poArgs)
return Py_BuildException();
if (strlen(szFileName) <= 0)
return Py_BuildValue("i", 0);
return Py_BuildValue("K", 0);
CResource* pResource = CResourceManager::Instance().GetResourcePointer(szFileName);
@@ -32,7 +32,7 @@ PyObject* grpThingGenerate(PyObject* poSelf, PyObject* poArgs)
pThingInstance->ReserveModelInstance(1);
pThingInstance->RegisterModelThing(0, static_cast<CGraphicThing*>(pResource));
pThingInstance->SetModelInstance(0, 0, 0);
return Py_BuildValue("i", pThingInstance);
return Py_BuildValue("K", pThingInstance);
}
PyObject* grpThingDelete(PyObject* poSelf, PyObject* poArgs)

View File

@@ -282,7 +282,7 @@ PyObject * itemGetIconInstance(PyObject * poSelf, PyObject * poArgs)
CGraphicImageInstance * pImageInstance = CGraphicImageInstance::New();
pImageInstance->SetImagePointer(pImage);
return Py_BuildValue("i", pImageInstance);
return Py_BuildValue("K", pImageInstance);
}
PyObject * itemDeleteIconInstance(PyObject * poSelf, PyObject * poArgs)