mirror of
https://github.com/GTNewHorizons/lwjgl3ify.git
synced 2026-11-21 12:42:15 +00:00
Use RetroFuturaBootstrap instead of LaunchWrapper, significant compatibility improvements (#113)
* Start work on RFB bundling/support * Use the first RFB release * Upgrade GSON, RFB, migrate lwjglx redirector to an rfb plugin * Update rfb again * Update to RFB 0.3 APIs * Migrate LCL transformers to RFB * Update release workflow * Fix server main class name * Update RFB with the server fix * Forgot Spotless... * Fix maven publishing of snapshots * Prism: Use included forgePatches jar instead of downloading from Nexus * Fix crash when config/ doesn't already exist * Change server entry point to a custom class, remove SLW forge patch. * Move ASM upgrade to a batch transformer in RFB * Bump RFB * Update Apache Commons Compress * Start work on the relauncher coremod * Update bs&rfb * Fix latest GTNHGradle compat * Update dep versions * Kotlinify buildscript * Fix some more kts bugs, make it easier to run with GT * Fix coremod not loading * Fix remaining LCL.getSources issues that caused e.g. broken NEI handlers * RIP forge patches, you won't be missed * Start on parsing version.json in the relauncher * WIP library downloader * Skip downloading existing files, exit without tripping the SecurityManager * Add missing relauncher libraries, fix jvm arg order * Fix lwjgl3ify not loading itself as a mod, not downloading the main client jar * Progress bar dialog for library downloads * Start work on relauncher guis * Working java detection and selection on Linux * Fix use of some library functions not present in a lwjgl3ify-less instance * Include the ServerMain class in the forgepatches jar * Relauncher stub + graphical console for the new instance * Add a fallback $VALUES search loop * Switch from Rhino to Nashorn for JS * Update rfb and apache commons-lang3 * Fix ItemStackHolder setting, simplify both object holders Closes #93 * Add missing lwjgl.util subpackages Closes #92 * Bump RFB with more asm fixes Closes #37 * Update RFB with the dragonapi fix * Exclude nashorn from LCL to avoid coremods complaining about it * Add proxy lwjglx calls to lwjgl dummy Keyboard/Mouse classes for reflection * Add InputEvents API, handle Minecraft keybindings with it to fix dead key support * Update RFB * Fix some warnings * Add OSX and Windows JVM installation scanning * Start work on translatable strings in the relauncher GUI * Spotless, fix being able to walk with inventory screen open Closes #123 * Update rfb with the java.lang.Compiler fix * Finish rest of gui translations, allow any whitespace to split args, assign very little ram to the bootstrapper process * Add a manifest attribute to more conveniently opt-out of lwjgl3ify transformers * Update RFB, commons-compress, shade in newer commons-io too * Remove the server jar name from java9argx.txt * Update RFB with the #127 fix * Add LiteLoader compatibility, tested with Voxelmap Closes #67 * GL tweaks: move glGetString safety check into bindings, fix GL debug log notification spam * Implement custom OpenGL context version&profile settings via the LWJGL2 Display API * Simple sharedDrawable implementation * Downgrade the servlet api to fix journeymap's new webmap crash * Add sun.awt opens * README updates * RFB 1.0.0 (no changes from 0.4.1)
This commit is contained in:
1 parent
2229295b9f
commit
6769363d96
97 files changed
+9560
-2484
No files matched your search
@@ -1,5 +1,7 @@
|
||||
package org.lwjgl.input;
|
||||
|
||||
import org.lwjglx.LWJGLException;
|
||||
|
||||
public class Keyboard {
|
||||
|
||||
public static final int CHAR_NONE = (int) 0;
|
||||
@@ -140,71 +142,71 @@ public class Keyboard {
|
||||
public static final int KEY_Z = (int) 44;
|
||||
|
||||
public static boolean areRepeatEventsEnabled() {
|
||||
throw new UnsupportedOperationException();
|
||||
return org.lwjglx.input.Keyboard.areRepeatEventsEnabled();
|
||||
}
|
||||
|
||||
public static void create() {
|
||||
throw new UnsupportedOperationException();
|
||||
public static void create() throws LWJGLException {
|
||||
org.lwjglx.input.Keyboard.create();
|
||||
}
|
||||
|
||||
public static void destroy() {
|
||||
throw new UnsupportedOperationException();
|
||||
org.lwjglx.input.Keyboard.destroy();
|
||||
}
|
||||
|
||||
public static void enableRepeatEvents(boolean arg0) {
|
||||
throw new UnsupportedOperationException();
|
||||
org.lwjglx.input.Keyboard.enableRepeatEvents(arg0);
|
||||
}
|
||||
|
||||
public static char getEventCharacter() {
|
||||
throw new UnsupportedOperationException();
|
||||
return org.lwjglx.input.Keyboard.getEventCharacter();
|
||||
}
|
||||
|
||||
public static int getEventKey() {
|
||||
throw new UnsupportedOperationException();
|
||||
return org.lwjglx.input.Keyboard.getEventKey();
|
||||
}
|
||||
|
||||
public static boolean getEventKeyState() {
|
||||
throw new UnsupportedOperationException();
|
||||
return org.lwjglx.input.Keyboard.getEventKeyState();
|
||||
}
|
||||
|
||||
public static long getEventNanoseconds() {
|
||||
throw new UnsupportedOperationException();
|
||||
return org.lwjglx.input.Keyboard.getEventNanoseconds();
|
||||
}
|
||||
|
||||
public static int getKeyCount() {
|
||||
throw new UnsupportedOperationException();
|
||||
return org.lwjglx.input.Keyboard.getKeyCount();
|
||||
}
|
||||
|
||||
public static int getKeyIndex(java.lang.String arg0) {
|
||||
throw new UnsupportedOperationException();
|
||||
return org.lwjglx.input.Keyboard.getKeyIndex(arg0);
|
||||
}
|
||||
|
||||
public static java.lang.String getKeyName(int arg0) {
|
||||
throw new UnsupportedOperationException();
|
||||
return org.lwjglx.input.Keyboard.getKeyName(arg0);
|
||||
}
|
||||
|
||||
public static int getNumKeyboardEvents() {
|
||||
throw new UnsupportedOperationException();
|
||||
return org.lwjglx.input.Keyboard.getNumKeyboardEvents();
|
||||
}
|
||||
|
||||
public static boolean isCreated() {
|
||||
throw new UnsupportedOperationException();
|
||||
return org.lwjglx.input.Keyboard.isCreated();
|
||||
}
|
||||
|
||||
public static boolean isKeyDown(int arg0) {
|
||||
throw new UnsupportedOperationException();
|
||||
return org.lwjglx.input.Keyboard.isKeyDown(arg0);
|
||||
}
|
||||
|
||||
public static boolean isRepeatEvent() {
|
||||
throw new UnsupportedOperationException();
|
||||
return org.lwjglx.input.Keyboard.isRepeatEvent();
|
||||
}
|
||||
|
||||
public static boolean next() {
|
||||
throw new UnsupportedOperationException();
|
||||
return org.lwjglx.input.Keyboard.next();
|
||||
}
|
||||
|
||||
public static void poll() {
|
||||
throw new UnsupportedOperationException();
|
||||
org.lwjglx.input.Keyboard.poll();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,99 +1,101 @@
|
||||
package org.lwjgl.input;
|
||||
|
||||
import org.lwjglx.LWJGLException;
|
||||
|
||||
public class Mouse {
|
||||
|
||||
public static final int EVENT_SIZE = (int) 22;
|
||||
|
||||
public static void create() {
|
||||
throw new UnsupportedOperationException();
|
||||
public static void create() throws LWJGLException {
|
||||
org.lwjglx.input.Mouse.create();
|
||||
}
|
||||
|
||||
public static void destroy() {
|
||||
throw new UnsupportedOperationException();
|
||||
org.lwjglx.input.Mouse.destroy();
|
||||
}
|
||||
|
||||
public static int getButtonCount() {
|
||||
throw new UnsupportedOperationException();
|
||||
return org.lwjglx.input.Mouse.getButtonCount();
|
||||
}
|
||||
|
||||
public static int getButtonIndex(java.lang.String arg0) {
|
||||
throw new UnsupportedOperationException();
|
||||
return org.lwjglx.input.Mouse.getButtonIndex(arg0);
|
||||
}
|
||||
|
||||
public static java.lang.String getButtonName(int arg0) {
|
||||
throw new UnsupportedOperationException();
|
||||
return org.lwjglx.input.Mouse.getButtonName(arg0);
|
||||
}
|
||||
|
||||
public static int getDWheel() {
|
||||
throw new UnsupportedOperationException();
|
||||
return org.lwjglx.input.Mouse.getDWheel();
|
||||
}
|
||||
|
||||
public static int getDX() {
|
||||
throw new UnsupportedOperationException();
|
||||
return org.lwjglx.input.Mouse.getDX();
|
||||
}
|
||||
|
||||
public static int getDY() {
|
||||
throw new UnsupportedOperationException();
|
||||
return org.lwjglx.input.Mouse.getDY();
|
||||
}
|
||||
|
||||
public static int getEventButton() {
|
||||
throw new UnsupportedOperationException();
|
||||
return org.lwjglx.input.Mouse.getEventButton();
|
||||
}
|
||||
|
||||
public static boolean getEventButtonState() {
|
||||
throw new UnsupportedOperationException();
|
||||
return org.lwjglx.input.Mouse.getEventButtonState();
|
||||
}
|
||||
|
||||
public static int getEventDWheel() {
|
||||
throw new UnsupportedOperationException();
|
||||
return org.lwjglx.input.Mouse.getEventDWheel();
|
||||
}
|
||||
|
||||
public static int getEventDX() {
|
||||
throw new UnsupportedOperationException();
|
||||
return org.lwjglx.input.Mouse.getEventDX();
|
||||
}
|
||||
|
||||
public static int getEventDY() {
|
||||
throw new UnsupportedOperationException();
|
||||
return org.lwjglx.input.Mouse.getEventDY();
|
||||
}
|
||||
|
||||
public static long getEventNanoseconds() {
|
||||
throw new UnsupportedOperationException();
|
||||
return org.lwjglx.input.Mouse.getEventNanoseconds();
|
||||
}
|
||||
|
||||
public static int getEventX() {
|
||||
throw new UnsupportedOperationException();
|
||||
return org.lwjglx.input.Mouse.getEventX();
|
||||
}
|
||||
|
||||
public static int getEventY() {
|
||||
throw new UnsupportedOperationException();
|
||||
return org.lwjglx.input.Mouse.getEventY();
|
||||
}
|
||||
|
||||
public static org.lwjgl.input.Cursor getNativeCursor() {
|
||||
throw new UnsupportedOperationException();
|
||||
return null;
|
||||
}
|
||||
|
||||
public static int getX() {
|
||||
throw new UnsupportedOperationException();
|
||||
return org.lwjglx.input.Mouse.getX();
|
||||
}
|
||||
|
||||
public static int getY() {
|
||||
throw new UnsupportedOperationException();
|
||||
return org.lwjglx.input.Mouse.getY();
|
||||
}
|
||||
|
||||
public static boolean hasWheel() {
|
||||
throw new UnsupportedOperationException();
|
||||
return org.lwjglx.input.Mouse.hasWheel();
|
||||
}
|
||||
|
||||
public static boolean isButtonDown(int arg0) {
|
||||
throw new UnsupportedOperationException();
|
||||
return org.lwjglx.input.Mouse.isButtonDown(arg0);
|
||||
}
|
||||
|
||||
public static boolean isClipMouseCoordinatesToWindow() {
|
||||
throw new UnsupportedOperationException();
|
||||
return org.lwjglx.input.Mouse.isClipMouseCoordinatesToWindow();
|
||||
}
|
||||
|
||||
public static boolean isCreated() {
|
||||
throw new UnsupportedOperationException();
|
||||
return org.lwjglx.input.Mouse.isCreated();
|
||||
}
|
||||
|
||||
public static boolean isGrabbed() {
|
||||
@@ -101,23 +103,23 @@ public class Mouse {
|
||||
}
|
||||
|
||||
public static boolean isInsideWindow() {
|
||||
throw new UnsupportedOperationException();
|
||||
return org.lwjglx.input.Mouse.isInsideWindow();
|
||||
}
|
||||
|
||||
public static boolean next() {
|
||||
throw new UnsupportedOperationException();
|
||||
return org.lwjglx.input.Mouse.next();
|
||||
}
|
||||
|
||||
public static void poll() {
|
||||
throw new UnsupportedOperationException();
|
||||
org.lwjglx.input.Mouse.poll();
|
||||
}
|
||||
|
||||
public static void setClipMouseCoordinatesToWindow(boolean arg0) {
|
||||
throw new UnsupportedOperationException();
|
||||
org.lwjglx.input.Mouse.setClipMouseCoordinatesToWindow(arg0);
|
||||
}
|
||||
|
||||
public static void setCursorPosition(int arg0, int arg1) {
|
||||
throw new UnsupportedOperationException();
|
||||
org.lwjglx.input.Mouse.setCursorPosition(arg0, arg1);
|
||||
}
|
||||
|
||||
public static void setGrabbed(boolean arg0) {
|
||||
@@ -125,10 +127,10 @@ public class Mouse {
|
||||
}
|
||||
|
||||
public static org.lwjgl.input.Cursor setNativeCursor(org.lwjgl.input.Cursor arg0) {
|
||||
throw new UnsupportedOperationException();
|
||||
return null;
|
||||
}
|
||||
|
||||
public static void updateCursor() {
|
||||
throw new UnsupportedOperationException();
|
||||
org.lwjglx.input.Mouse.updateCursor();
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
package org.lwjglx.opengl;
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
public class GL11 {
|
||||
|
||||
public static final int GL_2D = (int) 1536;
|
||||
@@ -1001,7 +1002,19 @@ public class GL11 {
|
||||
}
|
||||
|
||||
public static java.lang.String glGetString(int name) {
|
||||
return org.lwjgl.opengl.GL11.glGetString(name);
|
||||
// Prevent crashes when trying to access GL_RENDERER etc. from the crash report handler
|
||||
boolean hasGlContext = true;
|
||||
try {
|
||||
org.lwjgl.opengl.GL.getCapabilities();
|
||||
} catch (IllegalStateException ise) {
|
||||
// No OpenGL context in current thread
|
||||
hasGlContext = false;
|
||||
}
|
||||
if (hasGlContext) {
|
||||
return org.lwjgl.opengl.GL11.glGetString(name);
|
||||
} else {
|
||||
return "no valid GL context";
|
||||
}
|
||||
}
|
||||
|
||||
public static void glGetTexEnv(int coord, int pname, java.nio.FloatBuffer params) {
|
||||
|
||||
Reference in new issue
Block a user