Skip to content

Commit

Permalink
gradl
Browse files Browse the repository at this point in the history
  • Loading branch information
Leclowndu93150 committed Dec 11, 2024
1 parent d0f8f91 commit 4c70b1d
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 10 deletions.
31 changes: 24 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,7 @@ configurations {
}

dependencies {






implementation sourceSets.doom.output
}

// This block of code expands all declared replace properties in the specified resource targets.
Expand Down Expand Up @@ -177,7 +172,29 @@ sourceSets {
main {
java {
// Include the default `src/main/java` and the additional `src/doom` folder
srcDirs = ['src/main/java', 'src/doom']
srcDirs = ['src/main/java']
}
}
}

sourceSets {
doom {
java {
srcDirs = ['src/doom']
}
resources {
srcDirs = ['src/doom/resources']
}
}
}

neoForge {
addModdingDependenciesTo sourceSets.doom

mods {
"${mod_id}" {
sourceSet sourceSets.main
sourceSet sourceSets.doom
}
}
}
11 changes: 8 additions & 3 deletions src/main/java/com/portingdeadmods/doomstation/DSMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,17 @@ public class DSMain
public static final String MODID = "doomstation";
private static final Logger LOGGER = LogUtils.getLogger();

String[] args = {"-iwad DOOMU.WAD"};

public DSMain(IEventBus modEventBus, ModContainer modContainer) throws IOException {
RegisterStuff.CREATIVE_MODE_TABS.register(modEventBus);
RegisterStuff.ITEMS.register(modEventBus);
Engine.main(args);
new Thread(() -> {
try {
Engine.main(new String[]{});
System.out.println("Engine started");
} catch (IOException e) {
e.printStackTrace();
}
}).start();
//modContainer.registerConfig(ModConfig.Type.COMMON, Config.SPEC);
}

Expand Down
Binary file added tranmap.dat
Binary file not shown.

0 comments on commit 4c70b1d

Please sign in to comment.