Skip to content

Commit

Permalink
can't run this piece of shit
Browse files Browse the repository at this point in the history
  • Loading branch information
Leclowndu93150 committed Dec 11, 2024
1 parent 575f280 commit 9e0a4db
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 2 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/doom/defines/DoomVersion.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public enum DoomVersion {
PLUTONIA_WAD("plutonia.wad"),
TNT_WAD("tnt.wad"),
XBLA_WAD("xbla.wad"),
DOOMU_WAD("doomu.wad"),
DOOMU_WAD("wads/doomu.wad"),
UDOOM_WAD("udoom.wad"),
DOOM_WAD("doom.wad"),
DOOM1_WAD("doom1.wad"),
Expand Down
6 changes: 6 additions & 0 deletions src/doom/doom/DoomMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -743,13 +743,16 @@ public final String IdentifyVersion() {
// First, check for -iwad parameter.
// If valid, then it trumps all others.
if (cVarManager.present(CommandVariable.IWAD)) {
System.out.println("IWAD specified.");
LOGGER.log(Level.INFO, "-iwad specified. Will be used with priority");
// It might be quoted.
final String test = C2JUtils.unquoteIfQuoted(cVarManager.get(CommandVariable.IWAD, String.class, 0).get(), '"');
final String separator = System.getProperty("file.separator");
final String iwad = test.substring(1 + test.lastIndexOf(separator));
doomwaddir = test.substring(0, 1 + test.lastIndexOf(separator));

System.out.println("IWAD: " + iwad);
System.out.println("DOOMWADDIR: " + doomwaddir);
final GameMode attempt = DoomVersion.tryOnlyOne(iwad, doomwaddir);
// Note: at this point we can't distinguish between "doom" retail
// and "doom" ultimate yet.
Expand All @@ -771,6 +774,9 @@ public final String IdentifyVersion() {
if (!eval(doomwaddir)) {
doomwaddir = ".";
}

doomwaddir = "C:/Users/Abdel/IdeaProjects/DoomStation/src/doom/wads/";

}

for (GameMode mode : GameMode.values()) {
Expand Down
3 changes: 2 additions & 1 deletion src/doom/run.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

public class run {

static String[] commandVariables = {"-iwad C:/Users/Abdel/IdeaProjects/DoomStation/src/doom/doomu.wad"};
static String[] commandVariables = {"-iwad C:/Users/Abdel/IdeaProjects/DoomStation/src/doom/wads/"};
static String[] empty = {};

public static void main(String[] args) throws IOException {
Engine.main(commandVariables);
Expand Down
Binary file added src/doom/wads/doomu.wad
Binary file not shown.

0 comments on commit 9e0a4db

Please sign in to comment.