Open kimsama opened 11 years ago
In that file I used the MiniJSON library to decode a .prjmods file contenents. It's used to automate the process patching the newly created xcode project. If you don't have the MiniJSON class in your project, you can simply change it to every json decoder you like. Simply change XCMod.cs on line 89.
Maybe I'll change this, as you're not the first that points this out. Does it make sense?
This is the link to MiniJSON ( http://gist.github.com/darktable/1411710 )
Yes, I already tried that MiniJSON at the link.
But MiniJSON at the link http://gist.github.com/darktable/1411710 does not have jsonDecode() function.
-Kim
2013/2/27 Daniele Cariola notifications@github.com
This is the link to MiniJSON ( http://gist.github.com/darktable/1411710 )
— Reply to this email directly or view it on GitHubhttps://github.com/dcariola/XCodeEditor-for-Unity/issues/3#issuecomment-14160041 .
Just noticed i'm using a different (older, I presume) version. Can't check for any sintax error right now, but I will definitely fix it in the main branch soon. Meanwhile, to make it work with the version at the previous link, try to edit line 4 to:
using MiniJSON;
and line 89:
_datastore = Json.Deserialize( contents ) as Hashtable;
Thank you for the reply.
There is another error:
line 19 in XCodeEditorMenu.cs
The XCProject.ApplyMod method is not a static one but it is called it is like a static.
By the way that's just a test purpose code, I quickly fixed that.
Thank you again.
-Kim
2013/2/27 Daniele Cariola notifications@github.com
Just noticed i'm using a different (older, I presume) version. Can't check for any sintax error right now, but I will definitely fix it in the main branch soon. Meanwhile, to make it work with the version at the previous link, try to edit line 4 to:
using MiniJSON;
and line 89:
_datastore = Json.Deserialize( contents ) as Hashtable;
— Reply to this email directly or view it on GitHubhttps://github.com/dcariola/XCodeEditor-for-Unity/issues/3#issuecomment-14162346 .
Just copied all stuff to Editor folder then got the following error:
Assets/Editor/XCodeEditor-for-Unity/XCMod.cs(4,14): error CS0246: The type or namespace name `MiniJSON' could not be found. Are you missing a using directive or an assembly reference?
What's wrong? Did I miss something?
The version of Unity is 4.0.1 on OS X.