Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
MDPro3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dark_Zane
MDPro3
Commits
5825fcb2
Commit
5825fcb2
authored
Apr 17, 2024
by
SherryChaos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new hint for importing
parent
7a4df5c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
6 deletions
+22
-6
Assets/Scripts/MDPro3/Helper/PortHelper.cs
Assets/Scripts/MDPro3/Helper/PortHelper.cs
+22
-6
No files found.
Assets/Scripts/MDPro3/Helper/PortHelper.cs
View file @
5825fcb2
...
...
@@ -88,19 +88,35 @@ namespace MDPro3
bool
newDataAdded
=
false
;
foreach
(
string
path
in
files
)
{
var
fileName
=
Path
.
GetFileName
(
path
);
try
{
if
(
path
.
ToLower
().
EndsWith
(
".ydk"
))
File
.
Copy
(
path
,
Program
.
deckPath
+
Program
.
slash
+
Path
.
GetFileName
(
path
),
true
);
if
(
path
.
ToLower
().
EndsWith
(
".yrp"
)
||
path
.
ToLower
().
EndsWith
(
".yrp3d"
))
File
.
Copy
(
path
,
Program
.
replayPath
+
Program
.
slash
+
Path
.
GetFileName
(
path
),
true
);
if
(
path
.
ToLower
().
EndsWith
(
".ypk"
)
||
path
.
ToLower
().
EndsWith
(
".zip"
)
||
path
.
ToLower
().
EndsWith
(
".cdb"
)
||
path
.
ToLower
().
EndsWith
(
".conf"
))
{
File
.
Copy
(
path
,
Program
.
expansionsPath
+
Program
.
slash
+
Path
.
GetFileName
(
path
),
true
);
File
.
Copy
(
path
,
Program
.
deckPath
+
Program
.
slash
+
fileName
,
true
);
MessageManager
.
Cast
(
InterString
.
Get
(
"导入卡组「[?]」成功。"
,
fileName
.
Replace
(
".ydk"
,
string
.
Empty
)));
}
else
if
(
path
.
ToLower
().
EndsWith
(
".yrp"
)
||
path
.
ToLower
().
EndsWith
(
".yrp3d"
))
{
File
.
Copy
(
path
,
Program
.
replayPath
+
Program
.
slash
+
fileName
,
true
);
MessageManager
.
Cast
(
InterString
.
Get
(
"导入回放「[?]」成功。"
,
fileName
));
}
else
if
(
path
.
ToLower
().
EndsWith
(
".ypk"
)
||
path
.
ToLower
().
EndsWith
(
".zip"
)
||
path
.
ToLower
().
EndsWith
(
".cdb"
)
||
path
.
ToLower
().
EndsWith
(
".conf"
))
{
File
.
Copy
(
path
,
Program
.
expansionsPath
+
Program
.
slash
+
fileName
,
true
);
newDataAdded
=
true
;
if
(
fileName
.
ToLower
().
EndsWith
(
".ypk"
)
||
fileName
.
ToLower
().
EndsWith
(
".zip"
))
MessageManager
.
Cast
(
InterString
.
Get
(
"导入扩展卡文件「[?]」成功。"
,
fileName
));
else
if
(
fileName
.
ToLower
().
EndsWith
(
".cdb"
))
MessageManager
.
Cast
(
InterString
.
Get
(
"导入卡片数据库「[?]」成功。"
,
fileName
));
else
if
(
fileName
.
ToLower
().
EndsWith
(
".conf"
))
MessageManager
.
Cast
(
InterString
.
Get
(
"导入字段文件「[?]」成功。"
,
fileName
));
}
if
(
path
.
ToLower
().
EndsWith
(
".png"
)
||
path
.
ToLower
().
EndsWith
(
".jpg"
)
||
path
.
ToLower
().
EndsWith
(
".jpeg"
))
else
if
(
path
.
ToLower
().
EndsWith
(
".png"
)
||
path
.
ToLower
().
EndsWith
(
".jpg"
))
{
File
.
Copy
(
path
,
Program
.
altArtPath
+
Program
.
slash
+
Path
.
GetFileName
(
path
),
true
);
MessageManager
.
Cast
(
InterString
.
Get
(
"导入自定义卡图「[?]」成功。"
,
fileName
));
}
}
catch
{
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment