metefeeder submodule

This commit is contained in:
randogoth 2023-05-28 16:19:30 +03:00
parent d4acf64815
commit 6d4b8c8e86
11 changed files with 16 additions and 8 deletions

1
.gitignore vendored
View file

@ -2,3 +2,4 @@ __pycache__/
*.iml
.idea/
.venv/
debug.log

1
.gitmodules vendored
View file

@ -1,3 +1,4 @@
[submodule "MeterFeeder"]
path = MeterFeeder
url = git@github.com:TheRandonauts/MeterFeeder.git
shallow = true

5
.vscode/settings.json vendored Normal file
View file

@ -0,0 +1,5 @@
{
"githubPullRequests.ignoredPullRequestBranches": [
"develop"
]
}

View file

@ -1,6 +1,8 @@
MIT License
Copyright (c) 2020 Andika Wasisto
Modified by randogoth / Randonauts Co.
Modified by soliax / fp2.dev
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

@ -1 +1 @@
Subproject commit f33f7b266cfa69a73cba481c4c2b875e72066ae8
Subproject commit 6b8de4bd2c8fc0c483c1988b1d99694d8ad31d8d

View file

@ -1 +0,0 @@
[0917/192900.742:ERROR:registration_protocol_win.cc(103)] CreateFile: The system cannot find the file specified. (0x2)

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -1,5 +1,5 @@
# Copyright (c) 2020 Andika Wasisto
# Modified by Tobias Raayoni Last
# Modified by randogoth
# Modified by soliax
#
# Permission is hereby granted, free of charge, to any person obtaining a copy

View file

@ -1,7 +1,7 @@
##
# MeterFeeder Library Wrapper
#
# by soliax
# by soliax, randogoth
##
from platform import os
@ -15,13 +15,13 @@ class MeterFeederWrapper:
def __init__(self):
if platform == "linux" or platform == "linux2":
# Linux
self._meterfeeder = cdll.LoadLibrary(os.getcwd() + '/libmeterfeeder.so')
self._meterfeeder = cdll.LoadLibrary(os.getcwd() + '/MeterFeeder/builds/linux/libmeterfeeder.so')
elif platform == "darwin":
# OS X
self._meterfeeder = cdll.LoadLibrary(os.getcwd() + '/libmeterfeeder.dylib')
self._meterfeeder = cdll.LoadLibrary(os.getcwd() + '/MeterFeeder/builds/mac/libmeterfeeder.dylib')
elif platform == "win32":
# Windows
self._meterfeeder = cdll.LoadLibrary(os.getcwd() + '/meterfeeder.dll')
self._meterfeeder = cdll.LoadLibrary(os.getcwd() + '/MeterFeeder/builds/windows/meterfeeder.dll')
# Declare function bridging
self._meterfeeder.MF_Initialize.argtypes = c_char_p,