You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Fix drivers coding for WinRT
- Add a proper function to retrieve IP addresses. - Solve issues with Windows FileAccess and DirAccess to use the same code for WinRT. - Add patches to the GLES2 rasterizer to workaround ANGLE issues.
This commit is contained in:
@@ -38,12 +38,6 @@
|
||||
#include <wchar.h>
|
||||
#include <windows.h>
|
||||
|
||||
#ifdef WINRT_ENABLED
|
||||
#include <Synchapi.h>
|
||||
#include <collection.h>
|
||||
#include <ppltasks.h>
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
||||
[03:57] <reduz> yessopie, so i dont havemak to rely on unicows
|
||||
@@ -130,14 +124,6 @@ Error DirAccessWindows::change_dir(String p_dir) {
|
||||
|
||||
GLOBAL_LOCK_FUNCTION
|
||||
|
||||
#ifdef WINRT_ENABLED
|
||||
|
||||
p_dir = fix_path(p_dir);
|
||||
current_dir = normalize_path(p_dir);
|
||||
|
||||
return OK;
|
||||
#else
|
||||
|
||||
p_dir = fix_path(p_dir);
|
||||
|
||||
wchar_t real_current_dir_name[2048];
|
||||
@@ -170,19 +156,12 @@ Error DirAccessWindows::change_dir(String p_dir) {
|
||||
//}
|
||||
|
||||
return worked ? OK : ERR_INVALID_PARAMETER;
|
||||
#endif
|
||||
}
|
||||
|
||||
Error DirAccessWindows::make_dir(String p_dir) {
|
||||
|
||||
GLOBAL_LOCK_FUNCTION
|
||||
|
||||
#ifdef WINRT_ENABLED
|
||||
|
||||
return ERR_CANT_CREATE;
|
||||
|
||||
#else
|
||||
|
||||
if (p_dir.is_rel_path())
|
||||
p_dir = get_current_dir().plus_file(p_dir);
|
||||
|
||||
@@ -207,8 +186,6 @@ Error DirAccessWindows::make_dir(String p_dir) {
|
||||
};
|
||||
|
||||
return ERR_CANT_CREATE;
|
||||
|
||||
#endif
|
||||
}
|
||||
|
||||
String DirAccessWindows::get_current_dir() {
|
||||
|
||||
Reference in New Issue
Block a user