From 93d7302472bbc1dd153854973ca8c05849b3505f Mon Sep 17 00:00:00 2001 From: Andreas Aronsson Date: Wed, 24 Jul 2024 10:52:26 +0200 Subject: [PATCH] Add filepath to response message --- SuperScreenShotterVR/MainController.cs | 6 ++++-- SuperScreenShotterVR/Properties/Resources.resx | 2 +- SuperScreenShotterVR/Remote/ScreenshotResponse.cs | 14 +++++--------- 3 files changed, 10 insertions(+), 12 deletions(-) diff --git a/SuperScreenShotterVR/MainController.cs b/SuperScreenShotterVR/MainController.cs index ec4af4c..1ca8178 100644 --- a/SuperScreenShotterVR/MainController.cs +++ b/SuperScreenShotterVR/MainController.cs @@ -583,7 +583,8 @@ private void ScreenShotTaken(VREvent_Data_t eventData) msg.Nonce, imgb64data, image.Width, - image.Height + image.Height, + filePath ), JsonOptions.Get()) ); @@ -595,7 +596,8 @@ private void ScreenShotTaken(VREvent_Data_t eventData) "", imgb64data, image.Width, - image.Height + image.Height, + filePath ), JsonOptions.Get()) ); diff --git a/SuperScreenShotterVR/Properties/Resources.resx b/SuperScreenShotterVR/Properties/Resources.resx index c55a9ac..932a29d 100644 --- a/SuperScreenShotterVR/Properties/Resources.resx +++ b/SuperScreenShotterVR/Properties/Resources.resx @@ -128,6 +128,6 @@ ..\resources\logo.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - v2.1.0 + v2.1.1 \ No newline at end of file diff --git a/SuperScreenShotterVR/Remote/ScreenshotResponse.cs b/SuperScreenShotterVR/Remote/ScreenshotResponse.cs index af3434b..d121f6a 100644 --- a/SuperScreenShotterVR/Remote/ScreenshotResponse.cs +++ b/SuperScreenShotterVR/Remote/ScreenshotResponse.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace SuperScreenShotterVR.Remote +namespace SuperScreenShotterVR.Remote { class ScreenshotResponse { @@ -12,17 +6,19 @@ class ScreenshotResponse public string Image = ""; public int Width = 0; public int Height = 0; + public string FilePath = ""; public string Message = ""; public string Error = ""; - public static ScreenshotResponse Create(string nonce, string image, int width, int height) + public static ScreenshotResponse Create(string nonce, string image, int width, int height, string filePath) { return new ScreenshotResponse() { Nonce = nonce, Image = image, Width = width, - Height = height + Height = height, + FilePath = filePath }; }