Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
330 changed files
with
2,194 additions
and
394,472 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,4 +24,4 @@ Icon | |
Network Trash Folder | ||
Temporary Items | ||
.apdisk | ||
|
||
cef_binary_* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>CFBundleDevelopmentRegion</key> | ||
<string>$(DEVELOPMENT_LANGUAGE)</string> | ||
<key>CFBundleExecutable</key> | ||
<string>$(EXECUTABLE_NAME)</string> | ||
<key>CFBundleIconFile</key> | ||
<string></string> | ||
<key>CFBundleIdentifier</key> | ||
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> | ||
<key>CFBundleInfoDictionaryVersion</key> | ||
<string>6.0</string> | ||
<key>CFBundleName</key> | ||
<string>$(PRODUCT_NAME)</string> | ||
<key>CFBundlePackageType</key> | ||
<string>APPL</string> | ||
<key>CFBundleShortVersionString</key> | ||
<string>2.0</string> | ||
<key>CFBundleVersion</key> | ||
<string>2</string> | ||
<key>LSMinimumSystemVersion</key> | ||
<string>$(MACOSX_DEPLOYMENT_TARGET)</string> | ||
<key>NSHumanReadableCopyright</key> | ||
<string>Copyright © 2021 Marc-Aurel Zent</string> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
/* | ||
See LICENSE folder for licensing information. | ||
*/ | ||
|
||
#if USE_SWIFT_HELPER | ||
#include <dlfcn.h> | ||
#else | ||
#include "include/capi/cef_app_capi.h" | ||
#endif | ||
|
||
#include "include/wrapper/cef_library_loader.h" | ||
#include "include/cef_sandbox_mac.h" | ||
#include <libgen.h> | ||
#include <stdio.h> | ||
#include <stdlib.h> | ||
|
||
// Entry point function for sub-processes. | ||
int main(int argc, char* argv[]) { | ||
// Initialize the macOS sandbox for this helper process. | ||
void* sandboxContext = cef_sandbox_initialize(argc, argv); | ||
if (!sandboxContext) { | ||
return 1; | ||
} | ||
|
||
// Load the CEF framework library at runtime instead of linking directly | ||
// as required by the macOS sandbox implementation. | ||
const char* format = "%s/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework"; | ||
char* dirName = dirname(argv[0]); | ||
size_t bufSize = snprintf(NULL, 0, format, dirName) + 1; | ||
char* fwPath = (char*)malloc(bufSize); | ||
snprintf(fwPath, bufSize, format, dirName); | ||
|
||
int success = cef_load_library(fwPath); | ||
free(fwPath); | ||
|
||
if (!success) { | ||
cef_sandbox_destroy(sandboxContext); | ||
return 2; | ||
} | ||
|
||
#if USE_SWIFT_HELPER | ||
void* lib = dlopen("SwiftHelper.framework/SwiftHelper", RTLD_LAZY); | ||
if (!lib) { | ||
cef_unload_library(); | ||
cef_sandbox_destroy(sandboxContext); | ||
return 3; | ||
} | ||
|
||
int (*helperMain)(void) = dlsym(lib, "HelperMain"); | ||
dlclose(lib); | ||
|
||
if (!helperMain) { | ||
cef_unload_library(); | ||
cef_sandbox_destroy(sandboxContext); | ||
return 4; | ||
} | ||
|
||
int retval = helperMain(); | ||
#else | ||
// Provide CEF with command-line arguments. | ||
cef_main_args_t mainArgs = {.argc = argc, .argv = argv}; | ||
|
||
// Execute the sub-process. | ||
int retval = cef_execute_process(&mainArgs, NULL, NULL); | ||
#endif | ||
|
||
cef_unload_library(); | ||
cef_sandbox_destroy(sandboxContext); | ||
|
||
return retval; | ||
} | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
BunnyHUD.xcodeproj/project.xcworkspace/contents.xcworkspacedata
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file modified
BIN
-9.56 KB
(94%)
...proj/project.xcworkspace/xcuserdata/marc_aurel.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
78 changes: 78 additions & 0 deletions
78
BunnyHUD.xcodeproj/xcshareddata/xcschemes/BunnyHUD Helper (GPU).xcscheme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Scheme | ||
LastUpgradeVersion = "1310" | ||
version = "1.3"> | ||
<BuildAction | ||
parallelizeBuildables = "YES" | ||
buildImplicitDependencies = "YES"> | ||
<BuildActionEntries> | ||
<BuildActionEntry | ||
buildForTesting = "YES" | ||
buildForRunning = "YES" | ||
buildForProfiling = "YES" | ||
buildForArchiving = "YES" | ||
buildForAnalyzing = "YES"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "E82313922458D12500F03641" | ||
BuildableName = "BunnyHUD Helper (GPU).app" | ||
BlueprintName = "BunnyHUD Helper (GPU)" | ||
ReferencedContainer = "container:BunnyHUD.xcodeproj"> | ||
</BuildableReference> | ||
</BuildActionEntry> | ||
</BuildActionEntries> | ||
</BuildAction> | ||
<TestAction | ||
buildConfiguration = "Debug" | ||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
shouldUseLaunchSchemeArgsEnv = "YES"> | ||
<Testables> | ||
</Testables> | ||
</TestAction> | ||
<LaunchAction | ||
buildConfiguration = "Debug" | ||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
launchStyle = "0" | ||
useCustomWorkingDirectory = "NO" | ||
ignoresPersistentStateOnLaunch = "NO" | ||
debugDocumentVersioning = "YES" | ||
debugServiceExtension = "internal" | ||
allowLocationSimulation = "YES"> | ||
<BuildableProductRunnable | ||
runnableDebuggingMode = "0"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "E82313922458D12500F03641" | ||
BuildableName = "BunnyHUD Helper (GPU).app" | ||
BlueprintName = "BunnyHUD Helper (GPU)" | ||
ReferencedContainer = "container:BunnyHUD.xcodeproj"> | ||
</BuildableReference> | ||
</BuildableProductRunnable> | ||
</LaunchAction> | ||
<ProfileAction | ||
buildConfiguration = "Release" | ||
shouldUseLaunchSchemeArgsEnv = "YES" | ||
savedToolIdentifier = "" | ||
useCustomWorkingDirectory = "NO" | ||
debugDocumentVersioning = "YES"> | ||
<BuildableProductRunnable | ||
runnableDebuggingMode = "0"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "E82313922458D12500F03641" | ||
BuildableName = "BunnyHUD Helper (GPU).app" | ||
BlueprintName = "BunnyHUD Helper (GPU)" | ||
ReferencedContainer = "container:BunnyHUD.xcodeproj"> | ||
</BuildableReference> | ||
</BuildableProductRunnable> | ||
</ProfileAction> | ||
<AnalyzeAction | ||
buildConfiguration = "Debug"> | ||
</AnalyzeAction> | ||
<ArchiveAction | ||
buildConfiguration = "Release" | ||
revealArchiveInOrganizer = "YES"> | ||
</ArchiveAction> | ||
</Scheme> |
78 changes: 78 additions & 0 deletions
78
BunnyHUD.xcodeproj/xcshareddata/xcschemes/BunnyHUD Helper (Plugin).xcscheme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Scheme | ||
LastUpgradeVersion = "1310" | ||
version = "1.3"> | ||
<BuildAction | ||
parallelizeBuildables = "YES" | ||
buildImplicitDependencies = "YES"> | ||
<BuildActionEntries> | ||
<BuildActionEntry | ||
buildForTesting = "YES" | ||
buildForRunning = "YES" | ||
buildForProfiling = "YES" | ||
buildForArchiving = "YES" | ||
buildForAnalyzing = "YES"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "E82313AA2458D14500F03641" | ||
BuildableName = "BunnyHUD Helper (Plugin).app" | ||
BlueprintName = "BunnyHUD Helper (Plugin)" | ||
ReferencedContainer = "container:BunnyHUD.xcodeproj"> | ||
</BuildableReference> | ||
</BuildActionEntry> | ||
</BuildActionEntries> | ||
</BuildAction> | ||
<TestAction | ||
buildConfiguration = "Debug" | ||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
shouldUseLaunchSchemeArgsEnv = "YES"> | ||
<Testables> | ||
</Testables> | ||
</TestAction> | ||
<LaunchAction | ||
buildConfiguration = "Debug" | ||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
launchStyle = "0" | ||
useCustomWorkingDirectory = "NO" | ||
ignoresPersistentStateOnLaunch = "NO" | ||
debugDocumentVersioning = "YES" | ||
debugServiceExtension = "internal" | ||
allowLocationSimulation = "YES"> | ||
<BuildableProductRunnable | ||
runnableDebuggingMode = "0"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "E82313AA2458D14500F03641" | ||
BuildableName = "BunnyHUD Helper (Plugin).app" | ||
BlueprintName = "BunnyHUD Helper (Plugin)" | ||
ReferencedContainer = "container:BunnyHUD.xcodeproj"> | ||
</BuildableReference> | ||
</BuildableProductRunnable> | ||
</LaunchAction> | ||
<ProfileAction | ||
buildConfiguration = "Release" | ||
shouldUseLaunchSchemeArgsEnv = "YES" | ||
savedToolIdentifier = "" | ||
useCustomWorkingDirectory = "NO" | ||
debugDocumentVersioning = "YES"> | ||
<BuildableProductRunnable | ||
runnableDebuggingMode = "0"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "E82313AA2458D14500F03641" | ||
BuildableName = "BunnyHUD Helper (Plugin).app" | ||
BlueprintName = "BunnyHUD Helper (Plugin)" | ||
ReferencedContainer = "container:BunnyHUD.xcodeproj"> | ||
</BuildableReference> | ||
</BuildableProductRunnable> | ||
</ProfileAction> | ||
<AnalyzeAction | ||
buildConfiguration = "Debug"> | ||
</AnalyzeAction> | ||
<ArchiveAction | ||
buildConfiguration = "Release" | ||
revealArchiveInOrganizer = "YES"> | ||
</ArchiveAction> | ||
</Scheme> |
Oops, something went wrong.