Skip to content

Commit

Permalink
Merge pull request #2161 from Windchild292/dev_Windchild_FileFactory
Browse files Browse the repository at this point in the history
File Factory Standardization
  • Loading branch information
Windchild292 authored Nov 4, 2020
2 parents 6b4b54b + d23fcd0 commit f4dfef7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 219 deletions.
7 changes: 3 additions & 4 deletions MekHQ/src/mekhq/MHQStaticDirectoryManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
import megamek.common.annotations.Nullable;
import megamek.common.icons.AbstractIcon;
import megamek.common.util.fileUtils.DirectoryItems;
import megamek.common.util.fileUtils.ImageFileFactory;
import mekhq.campaign.force.Force;
import mekhq.gui.enums.LayeredForceIcon;
import mekhq.gui.utilities.PortraitFileFactory;

import java.awt.*;
import java.awt.image.BufferedImage;
Expand All @@ -50,7 +50,6 @@ protected MHQStaticDirectoryManager() {
}
//endregion Constructors


//region Initialization
/**
* This initialized all of the directories under this manager
Expand All @@ -73,7 +72,7 @@ private static void initializeForceIcons() {
parseForceIconDirectory = false;
try {
forceIconDirectory = new DirectoryItems(new File("data/images/force"),
"", PortraitFileFactory.getInstance());
"", new ImageFileFactory());
} catch (Exception e) {
MegaMek.getLogger().error("Could not parse the force icon directory!", e);
}
Expand All @@ -92,7 +91,7 @@ private static void initializeAwardIcons() {
parseAwardIconDirectory = false;
try {
awardIconDirectory = new DirectoryItems(new File("data/images/awards"),
"", PortraitFileFactory.getInstance());
"", new ImageFileFactory());
} catch (Exception e) {
MegaMek.getLogger().error("Could not parse the award icon directory!", e);
}
Expand Down
215 changes: 0 additions & 215 deletions MekHQ/src/mekhq/gui/utilities/PortraitFileFactory.java

This file was deleted.

0 comments on commit f4dfef7

Please sign in to comment.