Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit50dd81d

Browse files
committed
Fix GetResourceInfo
1 parent219ef33 commit50dd81d

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

‎bindings/storage/Resources.cpp‎

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -64,32 +64,7 @@ py::class_<BResources>(m, "BResources")
6464

6565
returnpy::make_tuple(result,static_cast<int>(typeFound), idFound, byteSequence, lengthFound);
6666
},"",py::arg("byIndex"))
67-
/*
68-
.def("GetResourceInfo", [](BResources& self, int32 byIndex){
69-
type_code typeFound;
70-
int32 idFound;
71-
const char * nameFound;
72-
size_t lengthFound;
73-
bool result = self.GetResourceInfo(byIndex, &typeFound, &idFound, &nameFound, &lengthFound);
74-
75-
// Utilizza py::str per rappresentare la stringa in Python
76-
py::str pythonString(nameFound, lengthFound);
7767

78-
return py::make_tuple(result, static_cast<int>(typeFound), idFound, pythonString, lengthFound);
79-
}, "", py::arg("byIndex"))*/
80-
/*
81-
.def("GetResourceInfo", [](BResources& self, int32 byIndex){
82-
type_code typeFound;
83-
int32 idFound;
84-
const char * nameFound;
85-
//std::vector<char *> nameFound;
86-
size_t lengthFound;
87-
bool result = self.GetResourceInfo(byIndex, &typeFound, &idFound, &nameFound, &lengthFound);
88-
py::array_t<const char> array = py::array_t<const char>({static_cast<ssize_t>(lengthFound)}, {sizeof(const char)}, nameFound);
89-
return py::make_tuple(result, typeFound, idFound, array, lengthFound);
90-
//std::vector<char*> charPtrVector = convertConstCharPtrArray(&nameFound, lengthFound);
91-
//return py::make_tuple(result, typeFound, idFound, charPtrVector, lengthFound);
92-
}, "", py::arg("byIndex"))*/
9368
//.def("GetResourceInfo", py::overload_cast<type_code, int32, int32*, const char * *, size_t *>(&BResources::GetResourceInfo), "", py::arg("byType"), py::arg("andIndex"), py::arg("idFound"), py::arg("nameFound"), py::arg("lengthFound"))
9469
//.def("GetResourceInfo", py::overload_cast<type_code, int32, const char * *, size_t *>(&BResources::GetResourceInfo), "", py::arg("byType"), py::arg("andID"), py::arg("nameFound"), py::arg("lengthFound"))
9570
.def("GetResourceInfo", py::overload_cast<type_code,constchar *, int32*,size_t *>(&BResources::GetResourceInfo),"",py::arg("byType"),py::arg("andName"),py::arg("idFound"),py::arg("lengthFound"))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp