forked from isXander/Shotify
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
85 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,11 +8,19 @@ import gg.essential.vigilance.data.PropertyType | |
import net.minecraft.client.resource.language.I18n | ||
import dev.deftu.screencapper.Screencapper | ||
import dev.deftu.screencapper.gui.preview.PreviewPosition | ||
import net.fabricmc.loader.api.FabricLoader | ||
import java.io.File | ||
|
||
private val configFile = File(dev.deftu.screencapper.Screencapper.configDirectory, "screencapper.toml").apply { | ||
if (!parentFile.exists()) parentFile.mkdirs() | ||
if (!exists()) createNewFile() | ||
val deftuDir by lazy { | ||
val deftuDir = File(FabricLoader.getInstance().gameDir.toFile(), "Deftu") | ||
if (!deftuDir.exists() && !deftuDir.mkdirs()) | ||
throw IllegalStateException("Could not create Deftu directory!") | ||
|
||
deftuDir | ||
} | ||
|
||
private val configFile by lazy { | ||
File(deftuDir, "@[email protected]") | ||
} | ||
|
||
object ScreencapperConfig : Vigilant( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters