Applied clang-format and updated license headers

This commit is contained in:
OpenSauce04 2025-12-15 00:03:19 +00:00
parent c13a122527
commit 52811bc4a9
4 changed files with 10 additions and 8 deletions

View File

@ -1,4 +1,4 @@
// Copyright 2023 Citra Emulator Project
// Copyright Citra Emulator Project / Azahar Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.

View File

@ -1,4 +1,4 @@
// Copyright 2023 Citra Emulator Project
// Copyright Citra Emulator Project / Azahar Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
@ -152,9 +152,11 @@ std::vector<std::string> GetFilesName(const std::string& filepath) {
std::string GetUserDirectory() {
if (get_user_directory == nullptr)
throw std::runtime_error("Unable to locate user directory: Function with ID 'get_user_directory' is missing");
throw std::runtime_error(
"Unable to locate user directory: Function with ID 'get_user_directory' is missing");
auto env = GetEnvForThread();
auto j_user_directory = (jstring)(env->CallStaticObjectMethod(native_library, get_user_directory));
auto j_user_directory =
(jstring)(env->CallStaticObjectMethod(native_library, get_user_directory));
return env->GetStringUTFChars(j_user_directory, nullptr);
}

View File

@ -1,4 +1,4 @@
// Copyright 2023 Citra Emulator Project
// Copyright Citra Emulator Project / Azahar Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.

View File

@ -312,8 +312,8 @@ bool Rename(const std::string& srcFilename, const std::string& destFilename) {
return true;
#elif ANDROID
const std::string userDirLocation = AndroidStorage::GetUserDirectory();
if (rename((userDirLocation + srcFilename).c_str(),
(userDirLocation + destFilename).c_str()) == 0)
if (rename((userDirLocation + srcFilename).c_str(), (userDirLocation + destFilename).c_str()) ==
0)
return true;
#else
if (rename(srcFilename.c_str(), destFilename.c_str()) == 0)