-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Rewrote the main menu GUI detection code to be much cleaner - Removed the class path config since it's no longer needed - Refactored some code parts in anticipation for 3.0 - Bumped Zip4J version to 2.11.5 - Bumped version number to 2.6
- Loading branch information
1 parent
854cae9
commit 5d495e6
Showing
29 changed files
with
162 additions
and
265 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
src/main/java/com/hrudyplayz/mcinstanceloader/ForgeMod.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package com.hrudyplayz.mcinstanceloader; | ||
|
||
import cpw.mods.fml.common.Mod; | ||
import cpw.mods.fml.common.event.FMLPreInitializationEvent; | ||
import com.hrudyplayz.mcinstanceloader.utils.LogHelper; | ||
import org.apache.logging.log4j.Level; | ||
|
||
|
||
@Mod(modid = ModProperties.MODID, name = ModProperties.NAME, version = ModProperties.VERSION) | ||
public class ForgeMod { | ||
|
||
@Mod.EventHandler | ||
public void preInit(FMLPreInitializationEvent event) { | ||
// The preInit event, that gets called as soon as possible in Forge's loading. Basically the entire mod. | ||
// First phrase of the mod, gets ran at the game launch. | ||
|
||
// ===== STEP 0: The mod's initialisation. ===== | ||
Main.initMod(event); | ||
|
||
// ===== STEP 1: Cleanup phase ===== | ||
Main.cleanupFiles(); | ||
LogHelper.appendToLog(Level.INFO, "", true); // Adds an empty line to the log file, to make it more readable. | ||
|
||
// ===== STEP 2: Check for updates ===== | ||
Main.updateChecker(); | ||
|
||
Main.secondPhase(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.