[GDNative] basic OS detection
This commit is contained in:
parent
0a74fb625e
commit
5e1abaf348
1 changed files with 11 additions and 2 deletions
|
@ -65,8 +65,17 @@ String GDNativeLibrary::platform_lib_ext[NUM_PLATFORMS] = {
|
||||||
"wasm"
|
"wasm"
|
||||||
};
|
};
|
||||||
|
|
||||||
// TODO(karroffel): make this actually do something lol.
|
// TODO(karroffel): make this actually do the right thing.
|
||||||
GDNativeLibrary::Platform GDNativeLibrary::current_platform = X11_64BIT;
|
GDNativeLibrary::Platform GDNativeLibrary::current_platform =
|
||||||
|
#if defined(X11_ENABLED)
|
||||||
|
X11_64BIT;
|
||||||
|
#elif defined(WINDOWS_ENABLED)
|
||||||
|
WINDOWS_64BIT;
|
||||||
|
#elif defined(OSX_ENABLED)
|
||||||
|
OSX;
|
||||||
|
#else
|
||||||
|
X11_64BIT; // need a sensible default..
|
||||||
|
#endif
|
||||||
|
|
||||||
GDNativeLibrary::GDNativeLibrary()
|
GDNativeLibrary::GDNativeLibrary()
|
||||||
: library_paths() {
|
: library_paths() {
|
||||||
|
|
Loading…
Reference in a new issue