Skip to content

Commit 40b66d8

Browse files
committed
Fix incorrect path when generating bindings. Fix broken pragma causing
warnings
1 parent 6e23b68 commit 40b66d8

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

Unity/Assets/NativeScript/Editor/GenerateBindings.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public static class GenerateBindings
2424
{
2525
// Disable unused field types. JsonUtility actually uses them, but it
2626
// does so with reflection.
27-
#pragma warning disable CS0649
27+
#pragma warning disable 649
2828

2929
[Serializable]
3030
class JsonConstructor
@@ -289,7 +289,9 @@ struct TypeName
289289
static readonly string CppDirPath =
290290
Path.Combine(
291291
Path.Combine(
292-
ProjectDirPath,
292+
Path.Combine(
293+
ProjectDirPath,
294+
"Assets"),
293295
"CppSource"),
294296
"NativeScript");
295297
static readonly string CsharpPath = Path.Combine(
@@ -308,7 +310,7 @@ static readonly FieldOrderComparer DefaultFieldOrderComparer
308310
= new FieldOrderComparer();
309311

310312
// Restore unused field types
311-
#pragma warning restore CS0649
313+
#pragma warning restore 649
312314

313315
public static void Generate()
314316
{

0 commit comments

Comments
 (0)