fix rom class in yaze_py

This commit is contained in:
scawful
2024-08-07 16:33:02 -04:00
parent 0409fc76cf
commit d04ab56a83
2 changed files with 6 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
find_package(PythonLibs 3.8 COMPONENTS Interpreter Development REQUIRED)
find_package(PythonLibs 3.8 REQUIRED)
cmake_policy(SET CMP0167 NEW)
find_package(Boost COMPONENTS python3 REQUIRED)

View File

@@ -12,11 +12,11 @@ BOOST_PYTHON_MODULE(yaze) {
using namespace boost::python;
def("yaze_init", yaze_init);
class_<Rom>("Rom")
.def_readonly("filename", &Rom::filename)
.def_readonly("data", &Rom::data)
.def_readonly("size", &Rom::size)
.def_readonly("impl", &Rom::impl);
class_<rom>("rom")
.def_readonly("filename", &rom::filename)
.def_readonly("data", &rom::data)
.def_readonly("size", &rom::size)
.def_readonly("impl", &rom::impl);
class_<snes_color>("snes_color")
.def_readonly("red", &snes_color::red)