Store Iris settings in iris.toml

Moves an existing iris.json over on first load
This commit is contained in:
piexel committed 2026-11-25 19:13:23 +01:00
1 parent 1e04f61957
commit 0bf7c346a2
34 files changed
+403 -174

No files matched your search

@@ -36,11 +36,11 @@ public final class ModdedHelpMessages {
);
public static final TextKey COMMAND_DEBUG_TOGGLE_IRIS_DEBUG_LOGGING_AND_SAVE_SETTINGS_JSON = TextKey.of(
"iris.modded.help.entry.command.debug",
"Toggle Iris debug logging and save iris.json"
"Toggle Iris debug logging and save iris.toml"
);
public static final TextKey COMMAND_RELOAD_RELOAD_SETTINGS_JSON_ALSO_HOTLOADED_AUTOMATICALLY_EVERY_3S = TextKey.of(
"iris.modded.help.entry.command.reload",
"Reload iris.json (also hotloaded automatically every 3s)"
"Reload iris.toml (also hotloaded automatically every 3s)"
);
public static final TextKey COMMAND_DOWNLOAD_DOWNLOAD_A_PACK_PROJECT = TextKey.of(
"iris.modded.help.entry.command.download",
@@ -18,11 +18,10 @@
package art.arcane.iris.modded.service;
import art.arcane.iris.configuration.IrisSettingsFile;
import art.arcane.iris.configuration.SettingsHotloadWatch;
import art.arcane.iris.spi.IrisPlatforms;
import art.arcane.volmlib.nativelib.minecraft26_2.modded.NativeModdedServer;
import java.io.File;
import java.util.concurrent.TimeUnit;
public final class ModdedSettingsHotloadService implements ModdedTickableService {
@@ -31,7 +30,7 @@ public final class ModdedSettingsHotloadService implements ModdedTickableService
@Override
public void onEnable() {
hotloadWatch = new SettingsHotloadWatch(settingsFile());
hotloadWatch = new SettingsHotloadWatch(IrisSettingsFile.location());
lastPollAtNanos = 0L;
}
@@ -58,8 +57,4 @@ public final class ModdedSettingsHotloadService implements ModdedTickableService
lastPollAtNanos = now;
active.checkConfigHotload();
}
private static File settingsFile() {
return IrisPlatforms.get().dataFile("iris.json");
}
}