Add iOS platform (refactor Mac into shared Apple platform impl)

This commit is contained in:
Wojtek Figat
2023-03-15 20:57:44 +01:00
parent dc29ee180e
commit 0ba261d338
84 changed files with 2806 additions and 1623 deletions

View File

@@ -11,7 +11,7 @@
#if PLATFORM_LINUX
#include <stdio.h>
#elif PLATFORM_MAC
#include "Engine/Platform/Mac/MacUtils.h"
#include "Engine/Platform/Apple/AppleUtils.h"
#include <AppKit/AppKit.h>
#endif
@@ -88,7 +88,7 @@ void VisualStudioCodeEditor::FindEditors(Array<CodeEditor*>* output)
NSURL* AppURL = [[NSWorkspace sharedWorkspace] URLForApplicationWithBundleIdentifier:@"com.microsoft.VSCode"];
if (AppURL != nullptr)
{
const String path = MacUtils::ToString((CFStringRef)[AppURL path]);
const String path = AppleUtils::ToString((CFStringRef)[AppURL path]);
output->Add(New<VisualStudioCodeEditor>(path, false));
return;
}