mirror of
https://notabug.org/scuti/lib3ddevil1
synced 2025-05-31 14:11:42 +05:30
Makefile creates .so (internall a .dll on windows?)
This commit is contained in:
15
bindings/py3devil1.py
Normal file → Executable file
15
bindings/py3devil1.py
Normal file → Executable file
@@ -1,3 +1,4 @@
|
||||
#!/usr/bin/python3
|
||||
import ctypes
|
||||
|
||||
class PldHeader(ctypes.Structure):
|
||||
@@ -14,8 +15,12 @@ class Devil1FN_PLD(ctypes.Structure):
|
||||
]
|
||||
|
||||
def main():
|
||||
libc = cdll.LoadLibrary('./libdevil1pld.so')
|
||||
if (lib):
|
||||
print("OK")
|
||||
with open("pl01.pld", "rb") as f:
|
||||
data = f.read()
|
||||
sharedlib='./lib3ddevil1.so'
|
||||
libc = cdll.LoadLibrary(sharedlib)
|
||||
if (not lib):
|
||||
print("Couldn't load %s" % sharedlib)
|
||||
return 1
|
||||
|
||||
print("OK")
|
||||
with open("pl01.pld", "rb") as f:
|
||||
data = f.read()
|
||||
|
Reference in New Issue
Block a user