diff options
author | Justin Berger <j.david.berger@gmail.com> | 2018-04-02 00:21:49 -0600 |
---|---|---|
committer | Justin Berger <j.david.berger@gmail.com> | 2018-04-02 00:21:49 -0600 |
commit | 3f2cd96e959494f296c46ce66d70fda0ca9a41f4 (patch) | |
tree | d71e9c803bb5ead0d72acb1f41ec8d826e84c14e /bindings/cs/libsurvive.net/LibSurViveAPI.cs | |
parent | d77155ee57f715288d73f7c77a14dc05ebc601da (diff) | |
download | libsurvive-3f2cd96e959494f296c46ce66d70fda0ca9a41f4.tar.gz libsurvive-3f2cd96e959494f296c46ce66d70fda0ca9a41f4.tar.bz2 |
Fixed crashes, typo
Diffstat (limited to 'bindings/cs/libsurvive.net/LibSurViveAPI.cs')
-rw-r--r-- | bindings/cs/libsurvive.net/LibSurViveAPI.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bindings/cs/libsurvive.net/LibSurViveAPI.cs b/bindings/cs/libsurvive.net/LibSurViveAPI.cs index 7e8b73a..1fb8cae 100644 --- a/bindings/cs/libsurvive.net/LibSurViveAPI.cs +++ b/bindings/cs/libsurvive.net/LibSurViveAPI.cs @@ -38,10 +38,10 @@ public class LibSurViveAPI text_feedback_func info_func; public delegate void Log(string message); - Log LogInfo; + Log LogInfo = delegate { }; public delegate void ErrorLog(string message); - ErrorLog LogError; + ErrorLog LogError = delegate { }; LibSurViveAPI() { @@ -145,9 +145,9 @@ public class LibSurViveAPI "unity" }; - if (configs.playbaskFile != "") + if (configs.playbackFile != "" && configs.playbackFile != null) { - args.AddRange(new[] { "--playback", configs.playbaskFile }); + args.AddRange(new[] { "--playback", configs.playbackFile }); args.AddRange(new[] { "--playback-factor", configs.playbackFactor.ToString() }); } @@ -259,7 +259,7 @@ public class LibSurViveAPI public struct SetupConfigs { - public string playbaskFile; + public string playbackFile; public int playbackFactor; public Disambiguator disambiguator; public Poser poser; |