Skip to content

Commit c7be994

Browse files
mkalkbrennerfreezy
authored andcommitted
Support Serum cROM and cROMc files
1 parent 595e51e commit c7be994

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

LibDmd/Converter/ColorizationLoader.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,11 @@ public AbstractConverter LoadSerum(string gameName, ScalerMode scalerMode)
2525
}
2626

2727
var altColorDir = new DirectoryInfo(Path.Combine(_altcolorPath, gameName));
28-
var serumFile = PathUtil.GetLastCreatedFile(altColorDir, "cRZ");
29-
if (serumFile != null) {
30-
var serumPath = serumFile.FullName;
28+
var serumFileCRZ = PathUtil.GetLastCreatedFile(altColorDir, "cRZ");
29+
var serumFileCROM = PathUtil.GetLastCreatedFile(altColorDir, "cROM");
30+
var serumFileCROMC = PathUtil.GetLastCreatedFile(altColorDir, "cROMc");
31+
if (serumFileCRZ != null || serumFileCROM != null || serumFileCROMC != null) {
32+
var serumPath = serumFileCROMC != null ? serumFileCROMC.FullName : (serumFileCROM != null ? serumFileCROM.FullName : serumFileCRZ.FullName);
3133
try {
3234
var serum = new Serum.Serum(_altcolorPath, gameName, scalerMode);
3335
if (serum.IsLoaded) {
@@ -100,3 +102,4 @@ public AbstractConverter LoadPlugin(PluginConfig[] pluginConfigs, bool colorize,
100102
}
101103
}
102104
}
105+

0 commit comments

Comments
 (0)