Skip to content

Commit

Permalink
Make changes to get StyleStar to run on Unix based systems (OSX in pa…
Browse files Browse the repository at this point in the history
…rticular). TODO: Test changes on other OSX Catalina and Unix-based systems to ensure StyleStar is compatible with them.
  • Loading branch information
ChronoAndross committed May 2, 2020
1 parent b9ddca7 commit 990c9bb
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Assets/Scripts/SongMetadata.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,14 @@ private void Parse(string fileName)
try
{
ChartFullPath = Path.GetFullPath(fileName);

// forward slashes before file name are needed on Unix based systems; backward slashes before file name are needed on Windows
#if UNITY_EDITOR_WIN || UNITY_STANDALONE_WIN
FilePath = Path.GetDirectoryName(fileName) + @"\";
#else
FilePath = Path.GetDirectoryName(fileName) + @"/";
#endif

List<string> children = new List<string>();
using (StreamReader sr = new StreamReader(new FileStream(fileName, FileMode.Open, FileAccess.Read)))
{
Expand Down
Binary file added Assets/lib/libbass.dylib
Binary file not shown.
7 changes: 7 additions & 0 deletions Assets/lib/libbass.dylib.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added Assets/lib/libbass.so
Binary file not shown.
27 changes: 27 additions & 0 deletions Assets/lib/libbass.so.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 990c9bb

Please sign in to comment.