👍️[Update] Model : status 348のlog を printLog関数に集約

This commit is contained in:
misyaguziya
2024-09-01 17:33:22 +09:00
parent 8f2c81a7d7
commit 4c2e4a6e04
7 changed files with 159 additions and 143 deletions

View File

@@ -1,4 +1,7 @@
import os
from os import path as os_path
import sys
sys.path.append(os_path.join(os_path.dirname(__file__), "..", ".."))
from utils import printLog
import ctypes
import time
from psutil import process_iter
@@ -109,8 +112,7 @@ class Overlay:
)
except Exception as e:
import json
print(json.dumps({"status":348, "log": f"error:Could not initialise OpenVR {e}"}), flush=True)
printLog("error:Could not initialise OpenVR", e)
def updateImage(self, img):
if self.initialized is True:
@@ -204,8 +206,7 @@ class Overlay:
return False
return True
except Exception as e:
import json
print(json.dumps({"status":348, "log": f"error:Could not check SteamVR running {e}"}), flush=True)
printLog("error:Could not check SteamVR running", e)
return False
def evaluateOpacityFade(self, lastUpdate, currentTime):