Skip to content

Commit 08cead0

Browse files
committed
Support JagArray
配列の配列をサポート
1 parent 56e17c9 commit 08cead0

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

PluginExt/PluginBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ public static void WriteObject(Type t , object data , string section , string ke
216216
string sec = section + separator + key;
217217
int i = 0;
218218
foreach(var item in x) {
219-
SafeNativeMethods.WritePrivateProfileString(sec , i.ToString() , x.GetValue(i).ToString() , filepath);
219+
WriteObject(t.GetElementType() , item , sec , i.ToString() , filepath);
220220
i++;
221221
}
222222
} else if(t.IsGenericType) {

PluginTest/Program.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using System;
22
using System.Collections.Generic;
33
using PluginExt;
4+
using UnityEngine;
45

56
namespace PluginTest {
67
class Program {
@@ -11,6 +12,10 @@ static void Main(string[] args) {
1112
}
1213
public class TestPlugin : ExPluginBase {
1314
class PluginConfig {
15+
public string[][] ss = new string[][] {
16+
new string[] {"aaaa","bb" },
17+
new string[] {"test","pipi"}
18+
};
1419
public int x = 10;
1520
public float s = (float)Math.PI;
1621
public double doubleValue = Math.PI;

0 commit comments

Comments
 (0)