diff --git a/pyrightconfig.json b/pyrightconfig.json deleted file mode 100644 index 741e0a1..0000000 --- a/pyrightconfig.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "executionEnvironments": [ - { - "root": "scripts", - "extraPaths": ["script-resources"] - } - ] -} diff --git a/script-resources/factorio/property_tree.py b/script-resources/factorio/property_tree.py deleted file mode 100644 index 24629e2..0000000 --- a/script-resources/factorio/property_tree.py +++ /dev/null @@ -1,65 +0,0 @@ -# -# -# -# -# - -import struct - - -def read_bool(buf): - return buf.read(1)[0] == 1 - - -def read_number(buf): - return struct.unpack(" -# -# -# - -import sys -import os -from pathlib import Path -import struct -import json - -sys.path.insert(1, os.path.join(os.path.dirname(__file__), "..", "script-resources")) -import factorio.property_tree - - -with open(Path.home() / ".factorio" / "mods" / "mod-settings.dat", "rb") as f: - - version_main, version_major, version_minor, version_developer = struct.unpack( - "