forked from eden-emu/eden
This is adapted from kleidis old PR to Azahar. Changes from it: - Fixed inconsistent button styling in the dialog for connection - Allowed to hide both empty and full rooms. - Proper serving of preferred games - Enables web service for android by default - Better implementation of multiplayer.cpp that works with oop Also fixes the room network class and turns it into a static namespace in network Signed-off-by: Aleksandr Popovich <alekpopo@pm.me> Co-authored-by: swurl <swurl@swurl.xyz> Reviewed-on: eden-emu/eden#125 Co-authored-by: Aleksandr Popovich <alekpopo@pm.me> Co-committed-by: Aleksandr Popovich <alekpopo@pm.me>
29 lines
880 B
C++
29 lines
880 B
C++
// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
// SPDX-FileCopyrightText: 2025 Eden Emulator Project
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
|
|
#include <jni.h>
|
|
#include "common/common_types.h"
|
|
|
|
namespace Common::Android {
|
|
|
|
std::string GetJString(JNIEnv* env, jstring jstr);
|
|
jstring ToJString(JNIEnv* env, std::string_view str);
|
|
jstring ToJString(JNIEnv* env, std::u16string_view str);
|
|
|
|
double GetJDouble(JNIEnv* env, jobject jdouble);
|
|
jobject ToJDouble(JNIEnv* env, double value);
|
|
|
|
s32 GetJInteger(JNIEnv* env, jobject jinteger);
|
|
jobject ToJInteger(JNIEnv* env, s32 value);
|
|
jobjectArray ToJStringArray(JNIEnv* env, const std::vector<std::string>& strs);
|
|
bool GetJBoolean(JNIEnv* env, jobject jboolean);
|
|
jobject ToJBoolean(JNIEnv* env, bool value);
|
|
|
|
} // namespace Common::Android
|