初步支持旧作 廃村少女 ~妖し惑ひの籠の郷~
This commit is contained in:
parent
390a4614b3
commit
19abc3db90
@ -116,7 +116,7 @@ namespace EscudeTools
|
|||||||
|
|
||||||
}
|
}
|
||||||
List<EvTable> evts = [];
|
List<EvTable> evts = [];
|
||||||
List<StTable> stts = [];
|
//List<StTable> stts = [];
|
||||||
Face[] faces = new Face[32];
|
Face[] faces = new Face[32];
|
||||||
using (var command = new SqliteCommand($"SELECT * FROM {foundTN[0]};", connection))
|
using (var command = new SqliteCommand($"SELECT * FROM {foundTN[0]};", connection))
|
||||||
{
|
{
|
||||||
@ -132,52 +132,52 @@ namespace EscudeTools
|
|||||||
option = reader.GetString(2).Split(' '),
|
option = reader.GetString(2).Split(' '),
|
||||||
coverd = (uint)reader.GetInt32(3),
|
coverd = (uint)reader.GetInt32(3),
|
||||||
filter = (uint)reader.GetInt32(4),
|
filter = (uint)reader.GetInt32(4),
|
||||||
color = (uint)reader.GetInt32(5),
|
//color = (uint)reader.GetInt32(5),
|
||||||
id = (uint)reader.GetInt32(6),
|
id = (uint)reader.GetInt32(5),
|
||||||
loc = (uint)reader.GetInt32(7),
|
loc = (uint)reader.GetInt32(6),
|
||||||
order = reader.GetInt32(8),
|
order = reader.GetInt32(7),
|
||||||
link = (uint)reader.GetInt32(9)
|
link = (uint)reader.GetInt32(8)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
using (var command = new SqliteCommand($"SELECT * FROM {foundTN[1]};", connection))
|
//using (var command = new SqliteCommand($"SELECT * FROM {foundTN[1]};", connection))
|
||||||
{
|
//{
|
||||||
using var reader = command.ExecuteReader();
|
// using var reader = command.ExecuteReader();
|
||||||
while (reader.Read())
|
// while (reader.Read())
|
||||||
{
|
// {
|
||||||
if (reader.IsDBNull(0) || string.IsNullOrEmpty(reader.GetString(0)))
|
// if (reader.IsDBNull(0) || string.IsNullOrEmpty(reader.GetString(0)))
|
||||||
continue;
|
// continue;
|
||||||
stts.Add(new StTable
|
// stts.Add(new StTable
|
||||||
{
|
// {
|
||||||
name = reader.GetString(0),
|
// name = reader.GetString(0),
|
||||||
file = reader.GetString(1),
|
// file = reader.GetString(1),
|
||||||
option = reader.GetString(2).Split(' '),
|
// option = reader.GetString(2).Split(' '),
|
||||||
coverd = (uint)reader.GetInt32(3),
|
// coverd = (uint)reader.GetInt32(3),
|
||||||
filter = (uint)reader.GetInt32(4),
|
// filter = (uint)reader.GetInt32(4),
|
||||||
face = (uint)reader.GetInt32(5),
|
// face = (uint)reader.GetInt32(5),
|
||||||
id = (uint)reader.GetInt32(6),
|
// id = (uint)reader.GetInt32(6),
|
||||||
loc = (uint)reader.GetInt32(7),
|
// loc = (uint)reader.GetInt32(7),
|
||||||
order = reader.GetInt32(8),
|
// order = reader.GetInt32(8),
|
||||||
link = (uint)reader.GetInt32(9)
|
// link = (uint)reader.GetInt32(9)
|
||||||
});
|
// });
|
||||||
}
|
// }
|
||||||
}
|
//}
|
||||||
using (var command = new SqliteCommand($"SELECT * FROM {foundTN[2]};", connection))
|
//using (var command = new SqliteCommand($"SELECT * FROM {foundTN[2]};", connection))
|
||||||
{
|
//{
|
||||||
using var reader = command.ExecuteReader();
|
// using var reader = command.ExecuteReader();
|
||||||
while (reader.Read())
|
// while (reader.Read())
|
||||||
{
|
// {
|
||||||
if (reader.IsDBNull(0) || string.IsNullOrEmpty(reader.GetString(0)))
|
// if (reader.IsDBNull(0) || string.IsNullOrEmpty(reader.GetString(0)))
|
||||||
continue;
|
// continue;
|
||||||
for (int i = 0; i < faces.Length; i++)
|
// for (int i = 0; i < faces.Length; i++)
|
||||||
{
|
// {
|
||||||
if (faces[i] == null)
|
// if (faces[i] == null)
|
||||||
faces[i] = new Face();
|
// faces[i] = new Face();
|
||||||
if (reader.GetInt32(2 + i) == 1)
|
// if (reader.GetInt32(2 + i) == 1)
|
||||||
faces[i].faceOptions.Add(reader.GetString(1));
|
// faces[i].faceOptions.Add(reader.GetString(1));
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
//}
|
||||||
|
|
||||||
string[] files = Directory.GetFiles(args[0], "*.lsf", SearchOption.AllDirectories);
|
string[] files = Directory.GetFiles(args[0], "*.lsf", SearchOption.AllDirectories);
|
||||||
LsfManager lm = new();
|
LsfManager lm = new();
|
||||||
|
Loading…
Reference in New Issue
Block a user