Skip to content

Commit

Permalink
we are so back! hopefully this actually compiles owo
Browse files Browse the repository at this point in the history
  • Loading branch information
YellowCat98 committed Jul 27, 2024
1 parent f88ec6a commit 5c334e4
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 28 deletions.
23 changes: 20 additions & 3 deletions .github/workflows/multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,36 @@ jobs:
fail-fast: false
matrix:
config:
- name: Windows
os: windows-latest

- name: macOS
os: macos-latest

- name: iOS
os: macos-latest
target: iOS

- name: Android32
os: ubuntu-latest
target: Android32

- name: Android64
os: ubuntu-latest
target: Android64

name: ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}

steps:
- uses: actions/checkout@v4

- name: Build the mod
uses: RoootTheFox/build-geode-mod@main
#uses: geode-sdk/build-geode-mod@main
uses: geode-catgirls/build-geode-mod@main
with:
bindings: YellowCat98/bindings
bindings-ref: main
combine: true
target: ${{ matrix.config.target }}

Expand All @@ -35,10 +51,11 @@ jobs:
needs: ['build']

steps:
- uses: RoootTheFox/build-geode-mod/combine@main
#- uses: geode-sdk/build-geode-mod/combine@main
- uses: geode-catgirls/build-geode-mod/combine@main
id: build

- uses: actions/upload-artifact@v4
with:
name: Build Output
path: ${{ steps.build.outputs.build-output }}
path: ${{ steps.build.outputs.build-output }}
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_OSX_ARCHITECTURES "x86_64")
set(CMAKE_CXX_VISIBILITY_PRESET hidden)

project(iFPSHack VERSION 1.0.0)
project(iGeodeLib VERSION 1.0.0)

if(${GEODE_TARGET_PLATFORM} STREQUAL "iOS")
message(STATUS "building for ios uwu")
Expand Down
23 changes: 0 additions & 23 deletions src/iGeodeLib.mm
Original file line number Diff line number Diff line change
Expand Up @@ -95,27 +95,4 @@ void CShowAlert(const char *title, const char *message, const char *Btn, std::fu
NSString *iOSVersion = [device systemVersion];
return [iOSVersion UTF8String];
}
/*
prompts for face ID
example usage:
faceID(myCoolFunction(), myFailureFunction());
*/
void faceID(std::function<void()> callback, std::function<void()> callback2) {
LAContext *context = [[LAContext alloc] init];
NSError *error = nil;

if ([context canEvaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics error:&error]) {
[context evaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics
localizedReason:@"Auth."
reply:^(BOOL success, NSError *error) {
if (success) {
callback();
} else {
callback2();
}
}];
} else {
showAlert("Unsupported.", "Your device doesnt support Face ID", "Cancel");
}
}
}
2 changes: 1 addition & 1 deletion src/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ void onFail() {

class $modify(MenuLayer) {
void onMoreGames(CCObject*) {
iGeodeLib::faceID(onSuccess, onFail);

}
};

0 comments on commit 5c334e4

Please sign in to comment.