mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-03-08 12:11:51 +09:00
gdx 1.11 update; shader update for mac
This commit is contained in:
@@ -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}")
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user