Skip to content

Commit d2e7ddf

Browse files
committed
Fix build
1 parent 356a573 commit d2e7ddf

File tree

6 files changed

+19
-20
lines changed

6 files changed

+19
-20
lines changed

.github/workflows/deploy_release_android.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,8 @@ jobs:
4242
BUILD_TYPE: ${{ inputs.build_type }}
4343
run: |
4444
cd ./src/android
45-
if [[ -z "$ANDROID_STORE_FILE_BASE64" ]]; then
46-
base64 --decode <<< "${ANDROID_STORE_FILE_BASE64}" > store.jks
47-
export ANDROID_STORE_FILE=$(pwd)/store.jks
48-
fi
45+
base64 --decode <<< "${ANDROID_STORE_FILE_BASE64}" > store.jks
46+
export ANDROID_KEYSTORE_FILE=$(pwd)/store.jks
4947
./gradlew assemble$BUILD_TYPE
5048
5149

src/Cafe/HW/Espresso/Recompiler/BackendAArch64/BackendAArch64.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -789,13 +789,13 @@ void AArch64GenContext_t::conditionalJumpCycleCheck(IMLSegment* imlSegment)
789789

790790
void ATTR_MS_ABI PPCRecompiler_getTBL(PPCInterpreter_t* ppcInterpreter, uint32 gprIndex)
791791
{
792-
uint64 coreTime = coreinit::coreinit_getTimerTick();
792+
uint64 coreTime = coreinit::OSGetSystemTime();
793793
ppcInterpreter->gpr[gprIndex] = (uint32)(coreTime & 0xFFFFFFFF);
794794
}
795795

796796
void ATTR_MS_ABI PPCRecompiler_getTBU(PPCInterpreter_t* ppcInterpreter, uint32 gprIndex)
797797
{
798-
uint64 coreTime = coreinit::coreinit_getTimerTick();
798+
uint64 coreTime = coreinit::OSGetSystemTime();
799799
ppcInterpreter->gpr[gprIndex] = (uint32)((coreTime >> 32) & 0xFFFFFFFF);
800800
}
801801

src/android/app/build.gradle.kts

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ val versionMinor: String? = System.getenv("EMULATOR_VERSION_MINOR")
2929

3030
fun getVersionName(): String {
3131
if (versionMajor != null && versionMinor != null)
32-
return "$versionMinor.$versionMinor"
32+
return "$versionMajor.$versionMinor"
3333
return getGitHash() ?: "1.0"
3434
}
3535

@@ -57,7 +57,7 @@ android {
5757
storeFile = file(keystoreFilePath)
5858
storePassword = System.getenv("ANDROID_KEY_STORE_PASSWORD")
5959
keyAlias = System.getenv("ANDROID_KEY_ALIAS")
60-
keyPassword = System.getenv("ANDROID_KEYSTORE_PASS")
60+
keyPassword = System.getenv("ANDROID_KEY_STORE_PASSWORD")
6161
}
6262
}
6363
}
@@ -83,6 +83,11 @@ android {
8383
signingConfig = signingConfigs.getByName("releaseSigningConfig")
8484
} else {
8585
initWith(getByName("debug"))
86+
externalNativeBuild {
87+
cmake {
88+
arguments.add("-DCMAKE_BUILD_TYPE=DEBUG")
89+
}
90+
}
8691
}
8792
}
8893
}
@@ -108,6 +113,7 @@ android {
108113
"-DENABLE_SDL=OFF",
109114
"-DENABLE_WXWIDGETS=OFF",
110115
"-DENABLE_OPENGL=OFF",
116+
"-DENABLE_BLUEZ=OFF",
111117
"-DBUNDLE_SPEEX=ON",
112118
"-DENABLE_DISCORD_RPC=OFF",
113119
"-DENABLE_NSYSHID_LIBUSB=OFF",
@@ -117,9 +123,7 @@ android {
117123
defaultConfig {
118124
externalNativeBuild {
119125
cmake {
120-
arguments(
121-
*cmakeArguments
122-
)
126+
arguments.addAll(cmakeArguments)
123127
abiFilters("arm64-v8a")
124128
}
125129
}

src/android/app/src/main/cpp/NativeEmulation.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ namespace NativeEmulation
114114
{
115115
return ERROR_GAME_BASE_FILES_NOT_FOUND;
116116
}
117-
CafeSystem::STATUS_CODE r = CafeSystem::PrepareForegroundTitle(baseTitleId);
118-
if (r != CafeSystem::STATUS_CODE::SUCCESS)
117+
CafeSystem::PREPARE_STATUS_CODE r = CafeSystem::PrepareForegroundTitle(baseTitleId);
118+
if (r != CafeSystem::PREPARE_STATUS_CODE::SUCCESS)
119119
{
120120
return ERROR_UNKNOWN;
121121
}
@@ -127,8 +127,8 @@ namespace NativeEmulation
127127
CafeTitleFileType fileType = DetermineCafeSystemFileType(launchPath);
128128
if (fileType == CafeTitleFileType::RPX || fileType == CafeTitleFileType::ELF)
129129
{
130-
CafeSystem::STATUS_CODE r = CafeSystem::PrepareForegroundTitleFromStandaloneRPX(launchPath);
131-
if (r != CafeSystem::STATUS_CODE::SUCCESS)
130+
CafeSystem::PREPARE_STATUS_CODE r = CafeSystem::PrepareForegroundTitleFromStandaloneRPX(launchPath);
131+
if (r != CafeSystem::PREPARE_STATUS_CODE::SUCCESS)
132132
{
133133
return ERROR_UNKNOWN;
134134
}

src/input/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,6 @@ if(ENABLE_SDL)
115115
endif()
116116

117117

118-
if (UNIX AND NOT APPLE)
118+
if (UNIX AND NOT APPLE AND NOT ANDROID)
119119
target_link_libraries(CemuInput PRIVATE bluez::bluez)
120120
endif ()

vcpkg.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,7 @@
6969
"default-features": false,
7070
"features": ["jpeg", "zip"]
7171
},
72-
{
73-
"name": "libusb",
74-
"platform": "!android"
75-
}
72+
"libusb"
7673
],
7774
"overrides": [
7875
{

0 commit comments

Comments
 (0)