2023-03-15 21:52:13 +00:00
|
|
|
// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers
|
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
2022-06-19 10:21:41 +00:00
|
|
|
pluginManagement {
|
2022-11-10 19:32:13 +00:00
|
|
|
// Duplicated in buildSrc/build.gradle.kts
|
2022-06-19 10:21:41 +00:00
|
|
|
repositories {
|
2022-11-10 19:32:13 +00:00
|
|
|
mavenCentral()
|
2022-06-19 10:21:41 +00:00
|
|
|
gradlePluginPortal()
|
2022-11-10 19:32:13 +00:00
|
|
|
|
|
|
|
maven("https://maven.minecraftforge.net") {
|
|
|
|
name = "Forge"
|
|
|
|
content {
|
|
|
|
includeGroup("net.minecraftforge")
|
|
|
|
includeGroup("net.minecraftforge.gradle")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
maven("https://maven.parchmentmc.org") {
|
|
|
|
name = "Librarian"
|
|
|
|
content {
|
|
|
|
includeGroupByRegex("^org\\.parchmentmc.*")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
maven("https://repo.spongepowered.org/repository/maven-public/") {
|
|
|
|
name = "Sponge"
|
|
|
|
content {
|
|
|
|
includeGroup("org.spongepowered")
|
|
|
|
includeGroup("org.spongepowered.gradle.vanilla")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
maven("https://maven.fabricmc.net/") {
|
|
|
|
name = "Fabric"
|
|
|
|
content {
|
|
|
|
includeGroup("fabric-loom")
|
|
|
|
includeGroup("net.fabricmc")
|
|
|
|
}
|
|
|
|
}
|
2022-06-19 10:21:41 +00:00
|
|
|
}
|
2022-11-10 19:32:13 +00:00
|
|
|
|
2022-06-19 10:21:41 +00:00
|
|
|
resolutionStrategy {
|
|
|
|
eachPlugin {
|
|
|
|
if (requested.id.id == "org.spongepowered.mixin") {
|
|
|
|
useModule("org.spongepowered:mixingradle:${requested.version}")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-10-22 20:09:08 +00:00
|
|
|
val mcVersion: String by settings
|
|
|
|
rootProject.name = "cc-tweaked-$mcVersion"
|
2022-11-04 21:41:59 +00:00
|
|
|
|
|
|
|
include(":core-api")
|
2022-11-04 22:31:56 +00:00
|
|
|
include(":core")
|
2022-11-06 15:07:13 +00:00
|
|
|
|
|
|
|
include(":common-api")
|
2022-11-09 23:58:56 +00:00
|
|
|
include(":common")
|
2022-11-10 19:32:13 +00:00
|
|
|
include(":fabric-api")
|
|
|
|
include(":fabric")
|
2022-11-06 15:07:13 +00:00
|
|
|
include(":forge-api")
|
2022-11-09 23:58:56 +00:00
|
|
|
include(":forge")
|
2022-11-06 15:07:13 +00:00
|
|
|
|
2022-11-09 18:58:31 +00:00
|
|
|
include(":lints")
|
Add a standalone CC:T UI
Does it count as an emulator when it's official? I hope not, as this'd
make it my fourth or fifth emulator at this point.
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Developing/debugging CraftOS is a massive pain to do inside Minecraft,
as any change to resources requires a compile+hot swap cycle (and
sometimes a `/reload` in-game). As such, it's often more convenient to
spin up an emulator, pointing it to load the ROM from CC:T's sources.
However, this isn't practical when also making changes to the Java
classes. In this case, we either need to go in-game, or build a custom
version of CCEmuX.
This commit offers an alternative option: we now have our own emulator,
which allows us to hot swap both Lua and Java to our heart's content.
Most of the code here is based on our monitor TBO renderer. We probably
could share some more of this, but there's not really a good place for
it - feels a bit weird just to chuck it in :core.
This is *not* a general-purpose emulator. It's limited in a lot of
ways (won't launch on Mac[^1], no support for multiple computers) - just
stick to what's there already.
[^1]: We require OpenGL 4.5 due to our use of DSA.
2023-10-28 16:55:56 +00:00
|
|
|
include(":standalone")
|
2022-11-06 13:37:07 +00:00
|
|
|
include(":web")
|
2022-11-04 21:41:59 +00:00
|
|
|
|
|
|
|
for (project in rootProject.children) {
|
|
|
|
project.projectDir = file("projects/${project.name}")
|
|
|
|
}
|