kitgit

tirbofish/dropbear · commit

42c1d639374e9ee87f6571425d0f1dffcf2009a1

RELOAD ON DEMAND FINALLY WORKS HUZZAHHHHHHHH!!!! After so long on working on this component of scripting, I have finally gotten reloading working. Thanks to [this article](https://archive.md/WnlBC) and help from my chinese goat Qwen, I have managed to successfully get reload on demand working, as taken from things such as Unity and Unreal. This is really big news as I have had too many hours sunk into this. Ready to merge!

Unverified

tk <4tkbytes@pm.me> · 2025-10-15 10:35

view full diff

diff --git a/build.gradle.kts b/build.gradle.kts
index 38a2db5..639a8a0 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -92,7 +92,8 @@ kotlin {
     sourceSets {
         commonMain {
             dependencies {
-                api("co.touchlab:kermit:2.0.4")
+//                api("co.touchlab:kermit:2.0.4")
+                implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.6.0")
             }
         }
         nativeMain {
@@ -114,6 +115,10 @@ kotlin {
             compileTaskProvider.configure {
                 compilerOptions {
                     freeCompilerArgs.add("-Xexpect-actual-classes")
+                    // reminding kotlin that this is a library and not an executable
+                    freeCompilerArgs.add("-Xsuppress-warning=UNUSED_PARAMETER")
+                    freeCompilerArgs.add("-Xsuppress-warning=UNUSED_VARIABLE")
+                    freeCompilerArgs.add("-Xsuppress-warning=UNUSED_PRIVATE_MEMBER")
                 }
             }
         }
@@ -173,4 +178,21 @@ publishing {
             }
         }
     }
-}
\ No newline at end of file
+}
+
+tasks.register<Jar>("fatJar") {
+    archiveClassifier.set("all")
+    duplicatesStrategy = DuplicatesStrategy.EXCLUDE
+
+    from(kotlin.jvm().compilations["main"].output)
+
+    configurations.named("jvmRuntimeClasspath").get().forEach { file ->
+        if (file.name.endsWith(".jar")) {
+            from(zipTree(file))
+        } else {
+            from(file)
+        }
+    }
+
+    manifest {}
+}
diff --git a/dropbear-engine/src/graphics.rs b/dropbear-engine/src/graphics.rs

Large diffs are not rendered by default. Showing the first 50 of 1617 lines. Show full diff