mirror of
https://github.com/libretro/RetroArch
synced 2025-03-20 19:21:27 +00:00
[ORBIS] Remove the dummy core option by default
This commit is contained in:
parent
6366fcf8e3
commit
6974dee535
2
.github/workflows/Orbis.yml
vendored
2
.github/workflows/Orbis.yml
vendored
@ -22,7 +22,7 @@ jobs:
|
|||||||
- name: Compile RA
|
- name: Compile RA
|
||||||
run: |
|
run: |
|
||||||
export PATH=~/cli:$PATH # .net cli
|
export PATH=~/cli:$PATH # .net cli
|
||||||
make -f Makefile.orbis -j$(getconf _NPROCESSORS_ONLN) && make -f Makefile.orbis oelf eboot
|
make -f Makefile.orbis -j$(getconf _NPROCESSORS_ONLN) HAVE_STATIC_DUMMY=1 && make -f Makefile.orbis oelf eboot
|
||||||
|
|
||||||
- name: Get short SHA
|
- name: Get short SHA
|
||||||
id: slug
|
id: slug
|
||||||
|
@ -3,7 +3,7 @@ DEBUG ?= 0
|
|||||||
GRIFFIN_BUILD = 0
|
GRIFFIN_BUILD = 0
|
||||||
WHOLE_ARCHIVE_LINK = 0
|
WHOLE_ARCHIVE_LINK = 0
|
||||||
|
|
||||||
HAVE_STATIC_DUMMY ?= 1
|
HAVE_STATIC_DUMMY ?= 0
|
||||||
HAVE_GLES3 ?= 0
|
HAVE_GLES3 ?= 0
|
||||||
HAVE_MOUSE ?= 0
|
HAVE_MOUSE ?= 0
|
||||||
HAVE_KEYBOARD ?= 0
|
HAVE_KEYBOARD ?= 0
|
||||||
@ -16,7 +16,7 @@ PC_DEVELOPMENT_UDP_PORT = 18194
|
|||||||
DEBUG=1
|
DEBUG=1
|
||||||
AUTH_INFO = 000000000000000000000000001C004000FF000000000080000000000000000000000000000000000000008000400040000000000000008000000000000000080040FFFF000000F000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
AUTH_INFO = 000000000000000000000000001C004000FF000000000080000000000000000000000000000000000000008000400040000000000000008000000000000000080040FFFF000000F000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||||
|
|
||||||
# OBJ += memory/ps4/user_mem.o \
|
OBJ += memory/ps4/user_mem.o \
|
||||||
# memory/ps4/user_new.o \
|
# memory/ps4/user_new.o \
|
||||||
# input/drivers/ps4_input.o \
|
# input/drivers/ps4_input.o \
|
||||||
# input/drivers_joypad/ps4_joypad.o \
|
# input/drivers_joypad/ps4_joypad.o \
|
||||||
|
@ -47,8 +47,6 @@
|
|||||||
#include <libSceLibcInternal.h>
|
#include <libSceLibcInternal.h>
|
||||||
#include <defines/ps4_defines.h>
|
#include <defines/ps4_defines.h>
|
||||||
|
|
||||||
// #include "user_mem.h"
|
|
||||||
|
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
|
|
||||||
#include <string/stdstring.h>
|
#include <string/stdstring.h>
|
||||||
@ -100,21 +98,6 @@ static OrbisMspace s_mspace = 0;
|
|||||||
static void *address = 0;
|
static void *address = 0;
|
||||||
static size_t s_mem_size = MEM_SIZE;
|
static size_t s_mem_size = MEM_SIZE;
|
||||||
|
|
||||||
static int max_malloc(size_t initial_value, int increment, const char *desc)
|
|
||||||
{
|
|
||||||
char *p_block;
|
|
||||||
size_t chunk = initial_value;
|
|
||||||
|
|
||||||
printf("Check maximum contigous block we can allocate (%s accurate)\n", desc);
|
|
||||||
while ((p_block = sceLibcMspaceMalloc(s_mspace, ++chunk * increment)) != NULL) {
|
|
||||||
sceLibcMspaceFree(s_mspace,p_block);
|
|
||||||
}
|
|
||||||
chunk--;
|
|
||||||
printf("Maximum possible %s we can allocate is %zu\n", desc, chunk);
|
|
||||||
|
|
||||||
return chunk;
|
|
||||||
}
|
|
||||||
|
|
||||||
#if defined(HAVE_TAUON_SDK)
|
#if defined(HAVE_TAUON_SDK)
|
||||||
void catchReturnFromMain(int exit_code)
|
void catchReturnFromMain(int exit_code)
|
||||||
{
|
{
|
||||||
@ -138,8 +121,6 @@ static void frontend_orbis_get_env(int *argc, char *argv[],
|
|||||||
|
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
sceSystemServiceHideSplashScreen();
|
|
||||||
|
|
||||||
strlcpy(eboot_path, EBOOT_PATH, sizeof(eboot_path));
|
strlcpy(eboot_path, EBOOT_PATH, sizeof(eboot_path));
|
||||||
strlcpy(g_defaults.dirs[DEFAULT_DIR_PORT], eboot_path, sizeof(g_defaults.dirs[DEFAULT_DIR_PORT]));
|
strlcpy(g_defaults.dirs[DEFAULT_DIR_PORT], eboot_path, sizeof(g_defaults.dirs[DEFAULT_DIR_PORT]));
|
||||||
strlcpy(user_path, USER_PATH, sizeof(user_path));
|
strlcpy(user_path, USER_PATH, sizeof(user_path));
|
||||||
@ -241,25 +222,13 @@ static void frontend_orbis_shutdown(bool unused)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void prepareMemoryAllocation()
|
|
||||||
{
|
|
||||||
int res = sceKernelReserveVirtualRange(&address, MEM_SIZE, 0, MEM_ALIGN);
|
|
||||||
printf("sceKernelReserveVirtualRange %x %x\n", res, address);
|
|
||||||
res = sceKernelMapNamedSystemFlexibleMemory(&address, MEM_SIZE, 0x2, 0x0010, "TEST");
|
|
||||||
printf("sceKernelMapNamedSystemFlexibleMemory %x %x\n", res, address);
|
|
||||||
s_mspace = sceLibcMspaceCreate("User Mspace", address, MEM_SIZE, 0);
|
|
||||||
printf("sceLibcMspaceCreate %p \n", s_mspace);
|
|
||||||
|
|
||||||
printf("TOTAL MEMORY %d %s\n", max_malloc(0, 1024 * 1024, "MB"), "MB");
|
|
||||||
}
|
|
||||||
|
|
||||||
static bool initApp()
|
static bool initApp()
|
||||||
{
|
{
|
||||||
int ret=initOrbisLinkAppVanillaGl();
|
int ret=initOrbisLinkAppVanillaGl();
|
||||||
if(ret==0)
|
if(ret==0)
|
||||||
{
|
{
|
||||||
debugNetInit(PC_DEVELOPMENT_IP_ADDRESS,PC_DEVELOPMENT_UDP_PORT,3);
|
debugNetInit(PC_DEVELOPMENT_IP_ADDRESS,PC_DEVELOPMENT_UDP_PORT,3);
|
||||||
debugNetPrintf(DEBUGNET_INFO,"[TEMPLATE3] Ready to have a lot of fun\n");
|
debugNetPrintf(DEBUGNET_INFO,"Ready to have a lot of fun\n");
|
||||||
|
|
||||||
sceSystemServiceHideSplashScreen();
|
sceSystemServiceHideSplashScreen();
|
||||||
return true;
|
return true;
|
||||||
@ -272,8 +241,6 @@ static void frontend_orbis_init(void *data)
|
|||||||
printf("[%s][%s][%d]\n",__FILE__,__PRETTY_FUNCTION__,__LINE__);
|
printf("[%s][%s][%d]\n",__FILE__,__PRETTY_FUNCTION__,__LINE__);
|
||||||
int ret=initApp();
|
int ret=initApp();
|
||||||
printf("[%s][%s][%d]\n",__FILE__,__PRETTY_FUNCTION__,__LINE__);
|
printf("[%s][%s][%d]\n",__FILE__,__PRETTY_FUNCTION__,__LINE__);
|
||||||
prepareMemoryAllocation();
|
|
||||||
printf("[%s][%s][%d]\n",__FILE__,__PRETTY_FUNCTION__,__LINE__);
|
|
||||||
|
|
||||||
logger_init();
|
logger_init();
|
||||||
RARCH_LOG("[%s][%s][%d] Hello from retroarch level info\n",__FILE__,__PRETTY_FUNCTION__,__LINE__);
|
RARCH_LOG("[%s][%s][%d] Hello from retroarch level info\n",__FILE__,__PRETTY_FUNCTION__,__LINE__);
|
||||||
@ -288,7 +255,6 @@ static void frontend_orbis_init(void *data)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
verbosity_enable();
|
verbosity_enable();
|
||||||
|
|
||||||
printf("[%s][%s][%d]\n",__FILE__,__PRETTY_FUNCTION__,__LINE__);
|
printf("[%s][%s][%d]\n",__FILE__,__PRETTY_FUNCTION__,__LINE__);
|
||||||
|
@ -22,7 +22,6 @@
|
|||||||
#define ORBISPAD_TOUCH_PAD 0x00100000
|
#define ORBISPAD_TOUCH_PAD 0x00100000
|
||||||
#define ORBISPAD_INTERCEPTED 0x80000000
|
#define ORBISPAD_INTERCEPTED 0x80000000
|
||||||
|
|
||||||
#if defined(HAVE_OOSDK) || defined(HAVE_LIBORBIS) || defined(ORBIS)
|
|
||||||
#define SceUID uint32_t
|
#define SceUID uint32_t
|
||||||
#define SceKernelStat OrbisKernelStat
|
#define SceKernelStat OrbisKernelStat
|
||||||
#define SCE_KERNEL_PRIO_FIFO_DEFAULT 700
|
#define SCE_KERNEL_PRIO_FIFO_DEFAULT 700
|
||||||
@ -43,6 +42,5 @@
|
|||||||
#define SCE_PAD_PORT_TYPE_REMOTE_CONTROL 16
|
#define SCE_PAD_PORT_TYPE_REMOTE_CONTROL 16
|
||||||
#define SCE_KERNEL_PROT_CPU_RW 0x02
|
#define SCE_KERNEL_PROT_CPU_RW 0x02
|
||||||
#define SCE_KERNEL_MAP_FIXED 0x10
|
#define SCE_KERNEL_MAP_FIXED 0x10
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -1,9 +1,13 @@
|
|||||||
#include <stdlib.h>
|
#include <stdio.h>
|
||||||
#include <kernel.h>
|
#include <stdlib.h>
|
||||||
#include <mspace.h>
|
#include <stdarg.h>
|
||||||
|
#include <string.h>
|
||||||
#include <defines/ps4_defines.h>
|
#include <defines/ps4_defines.h>
|
||||||
#include "user_mem.h"
|
#include "user_mem.h"
|
||||||
|
|
||||||
|
#include <orbis/libSceLibcInternal.h>
|
||||||
|
#include <orbis/libkernel.h>
|
||||||
|
|
||||||
static OrbisMspace s_mspace = 0;
|
static OrbisMspace s_mspace = 0;
|
||||||
static OrbisMallocManagedSize s_mmsize;
|
static OrbisMallocManagedSize s_mmsize;
|
||||||
static void *s_mem_start = 0;
|
static void *s_mem_start = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user