mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-12 05:50:29 +02:00
Add support for new "native-method" NativeQueryConfig, which will be
used to implement settings like rotation lock where the implementation is on the Java side on Android.
This commit is contained in:
1 parent
013a20f61a
commit
536fcbd719
3 files changed
+11
-10
No files matched your search
+9
-8
@@ -116,13 +116,10 @@ static UIContext *uiContext;
|
||||
|
||||
std::thread *graphicsLoadThread;
|
||||
|
||||
class AndroidLogger : public LogListener
|
||||
{
|
||||
class AndroidLogger : public LogListener {
|
||||
public:
|
||||
void Log(LogTypes::LOG_LEVELS level, const char *msg)
|
||||
{
|
||||
switch (level)
|
||||
{
|
||||
void Log(LogTypes::LOG_LEVELS level, const char *msg) {
|
||||
switch (level) {
|
||||
case LogTypes::LVERBOSE:
|
||||
case LogTypes::LDEBUG:
|
||||
case LogTypes::LINFO:
|
||||
@@ -144,8 +141,7 @@ public:
|
||||
|
||||
|
||||
// TODO: Get rid of this junk
|
||||
class NativeHost : public Host
|
||||
{
|
||||
class NativeHost : public Host {
|
||||
public:
|
||||
NativeHost() {
|
||||
// hasRendered = false;
|
||||
@@ -202,6 +198,10 @@ void NativeHost::ShutdownSound() {
|
||||
g_mixer = 0;
|
||||
}
|
||||
|
||||
std::string NativeQueryConfig(std::string query) {
|
||||
return "";
|
||||
}
|
||||
|
||||
int NativeMix(short *audio, int num_samples) {
|
||||
if (g_mixer) {
|
||||
num_samples = g_mixer->Mix(audio, num_samples);
|
||||
@@ -211,6 +211,7 @@ int NativeMix(short *audio, int num_samples) {
|
||||
return num_samples;
|
||||
}
|
||||
|
||||
// This is called before NativeInit so we do a little bit of initialization here.
|
||||
void NativeGetAppInfo(std::string *app_dir_name, std::string *app_nice_name, bool *landscape) {
|
||||
*app_nice_name = "PPSSPP";
|
||||
*app_dir_name = "ppsspp";
|
||||
|
||||
Reference in new issue
Block a user