Advertisement
Guest User

Untitled

a guest
Dec 27th, 2017
722
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.64 KB | None | 0 0
  1. diff --git a/src/FNAPlatform/SDL2_FNAPlatform.cs b/src/FNAPlatform/SDL2_FNAPlatform.cs
  2. index dfa7937..e38fbab 100644
  3. --- a/src/FNAPlatform/SDL2_FNAPlatform.cs
  4. +++ b/src/FNAPlatform/SDL2_FNAPlatform.cs
  5. @@ -1015,7 +1015,10 @@ namespace Microsoft.Xna.Framework
  6. osConfigDir += "/Library/Application Support";
  7. return osConfigDir;
  8. }
  9. - if (OSVersion.Equals("Linux"))
  10. + if ( OSVersion.Equals("Linux") ||
  11. + OSVersion.Equals("OpenBSD") ||
  12. + OSVersion.Equals("FreeBSD") ||
  13. + OSVersion.Equals("NetBSD") )
  14. {
  15. // Assuming a non-OSX Unix platform will follow the XDG. Which it should.
  16. string osConfigDir = Environment.GetEnvironmentVariable("XDG_DATA_HOME");
  17. @@ -1908,7 +1911,10 @@ namespace Microsoft.Xna.Framework
  18. }
  19.  
  20. // Initialize light bar
  21. - if ( OSVersion.Equals("Linux") &&
  22. + if ( ( OSVersion.Equals("Linux") ||
  23. + OSVersion.Equals("OpenBSD") ||
  24. + OSVersion.Equals("FreeBSD") ||
  25. + OSVersion.Equals("NetBSD") ) &&
  26. ( INTERNAL_guids[which].Equals("4c05c405") ||
  27. INTERNAL_guids[which].Equals("4c05cc09") ) )
  28. {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement