diff --git a/Packages/com.thenathannator.plasticband/CHANGELOG.md b/Packages/com.thenathannator.plasticband/CHANGELOG.md index 1c32250..5412e65 100644 --- a/Packages/com.thenathannator.plasticband/CHANGELOG.md +++ b/Packages/com.thenathannator.plasticband/CHANGELOG.md @@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), Dates are relative to UTC. +## [0.8.2] - 2024/06/28 + +### Fixed + +- i screwed up the Santroller fix a little and there was a potential null reference bug, whoops lol + ## [0.8.1] - 2024/06/28 ### Fixed diff --git a/Packages/com.thenathannator.plasticband/PlasticBand/LowLevel/XInput/XInputLayoutFinder.cs b/Packages/com.thenathannator.plasticband/PlasticBand/LowLevel/XInput/XInputLayoutFinder.cs index 54f15fe..0be9584 100644 --- a/Packages/com.thenathannator.plasticband/PlasticBand/LowLevel/XInput/XInputLayoutFinder.cs +++ b/Packages/com.thenathannator.plasticband/PlasticBand/LowLevel/XInput/XInputLayoutFinder.cs @@ -50,7 +50,7 @@ private static string FindXInputDeviceLayout(ref InputDeviceDescription descript return null; // hack: pass through Santroller layouts as-is - if (matchedLayout.Contains("Santroller")) + if (matchedLayout != null && matchedLayout.Contains("Santroller")) return null; // Parse capabilities diff --git a/Packages/com.thenathannator.plasticband/package.json b/Packages/com.thenathannator.plasticband/package.json index d611036..9d566bb 100644 --- a/Packages/com.thenathannator.plasticband/package.json +++ b/Packages/com.thenathannator.plasticband/package.json @@ -1,6 +1,6 @@ { "name": "com.thenathannator.plasticband", - "version": "0.8.1", + "version": "0.8.2", "displayName": "PlasticBand", "description": "An add-on for the Unity InputSystem package that adds special bindings for Rock Band and Guitar Hero peripherals, such as guitars and drums.", "unity": "2019.4", diff --git a/README.md b/README.md index 0079b6f..2bbdada 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ See the [Unity documentation](https://docs.unity3d.com/Manual/upm-git.html) for #### Via URL 1. Open the Unity Package Manager and hit the + button, then select `Add package from git URL`. -2. Paste in `https://github.com/TheNathannator/PlasticBand-Unity.git?path=/Packages/com.thenathannator.plasticband#v0.8.1` and hit Add. +2. Paste in `https://github.com/TheNathannator/PlasticBand-Unity.git?path=/Packages/com.thenathannator.plasticband#v0.8.2` and hit Add. To update, increment the version number at the end of the URL to the new version number and repeat these steps with the new URL. Alternatively, you can edit the URL listed in your `manifest.json` file as described in the [Via Manifest](#via-manifest) section. @@ -65,7 +65,7 @@ In your Packages > `manifest.json` file, add the following line to your `depende ```diff { "dependencies": { -+ "com.thenathannator.plasticband": "https://github.com/TheNathannator/PlasticBand-Unity.git?path=/Packages/com.thenathannator.plasticband#v0.8.1" ++ "com.thenathannator.plasticband": "https://github.com/TheNathannator/PlasticBand-Unity.git?path=/Packages/com.thenathannator.plasticband#v0.8.2" } } ```