mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-05 06:25:46 +00:00
Mac OS X: Implemented MacOSXDisplay.openURL()
This commit is contained in:
parent
2ee1ff3713
commit
567f89515d
1 changed files with 10 additions and 1 deletions
|
|
@ -51,6 +51,7 @@ import java.lang.reflect.Proxy;
|
|||
import java.nio.ByteBuffer;
|
||||
import java.nio.FloatBuffer;
|
||||
import java.nio.IntBuffer;
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
|
|
@ -375,8 +376,16 @@ final class MacOSXDisplay implements DisplayImplementation {
|
|||
return GL11.glGetString(GL11.GL_EXTENSIONS).indexOf("GL_APPLE_pixel_buffer") != -1 ? Pbuffer.PBUFFER_SUPPORTED : 0;
|
||||
}
|
||||
|
||||
/* Use the com.apple.eio.FileManager Mac OS X extension to show the given URL */
|
||||
public boolean openURL(String url) {
|
||||
return false;
|
||||
try {
|
||||
Class com_apple_eio_FileManager = Class.forName("com.apple.eio.FileManager");
|
||||
Method openURL_method = com_apple_eio_FileManager.getMethod("openURL", new Class[]{String.class});
|
||||
openURL_method.invoke(null, new Object[]{url});
|
||||
return true;
|
||||
} catch (Exception e) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue