Skip to content

Commit

Permalink
MorphOS: update STUB
Browse files Browse the repository at this point in the history
Need to comple all function SDL3... pfffffff
  • Loading branch information
BeWorld2018 committed Jan 15, 2024
1 parent 481da98 commit d1ef501
Show file tree
Hide file tree
Showing 7 changed files with 883 additions and 7,338 deletions.
5 changes: 3 additions & 2 deletions Makefile.mos
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ SOURCES = \
src/joystick/morphos/*.c \
src/joystick/virtual/*.c \
src/libm/*.c \
src/loadso/dlopen/*.c
src/loadso/dlopen/*.c \
src/locale/*.c \
src/locale/morphos/*.c \
src/misc/*.c \
Expand All @@ -59,14 +59,15 @@ SOURCES = \
src/thread/*.c \
src/thread/morphos/*.c \
src/thread/generic/SDL_syscond.c \
src/thread/generic/SDL_sysrwlock.c \
src/thread/generic/SDL_systls.c \
src/thread/generic/SDL_sysrwlock.c \
src/timer/*.c \
src/timer/morphos/*.c \
src/video/*.c \
src/video/dummy/*.c \
src/video/morphos/*.c \
src/video/yuv2rgb/*.c


CORESOURCES = src/core/morphos/*.c
COREOBJECTS = $(shell echo $(CORESOURCES) | sed -e 's,\.c,\.o,g')
Expand Down
2 changes: 1 addition & 1 deletion include/build_config/SDL_build_config_morphos.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@
/* #undef HAVE_GETPAGESIZE */
#define HAVE_MPROTECT 1
#define HAVE_ICONV 1
#define SDL_USE_LIBICONV 1
/* #undef HAVE_PTHREAD_SETNAME_NP */
/* #undef HAVE_PTHREAD_SET_NAME_NP */
/* #undef HAVE_SEM_TIMEDWAIT */
Expand Down Expand Up @@ -274,7 +275,6 @@
/* #undef SDL_HAPTIC_IOKIT */
/* #undef SDL_HAPTIC_DINPUT */
/* #undef SDL_HAPTIC_XINPUT */
/* #define SDL_JOYSTICK_AMIGA 1 */ /* Enable lowlevel.library JOYSTICK/GAMEPAD */
#define SDL_JOYSTICK_MORPHOS 1 /* Enable MORPHOS SENSORS JOYSTICK/GAMEPAD */

/* Enable various sensor drivers */
Expand Down
48 changes: 0 additions & 48 deletions src/core/morphos/SDL_stubs.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,54 +22,6 @@
#include <stdarg.h>

#define GENERATE_STUBS
/*#if !defined(SDL_SENSOR_DISABLED)
int __saveds SDL_SensorsDummy(void) { return 0;}
#define SDL_OpenSensor_REAL SDL_SensorsDummy
#define SDL_CloseSensor_REAL SDL_SensorsDummy
#define SDL_GetSensors_REAL SDL_SensorsDummy
#define SDL_GetSensorInstanceName_REAL SDL_SensorsDummy
#define SDL_GetSensorInstanceType_REAL SDL_SensorsDummy
#define SDL_GetSensorInstanceNonPortableType_REAL SDL_SensorsDummy
#define SDL_OpenSendor_REAL SDL_SensorsDummy
#define SDL_GetSensorFromInstanceID_REAL SDL_SensorsDummy
#define SDL_GetSensorName_REAL SDL_SensorsDummy
#define SDL_GetSensorType_REAL SDL_SensorsDummy
#define SDL_GetSensorNonPortableType_REAL SDL_SensorsDummy
#define SDL_GetSensorInstanceID_REAL SDL_SensorsDummy
#define SDL_GetSensorData_REAL SDL_SensorsDummy
#define SDL_CloseSensor_REAL SDL_SensorsDummy
#define SDL_UpdateSensors_REAL SDL_SensorsDummy
#endif
#if !defined(SDL_LOADSO_DISABLED)
int __saveds SDL_LoadObject(void) { return 0;}
int __saveds SDL_LoadFunction(void) { return 0;}
int __saveds SDL_UnloadObject(void) { return 0;}
#define SDL_LoadObject_REAL SDL_LoadObject
#define SDL_LoadFunction_REAL SDL_LoadFunction
#define SDL_UnloadObject_REAL SDL_UnloadObject
#endif
#if !defined(SDL_HIDAPIC_DISABLED)
int __saveds SDL_hid_dummy(void) { return 0;}
#define SDL_hid_ble_scan_REAL SDL_hid_dummy
#define SDL_hid_get_indexed_string_REAL SDL_hid_dummy
#define SDL_hid_get_serial_number_string_REAL SDL_hid_dummy
#define SDL_hid_get_product_string_REAL SDL_hid_dummy
#define SDL_hid_get_manufacturer_string_REAL SDL_hid_dummy
#define SDL_hid_close_REAL SDL_hid_dummy
#define SDL_hid_get_feature_report_REAL SDL_hid_dummy
#define SDL_hid_send_feature_report_REAL SDL_hid_dummy
#define SDL_hid_set_nonblocking_REAL SDL_hid_dummy
#define SDL_hid_read_REAL SDL_hid_dummy
#define SDL_hid_read_timeout_REAL SDL_hid_dummy
#define SDL_hid_write_REAL SDL_hid_dummy
#define SDL_hid_open_path_REAL SDL_hid_dummy
#define SDL_hid_open_REAL SDL_hid_dummy
#define SDL_hid_free_enumeration_REAL SDL_hid_dummy
#define SDL_hid_enumerate_REAL SDL_hid_dummy
#define SDL_hid_device_change_count_REAL SDL_hid_dummy
#define SDL_hid_exit_REAL SDL_hid_dummy
#define SDL_hid_init_REAL SDL_hid_dummy
#endif*/
#include "SDL_stubs.h"

/*********************************************************************/
Expand Down
23 changes: 0 additions & 23 deletions src/core/morphos/SDL_stubs.h
Original file line number Diff line number Diff line change
Expand Up @@ -651,28 +651,6 @@
STUB(SDL_fmodf)
STUB(SDL_free)
STUB(SDL_getenv)
STUB(SDL_hid_ble_scan)
STUB(SDL_hid_close)
STUB(SDL_hid_device_change_count)
STUB(SDL_hid_enumerate)
STUB(SDL_hid_exit)
STUB(SDL_hid_free_enumeration)
STUB(SDL_hid_get_device_info)
STUB(SDL_hid_get_feature_report)
STUB(SDL_hid_get_indexed_string)
STUB(SDL_hid_get_input_report)
STUB(SDL_hid_get_manufacturer_string)
STUB(SDL_hid_get_product_string)
STUB(SDL_hid_get_report_descriptor)
STUB(SDL_hid_get_serial_number_string)
STUB(SDL_hid_init)
STUB(SDL_hid_open)
STUB(SDL_hid_open_path)
STUB(SDL_hid_read)
STUB(SDL_hid_read_timeout)
STUB(SDL_hid_send_feature_report)
STUB(SDL_hid_set_nonblocking)
STUB(SDL_hid_write)
STUB(SDL_iconv)
STUB(SDL_iconv_close)
STUB(SDL_iconv_open)
Expand Down Expand Up @@ -850,7 +828,6 @@
STUB(SDL_GetSurfaceProperties)
STUB(SDL_GetWindowProperties)
STUB(SDL_ClearProperty)
STUB(SDL_EnterAppMainCallbacks)
STUB(SDL_RWvprintf)
STUB(SDL_AllocateEventMemory)
STUB(SDL_GetDisplayProperties)
Expand Down
Loading

0 comments on commit d1ef501

Please sign in to comment.