Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
I
ImgGen
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
MyCard
ImgGen
Commits
a844d1bb
Commit
a844d1bb
authored
Mar 25, 2024
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "skip image when data not exists"
This reverts commit
ec60aea7
.
parent
ec60aea7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
DataManager.cs
DataManager.cs
+9
-1
ImageManager.cs
ImageManager.cs
+0
-4
No files found.
DataManager.cs
View file @
a844d1bb
...
...
@@ -53,7 +53,14 @@ namespace ImgGen
else
{
Console
.
WriteLine
(
$"Card
{
code
}
not found!"
);
return
null
;
Data
data
=
new
Data
{
code
=
code
,
name
=
"???"
,
text
=
"???"
};
return
data
;
}
}
public
static
string
FormatCardDesc
(
string
r
)
...
...
@@ -84,3 +91,4 @@ namespace ImgGen
}
}
}
ImageManager.cs
View file @
a844d1bb
...
...
@@ -149,10 +149,6 @@ namespace ImgGen
public
Bitmap
GetImage
(
int
code
)
{
Data
data
=
DataManager
.
GetData
(
code
);
if
(
data
==
null
)
{
return
null
;
}
return
DrawCard
(
data
);
}
...
...
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