Skip to content

Commit

Permalink
Update libs
Browse files Browse the repository at this point in the history
  • Loading branch information
NSSpiral committed Jul 14, 2021
1 parent a972a60 commit 21a2f65
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
2 changes: 0 additions & 2 deletions Blackb0x.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -975,7 +975,6 @@
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"$(PROJECT_DIR)/Blackb0x/Libraries",
"$(LOCAL_LIBRARY_DIR)/Apple/System/Library/PrivateFrameworks",
);
GCC_PREFIX_HEADER = Blackb0x/Blackb0x.pch;
HEADER_SEARCH_PATHS = (
Expand Down Expand Up @@ -1022,7 +1021,6 @@
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"$(PROJECT_DIR)/Blackb0x/Libraries",
"$(LOCAL_LIBRARY_DIR)/Apple/System/Library/PrivateFrameworks",
);
GCC_PREFIX_HEADER = Blackb0x/Blackb0x.pch;
HEADER_SEARCH_PATHS = (
Expand Down
Binary file not shown.
Binary file modified Blackb0x/Libraries/libcbpatcher.a
100644 → 100755
Binary file not shown.
Binary file modified Blackb0x/Libraries/libxpwntool.a
100644 → 100755
Binary file not shown.
13 changes: 9 additions & 4 deletions Blackb0x/Source/MainView.m
Original file line number Diff line number Diff line change
Expand Up @@ -82,18 +82,20 @@ - (void) spawnDFUHelper {
popupSize.width, popupSize.height);

if(_dfuHelper == nil) {
/*
if (@available(macOS 10.13, *)) {
_dfuHelper = [[NSWindow alloc] initWithContentRect:frame
styleMask:NSWindowStyleMaskFullSizeContentView
backing:NSBackingStoreBuffered
defer:NO];
}
else {
*/
_dfuHelper = [[NSWindow alloc] initWithContentRect:frame
styleMask:NSWindowStyleMaskTexturedBackground
backing:NSBackingStoreBuffered
defer:NO];
}
//}
[_dfuHelper setReleasedWhenClosed:NO];
[_dfuHelper setLevel:NSPopUpMenuWindowLevel];
[_dfuHelper setOpaque:NO];
Expand Down Expand Up @@ -130,12 +132,12 @@ - (void) spawnDFUHelper {

NSProgressIndicator *progress = [[NSProgressIndicator alloc] initWithFrame:NSMakeRect(instructionsFrame.origin.x + instructionsFrame.size.width / 2 - 10,
popupSize.height * 0.2 - 10, 20, 20)];
if (@available(macOS 10.14, *)) {
/*if (@available(macOS 10.14, *)) {
progress.style = NSProgressIndicatorStyleSpinning;
}
else {
else {*/
progress.style = NSProgressIndicatorSpinningStyle;
}
//}
[_dfuHelper.contentView addSubview:progress];
[progress startAnimation:nil];

Expand All @@ -150,12 +152,15 @@ - (void) spawnDFUHelper {
[_dfuHelper.contentView addSubview: myButton];
[myButton setTitle: @"Cancel"];

[myButton setBezelStyle:NSRoundedBezelStyle];
/*
if (@available(macOS 10.14, *)) {
[myButton setBezelStyle:NSBezelStyleRounded];
}
else {
[myButton setBezelStyle:NSRoundedBezelStyle];
}
*/

[myButton setTarget:self];
[myButton setAction:@selector(popupClose)];
Expand Down

0 comments on commit 21a2f65

Please sign in to comment.