idea runconfig

This commit is contained in:
minjaesong
2021-11-09 21:27:08 +09:00
parent dc0de876d5
commit 60547a7d21
4 changed files with 22 additions and 5 deletions

17
.idea/runConfigurations/App.xml generated Normal file
View File

@@ -0,0 +1,17 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="App" type="Application" factoryName="Application">
<option name="ALTERNATIVE_JRE_PATH" value="1.8.0_242" />
<option name="MAIN_CLASS_NAME" value="net.torvald.terrarum.App" />
<module name="terrarum.terrarum" />
<option name="VM_PARAMETERS" value="-ea" />
<extension name="coverage">
<pattern>
<option name="PATTERN" value="net.torvald.terrarum.*" />
<option name="ENABLED" value="true" />
</pattern>
</extension>
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
</component>

View File

@@ -110,8 +110,8 @@ internal class UnsafePtr(pointer: Long, allocSize: Long) {
// You may break the glass and use this tool when some fucking incomprehensible bugs ("vittujen vitun bugit")
// appear (e.g. getting garbage values when it fucking shouldn't)
// assert(!destroyed) { throw NullPointerException("The pointer is already destroyed ($this)") }
// if (index !in 0 until size) throw IndexOutOfBoundsException("Index: $index; alloc size: $size")
assert(!destroyed) { throw NullPointerException("The pointer is already destroyed ($this)") }
assert(index in 0 until size) { throw IndexOutOfBoundsException("Index: $index; alloc size: $size") }
}
operator fun get(index: Long): Byte {

View File

@@ -34,8 +34,8 @@ import net.torvald.terrarum.langpack.Lang;
import net.torvald.terrarum.modulebasegame.IngameRenderer;
import net.torvald.terrarum.modulebasegame.TerrarumIngame;
import net.torvald.terrarum.modulebasegame.ui.ItemSlotImageFactory;
import net.torvald.terrarum.serialise.WriteConfig;
import net.torvald.terrarum.savegame.DiskSkimmer;
import net.torvald.terrarum.serialise.WriteConfig;
import net.torvald.terrarum.ui.Toolkit;
import net.torvald.terrarum.utils.JsonFetcher;
import net.torvald.terrarum.worlddrawer.CreateTileAtlas;
@@ -842,7 +842,7 @@ public class App implements ApplicationListener {
tileMaker = new CreateTileAtlas();
tileMaker.invoke(false);
IME.INSTANCE.invoke();
IME.invoke();
Terrarum.initialise();

View File

@@ -88,7 +88,7 @@ object IME {
}
}
fun invoke() {}
@JvmStatic fun invoke() {}
fun getLowLayerByName(name: String): TerrarumKeyLayout {
return lowLayers[name.lowercase()]!!