gdx 1.11 update; shader update for mac

This commit is contained in:
minjaesong
2023-03-01 00:01:59 +09:00
parent 09b79f7dd1
commit f4b8188a46
146 changed files with 114 additions and 175 deletions

View File

@@ -13,7 +13,7 @@ object JsonFetcher {
@Throws(java.io.IOException::class)
operator fun invoke(jsonFilePath: String): JsonValue {
jsonString = StringBuffer() // reset buffer every time it called
readJsonFileAsString(jsonFilePath)
try { readJsonFileAsString(jsonFilePath) } catch (e: NoSuchFileException) { jsonString = null }
// printdbg(this, "Reading JSON $jsonFilePath")
@@ -27,7 +27,8 @@ object JsonFetcher {
@Throws(java.io.IOException::class)
operator fun invoke(jsonFile: java.io.File): JsonValue {
jsonString = StringBuffer() // reset buffer every time it called
readJsonFileAsString(jsonFile.canonicalPath)
try { readJsonFileAsString(jsonFile.canonicalPath) } catch (e: NoSuchFileException) { jsonString = null }
// printdbg(this, "Reading JSON ${jsonFile.path}")

View File

@@ -22,6 +22,7 @@ public class AppLoader {
ShaderProgram.pedantic = false;
appConfig = new Lwjgl3ApplicationConfiguration();
appConfig.setOpenGLEmulation(Lwjgl3ApplicationConfiguration.GLEmulation.GL30, 3, 2);
appConfig.setIdleFPS(60);
appConfig.setForegroundFPS(60);
appConfig.useVsync(false);

View File

@@ -83,6 +83,7 @@ public class TsvmEmulator {
HEIGHT = VIEWPORT_H * PANELS_Y;
appConfig = new Lwjgl3ApplicationConfiguration();
appConfig.setOpenGLEmulation(Lwjgl3ApplicationConfiguration.GLEmulation.GL30, 3, 2);
appConfig.setIdleFPS(60);
appConfig.setForegroundFPS(60);
appConfig.useVsync(false);