You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
[Complex Test Layouts] Change String to use UTF-32 encoding on all platforms.
This commit is contained in:
@@ -86,7 +86,7 @@ String abspath(const String &p_path) {
|
||||
String realpath(const String &p_path) {
|
||||
#ifdef WINDOWS_ENABLED
|
||||
// Open file without read/write access
|
||||
HANDLE hFile = ::CreateFileW(p_path.c_str(), 0,
|
||||
HANDLE hFile = ::CreateFileW((LPCWSTR)(p_path.utf16().get_data()), 0,
|
||||
FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE,
|
||||
nullptr, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, nullptr);
|
||||
|
||||
@@ -130,7 +130,7 @@ String join(const String &p_a, const String &p_b) {
|
||||
return p_b;
|
||||
}
|
||||
|
||||
const CharType a_last = p_a[p_a.length() - 1];
|
||||
const char32_t a_last = p_a[p_a.length() - 1];
|
||||
if ((a_last == '/' || a_last == '\\') ||
|
||||
(p_b.size() > 0 && (p_b[0] == '/' || p_b[0] == '\\'))) {
|
||||
return p_a + p_b;
|
||||
|
||||
Reference in New Issue
Block a user