├── .gitignore ├── 3rdparty └── tre │ ├── AUTHORS │ ├── Android.mk │ ├── CMakeLists.txt │ ├── ChangeLog │ ├── LICENSE │ ├── NEWS │ ├── README │ ├── THANKS │ ├── TODO │ ├── config.h │ ├── doc │ ├── default.css │ ├── tre-api.html │ └── tre-syntax.html │ ├── lib │ ├── README │ ├── regcomp.c │ ├── regerror.c │ ├── regexec.c │ ├── stamp-h2 │ ├── tre-ast.c │ ├── tre-ast.h │ ├── tre-compile.c │ ├── tre-compile.h │ ├── tre-internal.h │ ├── tre-match-approx.c │ ├── tre-match-backtrack.c │ ├── tre-match-parallel.c │ ├── tre-match-utils.h │ ├── tre-mem.c │ ├── tre-mem.h │ ├── tre-parse.c │ ├── tre-parse.h │ ├── tre-stack.c │ ├── tre-stack.h │ ├── tre │ │ ├── tre-config.h │ │ └── tre.h │ ├── xmalloc.c │ └── xmalloc.h │ └── win32 │ └── config.h ├── CMakeLists.txt ├── COPYING ├── README.bennugd ├── README.md ├── cmake ├── FindOGG.cmake ├── FindSDL2_mixer.cmake ├── FindTRE.cmake ├── FindVorbis.cmake ├── common_defs.cmake └── compiler_flags.cmake ├── core ├── bgdc │ ├── include │ │ ├── bgdc.h │ │ ├── codeblock.h │ │ ├── compiler.h │ │ ├── constants.h │ │ ├── errors.h │ │ ├── errors_st.h │ │ ├── identifiers.h │ │ ├── messages.h │ │ ├── procdef.h │ │ ├── segment.h │ │ ├── token.h │ │ └── varspace.h │ └── src │ │ ├── bgdc.ico │ │ ├── bgdc.rc │ │ ├── c_code.c │ │ ├── c_data.c │ │ ├── c_debug.c │ │ ├── c_main.c │ │ ├── codeblock.c │ │ ├── constants.c │ │ ├── dcbw.c │ │ ├── error.c │ │ ├── identifier.c │ │ ├── main.c │ │ ├── main_core.c │ │ ├── procedure.c │ │ ├── resource.h │ │ ├── segment.c │ │ ├── strings.c │ │ ├── sysstub.c │ │ ├── token.c │ │ ├── typedef.c │ │ └── varspace.c ├── bgdi │ ├── include │ │ ├── bgdi.h │ │ └── psp.h │ └── src │ │ ├── bgdi.ico │ │ ├── bgdi.rc │ │ ├── main.c │ │ └── resource.h ├── bgdrtm │ ├── include │ │ ├── bgdrtm.h │ │ └── sysprocs_p.h │ └── src │ │ ├── copy.c │ │ ├── dcbr.c │ │ ├── dirs.c │ │ ├── fmath.c │ │ ├── instance.c │ │ ├── interpreter.c │ │ ├── misc.c │ │ ├── strings.c │ │ ├── sysprocs.c │ │ └── varspace_file.c ├── common │ ├── b_crypt.c │ ├── debug.c │ ├── files.c │ └── xctype.c └── include │ ├── arrange.h │ ├── b_crypt.h │ ├── bgdcore.h │ ├── bgddl.h │ ├── commons_defs.h │ ├── dcb.h │ ├── dirs.h │ ├── dlvaracc.h │ ├── files.h │ ├── files_st.h │ ├── fmath.h │ ├── i_procdef.h │ ├── i_procdef_st.h │ ├── instance.h │ ├── instance_st.h │ ├── loadlib.h │ ├── monolithic_includes.h │ ├── offsets.h │ ├── pslang.h │ ├── sysprocs.h │ ├── sysprocs_st.h │ ├── typedef.h │ ├── typedef_st.h │ ├── varspace_file.h │ ├── xctype.h │ ├── xctype_st.h │ └── xstrings.h ├── data └── .gitkeep ├── modules ├── graphic_dependencies.dia ├── graphic_dependencies.png ├── graphic_dependencies.svg ├── libbgload │ ├── bgload.c │ └── bgload.h ├── libblit │ ├── g_blit.c │ ├── g_blit.h │ ├── g_pixel.c │ ├── g_pixel.h │ ├── libblit.c │ ├── libblit.h │ └── libblit_symbols.h ├── libdraw │ ├── libdraw.c │ └── libdraw.h ├── libfont │ ├── libfont.c │ ├── libfont.h │ └── libfont_symbols.h ├── libgrbase │ ├── bitwise_map.h │ ├── g_bitmap.c │ ├── g_bitmap.h │ ├── g_blendop.c │ ├── g_blendop.h │ ├── g_clear.c │ ├── g_clear.h │ ├── g_conversion.c │ ├── g_conversion.h │ ├── g_grlib.c │ ├── g_grlib.h │ ├── g_pal.c │ ├── g_pal.h │ ├── g_region.h │ ├── libgrbase.c │ ├── libgrbase.h │ ├── libgrbase_symbols.h │ └── resolution.h ├── libjoy │ ├── caanoo │ │ ├── i2c-dev.h │ │ ├── te9_tf9_hybrid_driver.c │ │ └── te9_tf9_hybrid_driver.h │ ├── libjoy.c │ ├── libjoy.h │ └── libjoy_symbols.h ├── libkey │ ├── libkey.c │ ├── libkey.h │ └── libkey_symbols.h ├── libmouse │ ├── libmouse.c │ └── libmouse_symbols.h ├── librender │ ├── g_fade.c │ ├── g_fade.h │ ├── g_frame.c │ ├── g_frame.h │ ├── g_instance.c │ ├── g_instance.h │ ├── g_object.c │ ├── g_object.h │ ├── g_rects.c │ ├── g_rects.h │ ├── g_screen.c │ ├── g_screen.h │ ├── librender.c │ ├── librender.h │ └── librender_symbols.h ├── libscroll │ ├── libscroll.c │ ├── libscroll.h │ └── libscroll_symbols.h ├── libsdlhandler │ ├── libsdlhandler.c │ └── libsdlhandler_symbols.h ├── libtext │ ├── libtext.c │ ├── libtext.h │ └── libtext_symbols.h ├── libvideo │ ├── g_regions.c │ ├── g_regions.h │ ├── g_video.c │ ├── g_video.h │ ├── libvideo.h │ └── libvideo_symbols.h ├── libwm │ ├── libwm.c │ └── libwm_symbols.h ├── mod_blendop │ ├── mod_blendop.c │ └── mod_blendop_symbols.h ├── mod_cd │ ├── mod_cd.c │ └── mod_cd_symbols.h ├── mod_chipmunk │ ├── Arreglos.c │ ├── Arreglos.h │ ├── Ayuda.pdf │ ├── Chipmunk.cbp │ ├── Chipmunk.depend │ ├── Chipmunk.layout │ ├── Constraints.c │ ├── Constraints.h │ ├── Cuerpo.c │ ├── Cuerpo.h │ ├── Espacio.c │ ├── Espacio.h │ ├── Examples │ │ ├── Errores.txt │ │ ├── Test00.prg │ │ ├── Test01.prg │ │ ├── Test11.prg │ │ ├── Test12.prg │ │ ├── Test13.prg │ │ ├── Test14.prg │ │ ├── Test15.prg │ │ ├── Test17.prg │ │ ├── Test18.prg │ │ ├── bola40.png │ │ ├── bomba.png │ │ ├── buss.png │ │ ├── catapulta.fpg │ │ ├── creaTerreno.png │ │ ├── cuadro.png │ │ ├── e.png │ │ ├── exa.png │ │ ├── fondo.png │ │ ├── fondoHielo.png │ │ ├── fondoImg.png │ │ ├── graficos.fpg │ │ ├── jkeys.lib │ │ ├── pelota.png │ │ ├── piso.cpt │ │ ├── punto_peque.png │ │ ├── scroll.png │ │ ├── soga.png │ │ ├── sonidos │ │ │ ├── cae.wav │ │ │ └── lanzarPelota.wav │ │ ├── terreno320x240.png │ │ ├── test.TXT │ │ ├── test02.prg │ │ ├── test03.prg │ │ ├── test04.prg │ │ ├── test05.prg │ │ ├── test06.prg │ │ ├── test07.prg │ │ ├── test08.prg │ │ ├── test09.prg │ │ ├── test10.prg │ │ ├── test16.prg │ │ ├── test19.prg │ │ ├── test20.prg │ │ └── tri.png │ ├── Handlers.c │ ├── Handlers.h │ ├── HeapSort.c │ ├── How to compile.txt │ ├── LL.c │ ├── LL.h │ ├── Licencia chipmunk c │ │ ├── LICENSE.txt │ │ └── README.txt │ ├── Miscelanea.c │ ├── Miscelanea.h │ ├── TODO.txt │ ├── agua.c │ ├── agua.h │ ├── arbitros.c │ ├── arbitros.h │ ├── automGenTerr.c │ ├── automGenTerr.h │ ├── cambiaColores.c │ ├── constantes.h │ ├── convexHull.c │ ├── convexHull.h │ ├── estructuras.h │ ├── fft.c │ ├── globales.h │ ├── inl.h │ ├── iteradores de shapes y constraints.prg │ ├── locales.h │ ├── main.c │ └── mod_chipmunk_symbols.h ├── mod_curl │ ├── main.prg │ ├── make.sh │ ├── make_osx.sh │ ├── mod_curl.c │ └── mod_curl_symbols.h ├── mod_debug │ ├── mod_debug.c │ ├── mod_debug_symbols.h │ └── systexts.c ├── mod_dir │ ├── mod_dir.c │ └── mod_dir_symbols.h ├── mod_draw │ ├── mod_draw.c │ └── mod_draw_symbols.h ├── mod_effects │ ├── mod_effects.c │ └── mod_effects_symbols.h ├── mod_file │ ├── mod_file.c │ └── mod_file_symbols.h ├── mod_flic │ ├── mod_flic.c │ ├── mod_flic.h │ └── mod_flic_symbols.h ├── mod_fmodex │ ├── COPYING │ ├── README │ ├── main.prg │ ├── mod_fmodex.c │ └── mod_fmodex_symbols.h ├── mod_fsock │ ├── doc │ │ └── leeme.txt │ ├── fsock.c │ ├── fsock_symbols.h │ └── samples │ │ ├── client.prg │ │ ├── server.prg │ │ ├── webpages │ │ └── index.html │ │ └── webserver.prg ├── mod_grproc │ ├── mod_grproc.c │ └── mod_grproc_symbols.h ├── mod_iap │ ├── main.prg │ ├── make.sh │ ├── make_osx.sh │ ├── make_win32.sh │ ├── mod_iap.c │ ├── mod_iap_fake.c │ └── mod_iap_symbols.h ├── mod_iconv │ ├── iconv.c │ └── iconv_symbols.h ├── mod_image │ ├── image.c │ └── image_symbols.h ├── mod_joy │ ├── mod_joy.c │ └── mod_joy_symbols.h ├── mod_key │ ├── mod_key.c │ └── mod_key_symbols.h ├── mod_m7 │ ├── mod_m7.c │ ├── mod_m7.h │ └── mod_m7_symbols.h ├── mod_map │ ├── file_fnt.c │ ├── file_fpg.c │ ├── file_map.c │ ├── file_pal.c │ ├── file_pcx.c │ ├── file_png.c │ ├── mod_map.c │ ├── mod_map.h │ └── mod_map_symbols.h ├── mod_math │ ├── mod_math.c │ └── mod_math_symbols.h ├── mod_mathi │ ├── mod_mathi.c │ └── mod_mathi_symbols.h ├── mod_mem │ ├── mod_mem.c │ └── mod_mem_symbols.h ├── mod_mouse │ └── mod_mouse_symbols.h ├── mod_multi │ ├── mod_multi.c │ └── mod_multi_symbols.h ├── mod_path │ ├── mod_path.c │ └── mod_path_symbols.h ├── mod_proc │ ├── mod_proc.c │ └── mod_proc_symbols.h ├── mod_rand │ ├── mod_rand.c │ └── mod_rand_symbols.h ├── mod_regex │ ├── mod_regex.c │ └── mod_regex_symbols.h ├── mod_say │ ├── mod_say.c │ └── mod_say_symbols.h ├── mod_screen │ ├── mod_screen.c │ └── mod_screen_symbols.h ├── mod_scroll │ ├── mod_scroll.c │ └── mod_scroll_symbols.h ├── mod_sort │ ├── mod_sort.c │ └── mod_sort_symbols.h ├── mod_sound │ ├── mod_sound.c │ └── mod_sound_symbols.h ├── mod_sqlite3 │ ├── COPYING │ ├── INSTALL │ ├── mod_sqlite3.c │ └── mod_sqlite3_symbols.h ├── mod_string │ ├── mod_string.c │ └── mod_string_symbols.h ├── mod_sys │ ├── mod_sys.c │ └── mod_sys_symbols.h ├── mod_text │ ├── mod_text.c │ └── mod_text_symbols.h ├── mod_theora │ ├── debian │ │ ├── bennugd-module-theora.dirs │ │ ├── bennugd-module-theora.install │ │ ├── changelog │ │ ├── compat │ │ ├── control │ │ ├── copyright │ │ ├── postinst │ │ ├── postrm │ │ └── rules │ ├── make.sh │ ├── make_osx.sh │ ├── mod_theora.c │ ├── mod_theora.prg │ ├── theoraplay.c │ ├── theoraplay.h │ └── theoraplay_cvtrgb.h ├── mod_time │ ├── mod_time.c │ └── mod_time_symbols.h ├── mod_timers │ ├── mod_timers.c │ └── mod_timers_symbols.h ├── mod_video │ ├── mod_video.c │ └── mod_video_symbols.h ├── mod_wm │ ├── mod_wm.c │ └── mod_wm_symbols.h └── mod_wpad │ ├── mod_wpad.c │ ├── mod_wpad.h │ └── mod_wpad_symbols.h ├── prepare.cmd ├── prepare.sh ├── sce_sys ├── icon0.png └── livearea │ └── contents │ ├── bg.png │ └── template.xml ├── system.txt └── tools └── extract_stub.py /.gitignore: -------------------------------------------------------------------------------- 1 | build 2 | data 3 | -------------------------------------------------------------------------------- /3rdparty/tre/AUTHORS: -------------------------------------------------------------------------------- 1 | Ville Laurikari 2 | -------------------------------------------------------------------------------- /3rdparty/tre/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH := $(call my-dir) 2 | 3 | include $(CLEAR_VARS) 4 | 5 | LOCAL_MODULE := tre 6 | 7 | common_C_INCLUDES := $(LOCAL_PATH) \ 8 | $(LOCAL_PATH)/lib \ 9 | $(LOCAL_PATH)/lib/tre 10 | 11 | common_SRC_FILES := lib/tre-ast.c \ 12 | lib/tre-compile.c \ 13 | lib/tre-match-backtrack.c \ 14 | lib/tre-match-parallel.c \ 15 | lib/tre-mem.c \ 16 | lib/tre-parse.c \ 17 | lib/tre-stack.c \ 18 | lib/regcomp.c \ 19 | lib/regexec.c \ 20 | lib/regerror.c \ 21 | lib/tre-match-approx.c 22 | 23 | common_CFLAGS := -fPIC -ffast-math -DHAVE_CONFIG_H 24 | 25 | # For the host 26 | # ===================================================== 27 | 28 | LOCAL_SRC_FILES := $(common_SRC_FILES) 29 | LOCAL_CFLAGS += -O3 $(common_CFLAGS) 30 | LOCAL_C_INCLUDES += $(common_C_INCLUDES) 31 | 32 | LOCAL_LDLIBS := 33 | 34 | include $(BUILD_STATIC_LIBRARY) 35 | # include $(BUILD_SHARED_LIBRARY) 36 | -------------------------------------------------------------------------------- /3rdparty/tre/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | set(CMAKE_CONFIGURATION_TYPES "Release;Debug;MinSizeRel;RelWithDebInfo") 2 | project(libtre C) 3 | cmake_minimum_required(VERSION 3.4) 4 | 5 | set(SOURCE_FILES 6 | lib/tre-ast.c 7 | lib/tre-compile.c 8 | lib/tre-match-backtrack.c 9 | lib/tre-match-parallel.c 10 | lib/tre-mem.c 11 | lib/tre-parse.c 12 | lib/tre-stack.c 13 | lib/regcomp.c 14 | lib/regexec.c 15 | lib/regerror.c 16 | lib/tre-match-approx.c) 17 | set(INCLUDE_FILES 18 | lib/tre/tre.h 19 | lib/tre/tre-config.h) 20 | 21 | add_definitions(-DHAVE_CONFIG_H) 22 | 23 | if (MSVC) 24 | include_directories(${libtre_SOURCE_DIR}/win32 ${libtre_SOURCE_DIR}/lib ${libtre_SOURCE_DIR}/lib/tre) 25 | set(CMAKE_C_FLAGS "/wd4996 ${CMAKE_C_FLAGS}" CACHE STRING "" FORCE) 26 | else(MSVC) 27 | include_directories(${libtre_SOURCE_DIR} ${libtre_SOURCE_DIR}/lib ${libtre_SOURCE_DIR}/lib/tre) 28 | endif(MSVC) 29 | 30 | add_library(${PROJECT_NAME} STATIC ${SOURCE_FILES}) 31 | 32 | # Define installation dirs for libs and headers (if not provided) 33 | if(NOT DEFINED CMAKE_INSTALL_LIBDIR) 34 | set(CMAKE_INSTALL_LIBDIR "${CMAKE_INSTALL_PREFIX}/lib" CACHE PATH "Installation directory for libs") 35 | endif(NOT DEFINED CMAKE_INSTALL_LIBDIR) 36 | if(NOT DEFINED CMAKE_INSTALL_INCDIR) 37 | set(CMAKE_INSTALL_INCDIR "${CMAKE_INSTALL_PREFIX}/include/tre" CACHE PATH "Installation directory for libtheora headers") 38 | endif(NOT DEFINED CMAKE_INSTALL_INCDIR) 39 | 40 | install(TARGETS ${PROJECT_NAME} 41 | LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} 42 | ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}) 43 | install(FILES ${INCLUDE_FILES} DESTINATION ${CMAKE_INSTALL_INCDIR}) 44 | -------------------------------------------------------------------------------- /3rdparty/tre/LICENSE: -------------------------------------------------------------------------------- 1 | This is the license, copyright notice, and disclaimer for TRE, a regex 2 | matching package (library and tools) with support for approximate 3 | matching. 4 | 5 | Copyright (c) 2001-2009 Ville Laurikari 6 | All rights reserved. 7 | 8 | Redistribution and use in source and binary forms, with or without 9 | modification, are permitted provided that the following conditions 10 | are met: 11 | 12 | 1. Redistributions of source code must retain the above copyright 13 | notice, this list of conditions and the following disclaimer. 14 | 15 | 2. Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | 19 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS 20 | ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 21 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 22 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 23 | HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 24 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 25 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 29 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 | -------------------------------------------------------------------------------- /3rdparty/tre/THANKS: -------------------------------------------------------------------------------- 1 | 2 | Acknowledgements 3 | 4 | 5 | Thanks for suggestions, interesting discussions, spotting bugs, 6 | patches, and contributions (in alphabetical order): 7 | 8 | Matthew Berg 9 | Angelo Borsotti 10 | Bob Carlitz 11 | Alistair Crooks 12 | Claude Devis (UCL/CENTAL) 13 | Rich Felker 14 | Glenn Fowler 15 | Peter D. Gray 16 | George Harpur 17 | Jan Kasprzak 18 | Matthias Kilian 19 | Rune Kleveland 20 | Rici Lake 21 | Bram Matthys 22 | Dominick Meglio 23 | Aymeric Moizard 24 | Daniel Nylander 25 | William J Poser 26 | Nikolai Saoukh 27 | Santiago Vila 28 | Nikolai Weibull 29 | Bill Yerazunis 30 | -------------------------------------------------------------------------------- /3rdparty/tre/TODO: -------------------------------------------------------------------------------- 1 | TODO: 2 | 3 | * Documentation 4 | 5 | - Finish the reference manual of the API. 6 | - Finish the manual describing the syntax and semantics of regexps. 7 | - Write a description of the algorithms used. There's already my 8 | Master's Thesis, but it's not TRE-specific, and it's a 9 | thesis, not an algorithm description. 10 | - Write man page for tre regexp syntax. 11 | 12 | * POSIX required features 13 | 14 | - Support for collating elements and equivalence classes. This 15 | requires some level of integration with libc. 16 | 17 | * New features 18 | 19 | - Support for GNU regex extensions. 20 | - word boundary syntax [[:<:]] and [[:>:]] 21 | - beginning and end of buffer assertions ("\`" and "\'") 22 | - is there something else missing? 23 | - Better system ABI support for non-glibc systems? 24 | - Transposition operation for the approximate matcher? 25 | 26 | * Extend API 27 | 28 | - Real-time interface? 29 | - design API 30 | - return if not finished after a certain amount of work 31 | - easy for regexec(), more work for regcomp(). 32 | 33 | 34 | * Optimizations 35 | 36 | - Make specialized versions of matcher loops for REG_NOSUB. 37 | 38 | - Find out the longest string that must occur in any match, and 39 | search for it first (with a fast Boyer-Moore search, or maybe 40 | just strstr). Then match both ways to see if it was part of 41 | match. 42 | 43 | - Some kind of a pessimistic histogram filter might speed up 44 | searching for approximate matching. 45 | 46 | - Optimize tre_tnfa_run_parallel to be faster (swap instead of 47 | copying everything? Assembler optimizations?) 48 | 49 | - Write a benchmark suite to see whan effects different 50 | optimizations have in different situations. 51 | -------------------------------------------------------------------------------- /3rdparty/tre/doc/default.css: -------------------------------------------------------------------------------- 1 | 2 | a:link { 3 | color: #454892; 4 | } 5 | a:visited { 6 | color: #665556; 7 | } 8 | p { 9 | text-align: justify; 10 | } 11 | font.type { 12 | color: #107020; 13 | } 14 | font.func { 15 | color: #1010a0; 16 | } 17 | font.arg { 18 | color: #906000; 19 | } 20 | font.qual { 21 | color: #501050; 22 | } 23 | tr.title { 24 | background: #cbc5b8; 25 | } 26 | tr.even { 27 | background: #dbdbdb; 28 | } 29 | tr.odd { 30 | background: #ebebee; 31 | } 32 | div.code { 33 | background: #e0e0f0; 34 | padding: 10px; 35 | } 36 | -------------------------------------------------------------------------------- /3rdparty/tre/lib/regerror.c: -------------------------------------------------------------------------------- 1 | /* 2 | tre_regerror.c - POSIX tre_regerror() implementation for TRE. 3 | 4 | This software is released under a BSD-style license. 5 | See the file LICENSE for details and copyright. 6 | 7 | */ 8 | 9 | #ifdef HAVE_CONFIG_H 10 | #include 11 | #endif /* HAVE_CONFIG_H */ 12 | 13 | #include 14 | #ifdef HAVE_WCHAR_H 15 | #include 16 | #endif /* HAVE_WCHAR_H */ 17 | #ifdef HAVE_WCTYPE_H 18 | #include 19 | #endif /* HAVE_WCTYPE_H */ 20 | 21 | #include "tre-internal.h" 22 | #include "tre.h" 23 | 24 | #ifdef HAVE_GETTEXT 25 | #include 26 | #else 27 | #define dgettext(p, s) s 28 | #define gettext(s) s 29 | #endif 30 | 31 | #define _(String) dgettext(PACKAGE, String) 32 | #define gettext_noop(String) String 33 | 34 | /* Error message strings for error codes listed in `tre.h'. This list 35 | needs to be in sync with the codes listed there, naturally. */ 36 | static const char *tre_error_messages[] = 37 | { gettext_noop("No error"), /* REG_OK */ 38 | gettext_noop("No match"), /* REG_NOMATCH */ 39 | gettext_noop("Invalid regexp"), /* REG_BADPAT */ 40 | gettext_noop("Unknown collating element"), /* REG_ECOLLATE */ 41 | gettext_noop("Unknown character class name"), /* REG_ECTYPE */ 42 | gettext_noop("Trailing backslash"), /* REG_EESCAPE */ 43 | gettext_noop("Invalid back reference"), /* REG_ESUBREG */ 44 | gettext_noop("Missing ']'"), /* REG_EBRACK */ 45 | gettext_noop("Missing ')'"), /* REG_EPAREN */ 46 | gettext_noop("Missing '}'"), /* REG_EBRACE */ 47 | gettext_noop("Invalid contents of {}"), /* REG_BADBR */ 48 | gettext_noop("Invalid character range"), /* REG_ERANGE */ 49 | gettext_noop("Out of memory"), /* REG_ESPACE */ 50 | gettext_noop("Invalid use of repetition operators") /* REG_BADRPT */ 51 | }; 52 | 53 | size_t 54 | tre_regerror(int errcode, const regex_t *preg, char *errbuf, size_t errbuf_size) 55 | { 56 | const char *err; 57 | size_t err_len; 58 | 59 | /*LINTED*/(void)&preg; 60 | if (errcode >= 0 61 | && errcode < (int)(sizeof(tre_error_messages) 62 | / sizeof(*tre_error_messages))) 63 | err = gettext(tre_error_messages[errcode]); 64 | else 65 | err = gettext("Unknown error"); 66 | 67 | err_len = strlen(err) + 1; 68 | if (errbuf_size > 0 && errbuf != NULL) 69 | { 70 | if (err_len > errbuf_size) 71 | { 72 | strncpy(errbuf, err, errbuf_size - 1); 73 | errbuf[errbuf_size - 1] = '\0'; 74 | } 75 | else 76 | { 77 | strcpy(errbuf, err); 78 | } 79 | } 80 | return err_len; 81 | } 82 | 83 | /* EOF */ 84 | -------------------------------------------------------------------------------- /3rdparty/tre/lib/stamp-h2: -------------------------------------------------------------------------------- 1 | timestamp for lib/tre-config.h 2 | -------------------------------------------------------------------------------- /3rdparty/tre/lib/tre-compile.h: -------------------------------------------------------------------------------- 1 | /* 2 | tre-compile.h: Regex compilation definitions 3 | 4 | This software is released under a BSD-style license. 5 | See the file LICENSE for details and copyright. 6 | 7 | */ 8 | 9 | 10 | #ifndef TRE_COMPILE_H 11 | #define TRE_COMPILE_H 1 12 | 13 | typedef struct { 14 | int position; 15 | int code_min; 16 | int code_max; 17 | int *tags; 18 | int assertions; 19 | tre_ctype_t class; 20 | tre_ctype_t *neg_classes; 21 | int backref; 22 | int *params; 23 | } tre_pos_and_tags_t; 24 | 25 | #endif /* TRE_COMPILE_H */ 26 | 27 | /* EOF */ 28 | -------------------------------------------------------------------------------- /3rdparty/tre/lib/tre-match-parallel.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/3rdparty/tre/lib/tre-match-parallel.c -------------------------------------------------------------------------------- /3rdparty/tre/lib/tre-mem.h: -------------------------------------------------------------------------------- 1 | /* 2 | tre-mem.h - TRE memory allocator interface 3 | 4 | This software is released under a BSD-style license. 5 | See the file LICENSE for details and copyright. 6 | 7 | */ 8 | 9 | #ifndef TRE_MEM_H 10 | #define TRE_MEM_H 1 11 | 12 | #include 13 | 14 | #define TRE_MEM_BLOCK_SIZE 1024 15 | 16 | typedef struct tre_list { 17 | void *data; 18 | struct tre_list *next; 19 | } tre_list_t; 20 | 21 | typedef struct tre_mem_struct { 22 | tre_list_t *blocks; 23 | tre_list_t *current; 24 | char *ptr; 25 | size_t n; 26 | int failed; 27 | void **provided; 28 | } *tre_mem_t; 29 | 30 | 31 | tre_mem_t tre_mem_new_impl(int provided, void *provided_block); 32 | void *tre_mem_alloc_impl(tre_mem_t mem, int provided, void *provided_block, 33 | int zero, size_t size); 34 | 35 | /* Returns a new memory allocator or NULL if out of memory. */ 36 | #define tre_mem_new() tre_mem_new_impl(0, NULL) 37 | 38 | /* Allocates a block of `size' bytes from `mem'. Returns a pointer to the 39 | allocated block or NULL if an underlying malloc() failed. */ 40 | #define tre_mem_alloc(mem, size) tre_mem_alloc_impl(mem, 0, NULL, 0, size) 41 | 42 | /* Allocates a block of `size' bytes from `mem'. Returns a pointer to the 43 | allocated block or NULL if an underlying malloc() failed. The memory 44 | is set to zero. */ 45 | #define tre_mem_calloc(mem, size) tre_mem_alloc_impl(mem, 0, NULL, 1, size) 46 | 47 | #ifdef TRE_USE_ALLOCA 48 | /* alloca() versions. Like above, but memory is allocated with alloca() 49 | instead of malloc(). */ 50 | 51 | #define tre_mem_newa() \ 52 | tre_mem_new_impl(1, alloca(sizeof(struct tre_mem_struct))) 53 | 54 | #define tre_mem_alloca(mem, size) \ 55 | ((mem)->n >= (size) \ 56 | ? tre_mem_alloc_impl((mem), 1, NULL, 0, (size)) \ 57 | : tre_mem_alloc_impl((mem), 1, alloca(TRE_MEM_BLOCK_SIZE), 0, (size))) 58 | #endif /* TRE_USE_ALLOCA */ 59 | 60 | 61 | /* Frees the memory allocator and all memory allocated with it. */ 62 | void tre_mem_destroy(tre_mem_t mem); 63 | 64 | #endif /* TRE_MEM_H */ 65 | 66 | /* EOF */ 67 | -------------------------------------------------------------------------------- /3rdparty/tre/lib/tre-parse.h: -------------------------------------------------------------------------------- 1 | /* 2 | tre-parse.c - Regexp parser definitions 3 | 4 | This software is released under a BSD-style license. 5 | See the file LICENSE for details and copyright. 6 | 7 | */ 8 | 9 | #ifndef TRE_PARSE_H 10 | #define TRE_PARSE_H 1 11 | 12 | /* Parse context. */ 13 | typedef struct { 14 | /* Memory allocator. The AST is allocated using this. */ 15 | tre_mem_t mem; 16 | /* Stack used for keeping track of regexp syntax. */ 17 | tre_stack_t *stack; 18 | /* The parse result. */ 19 | tre_ast_node_t *result; 20 | /* The regexp to parse and its length. */ 21 | const tre_char_t *re; 22 | /* The first character of the entire regexp. */ 23 | const tre_char_t *re_start; 24 | /* The first character after the end of the regexp. */ 25 | const tre_char_t *re_end; 26 | int len; 27 | /* Current submatch ID. */ 28 | int submatch_id; 29 | /* Current position (number of literal). */ 30 | int position; 31 | /* The highest back reference or -1 if none seen so far. */ 32 | int max_backref; 33 | /* This flag is set if the regexp uses approximate matching. */ 34 | int have_approx; 35 | /* Compilation flags. */ 36 | int cflags; 37 | /* If this flag is set the top-level submatch is not captured. */ 38 | int nofirstsub; 39 | /* The currently set approximate matching parameters. */ 40 | int params[TRE_PARAM_LAST]; 41 | } tre_parse_ctx_t; 42 | 43 | /* Parses a wide character regexp pattern into a syntax tree. This parser 44 | handles both syntaxes (BRE and ERE), including the TRE extensions. */ 45 | reg_errcode_t 46 | tre_parse(tre_parse_ctx_t *ctx); 47 | 48 | #endif /* TRE_PARSE_H */ 49 | 50 | /* EOF */ 51 | -------------------------------------------------------------------------------- /3rdparty/tre/lib/tre-stack.h: -------------------------------------------------------------------------------- 1 | /* 2 | tre-stack.h: Stack definitions 3 | 4 | This software is released under a BSD-style license. 5 | See the file LICENSE for details and copyright. 6 | 7 | */ 8 | 9 | 10 | #ifndef TRE_STACK_H 11 | #define TRE_STACK_H 1 12 | 13 | #include "tre.h" 14 | 15 | typedef struct tre_stack_rec tre_stack_t; 16 | 17 | /* Creates a new stack object. `size' is initial size in bytes, `max_size' 18 | is maximum size, and `increment' specifies how much more space will be 19 | allocated with realloc() if all space gets used up. Returns the stack 20 | object or NULL if out of memory. */ 21 | tre_stack_t * 22 | tre_stack_new(int size, int max_size, int increment); 23 | 24 | /* Frees the stack object. */ 25 | void 26 | tre_stack_destroy(tre_stack_t *s); 27 | 28 | /* Returns the current number of objects in the stack. */ 29 | int 30 | tre_stack_num_objects(tre_stack_t *s); 31 | 32 | /* Each tre_stack_push_*(tre_stack_t *s, value) function pushes 33 | `value' on top of stack `s'. Returns REG_ESPACE if out of memory. 34 | This tries to realloc() more space before failing if maximum size 35 | has not yet been reached. Returns REG_OK if successful. */ 36 | #define declare_pushf(typetag, type) \ 37 | reg_errcode_t tre_stack_push_ ## typetag(tre_stack_t *s, type value) 38 | 39 | declare_pushf(voidptr, void *); 40 | declare_pushf(int, int); 41 | 42 | /* Each tre_stack_pop_*(tre_stack_t *s) function pops the topmost 43 | element off of stack `s' and returns it. The stack must not be 44 | empty. */ 45 | #define declare_popf(typetag, type) \ 46 | type tre_stack_pop_ ## typetag(tre_stack_t *s) 47 | 48 | declare_popf(voidptr, void *); 49 | declare_popf(int, int); 50 | 51 | /* Just to save some typing. */ 52 | #define STACK_PUSH(s, typetag, value) \ 53 | do \ 54 | { \ 55 | status = tre_stack_push_ ## typetag(s, value); \ 56 | } \ 57 | while (/*CONSTCOND*/0) 58 | 59 | #define STACK_PUSHX(s, typetag, value) \ 60 | { \ 61 | status = tre_stack_push_ ## typetag(s, value); \ 62 | if (status != REG_OK) \ 63 | break; \ 64 | } 65 | 66 | #define STACK_PUSHR(s, typetag, value) \ 67 | { \ 68 | reg_errcode_t _status; \ 69 | _status = tre_stack_push_ ## typetag(s, value); \ 70 | if (_status != REG_OK) \ 71 | return _status; \ 72 | } 73 | 74 | #endif /* TRE_STACK_H */ 75 | 76 | /* EOF */ 77 | -------------------------------------------------------------------------------- /3rdparty/tre/lib/tre/tre-config.h: -------------------------------------------------------------------------------- 1 | /* lib/tre-config.h. Generated from tre-config.h.in by configure. */ 2 | /* tre-config.h.in. This file has all definitions that are needed in 3 | `tre.h'. Note that this file must contain only the bare minimum 4 | of definitions without the TRE_ prefix to avoid conflicts between 5 | definitions here and definitions included from somewhere else. */ 6 | 7 | /* Define to 1 if you have the header file. */ 8 | /* #undef HAVE_LIBUTF8_H */ 9 | 10 | /* Define to 1 if the system has the type `reg_errcode_t'. */ 11 | /* #undef HAVE_REG_ERRCODE_T */ 12 | 13 | /* Define to 1 if you have the header file. */ 14 | #define HAVE_SYS_TYPES_H 1 15 | 16 | /* Define to 1 if you have the header file. */ 17 | #define HAVE_WCHAR_H 1 18 | 19 | /* Define if you want to enable approximate matching functionality. */ 20 | #define TRE_APPROX 1 21 | 22 | /* Define to enable multibyte character set support. */ 23 | #define TRE_MULTIBYTE 1 24 | 25 | /* Define to the absolute path to the system tre.h */ 26 | /* #undef TRE_SYSTEM_REGEX_H_PATH */ 27 | 28 | /* Define to include the system regex.h from tre.h */ 29 | /* #undef TRE_USE_SYSTEM_REGEX_H */ 30 | 31 | /* Define to enable wide character (wchar_t) support. */ 32 | #define TRE_WCHAR 1 33 | 34 | /* TRE version string. */ 35 | #define TRE_VERSION "0.8.0" 36 | 37 | /* TRE version level 1. */ 38 | #define TRE_VERSION_1 0 39 | 40 | /* TRE version level 2. */ 41 | #define TRE_VERSION_2 8 42 | 43 | /* TRE version level 3. */ 44 | #define TRE_VERSION_3 0 45 | -------------------------------------------------------------------------------- /3rdparty/tre/lib/xmalloc.h: -------------------------------------------------------------------------------- 1 | /* 2 | xmalloc.h - Simple malloc debugging library API 3 | 4 | This software is released under a BSD-style license. 5 | See the file LICENSE for details and copyright. 6 | 7 | */ 8 | 9 | #ifndef _XMALLOC_H 10 | #define _XMALLOC_H 1 11 | 12 | void *xmalloc_impl(size_t size, const char *file, int line, const char *func); 13 | void *xcalloc_impl(size_t nmemb, size_t size, const char *file, int line, 14 | const char *func); 15 | void xfree_impl(void *ptr, const char *file, int line, const char *func); 16 | void *xrealloc_impl(void *ptr, size_t new_size, const char *file, int line, 17 | const char *func); 18 | int xmalloc_dump_leaks(void); 19 | void xmalloc_configure(int fail_after); 20 | 21 | 22 | #ifndef XMALLOC_INTERNAL 23 | #ifdef MALLOC_DEBUGGING 24 | 25 | /* Version 2.4 and later of GCC define a magical variable `__PRETTY_FUNCTION__' 26 | which contains the name of the function currently being defined. 27 | # define __XMALLOC_FUNCTION __PRETTY_FUNCTION__ 28 | This is broken in G++ before version 2.6. 29 | C9x has a similar variable called __func__, but prefer the GCC one since 30 | it demangles C++ function names. */ 31 | # ifdef __GNUC__ 32 | # if __GNUC__ > 2 || (__GNUC__ == 2 \ 33 | && __GNUC_MINOR__ >= (defined __cplusplus ? 6 : 4)) 34 | # define __XMALLOC_FUNCTION __PRETTY_FUNCTION__ 35 | # else 36 | # define __XMALLOC_FUNCTION ((const char *) 0) 37 | # endif 38 | # else 39 | # if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L 40 | # define __XMALLOC_FUNCTION __func__ 41 | # else 42 | # define __XMALLOC_FUNCTION ((const char *) 0) 43 | # endif 44 | # endif 45 | 46 | #define xmalloc(size) xmalloc_impl(size, __FILE__, __LINE__, \ 47 | __XMALLOC_FUNCTION) 48 | #define xcalloc(nmemb, size) xcalloc_impl(nmemb, size, __FILE__, __LINE__, \ 49 | __XMALLOC_FUNCTION) 50 | #define xfree(ptr) xfree_impl(ptr, __FILE__, __LINE__, __XMALLOC_FUNCTION) 51 | #define xrealloc(ptr, new_size) xrealloc_impl(ptr, new_size, __FILE__, \ 52 | __LINE__, __XMALLOC_FUNCTION) 53 | #undef malloc 54 | #undef calloc 55 | #undef free 56 | #undef realloc 57 | 58 | #define malloc USE_XMALLOC_INSTEAD_OF_MALLOC 59 | #define calloc USE_XCALLOC_INSTEAD_OF_CALLOC 60 | #define free USE_XFREE_INSTEAD_OF_FREE 61 | #define realloc USE_XREALLOC_INSTEAD_OF_REALLOC 62 | 63 | #else /* !MALLOC_DEBUGGING */ 64 | 65 | #include 66 | 67 | #define xmalloc(size) malloc(size) 68 | #define xcalloc(nmemb, size) calloc(nmemb, size) 69 | #define xfree(ptr) free(ptr) 70 | #define xrealloc(ptr, new_size) realloc(ptr, new_size) 71 | 72 | #endif /* !MALLOC_DEBUGGING */ 73 | #endif /* !XMALLOC_INTERNAL */ 74 | 75 | #endif /* _XMALLOC_H */ 76 | 77 | /* EOF */ 78 | -------------------------------------------------------------------------------- /COPYING: -------------------------------------------------------------------------------- 1 | LICENCE 2 | 3 | Copyright 2021 Sarcastic Cat (Vita SoRR port) 4 | Copyright 2006-2011 SplinterGU (Fenix/Bennugd) 5 | Copyright 2002-2006 Fenix Team (Fenix) 6 | Copyright 1999-2002 José Luis Cebrián Pagüe (Fenix) 7 | 8 | This software is provided 'as-is', without any express or implied 9 | warranty. In no event will the authors be held liable for any damages 10 | arising from the use of this software. 11 | 12 | Permission is granted to anyone to use this software for any purpose, 13 | including commercial applications, and to alter it and redistribute it 14 | freely, subject to the following restrictions: 15 | 16 | 1. The origin of this software must not be misrepresented; you must not 17 | claim that you wrote the original software. If you use this software 18 | in a product, an acknowledgment in the product documentation would be 19 | appreciated but is not required. 20 | 21 | 2. Altered source versions must be plainly marked as such, and must not be 22 | misrepresented as being the original software. 23 | 24 | 3. This notice may not be removed or altered from any source 25 | distribution. 26 | 27 | -------------------------------------------------------------------------------- /README.bennugd: -------------------------------------------------------------------------------- 1 | This repository contains the source code for bennugd-monolithic. 2 | 3 | The source code for this project used to be hosted in Google Code (https://code.google.com/archive/p/bennugd-monolithic/) and has been updated to use SDL-2.0.5, SDL2_mixer-2.0.1 & libpng-1.6.23, so that projects created with it are still uploadable to Google Play. 4 | 5 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # SoRR 2 | 3 | ### Streets of Rage Remake 4 | 5 | This is port of the Streets of Rage Remake (BennuGD engine) game to PSVita. 6 | 7 | 8 | ## Installing 9 | 10 | **[For Linux]** 11 | You can download VPK-package from the [releases](https://github.com/isage/sorr-vita/releases) section. 12 | Install python3. 13 | Obtain SoRR 5.2 data and copy it into `data` directory in this repository. 14 | Run `prepare.sh`, this should remove unused files and unpack data file. 15 | Copy contents of `data/` to `ux0:/data/sorr/`. 16 | Install and run VPK. 17 | 18 | **[For Windows]** 19 | You can download VPK-package from the [releases](https://github.com/isage/sorr-vita/releases) section. 20 | Install python3. 21 | Obtain SoRR 5.2 data and copy it into `data` directory in this repository. 22 | Run `prepare.cmd`, this should remove unused files and unpack data file. 23 | Copy contents of `data\` to `ux0:/data/sorr/`. 24 | Install and run VPK. 25 | -------------------------------------------------------------------------------- /cmake/FindOGG.cmake: -------------------------------------------------------------------------------- 1 | # Locate OGG 2 | # This module defines XXX_FOUND, XXX_INCLUDE_DIRS and XXX_LIBRARIES standard variables 3 | # 4 | # $OGGDIR is an environment variable that would 5 | # correspond to the ./configure --prefix=$OGGDIR 6 | # used in building OGG. 7 | 8 | SET(OGG_SEARCH_PATHS 9 | ~/Library/Frameworks 10 | /Library/Frameworks 11 | /usr/local 12 | /usr 13 | /sw # Fink 14 | /opt/local # DarwinPorts 15 | /opt/csw # Blastwave 16 | /opt 17 | ) 18 | 19 | SET(MSVC_YEAR_NAME) 20 | IF (MSVC_VERSION GREATER 1599) # >= 1600 21 | SET(MSVC_YEAR_NAME VS2010) 22 | ELSEIF(MSVC_VERSION GREATER 1499) # >= 1500 23 | SET(MSVC_YEAR_NAME VS2008) 24 | ELSEIF(MSVC_VERSION GREATER 1399) # >= 1400 25 | SET(MSVC_YEAR_NAME VS2005) 26 | ELSEIF(MSVC_VERSION GREATER 1299) # >= 1300 27 | SET(MSVC_YEAR_NAME VS2003) 28 | ELSEIF(MSVC_VERSION GREATER 1199) # >= 1200 29 | SET(MSVC_YEAR_NAME VS6) 30 | ENDIF() 31 | 32 | FIND_PATH(OGG_INCLUDE_DIR 33 | NAMES ogg/ogg.h ogg/os_types.h 34 | HINTS ENV OGGDIR 35 | PATH_SUFFIXES include 36 | PATHS ${OGG_SEARCH_PATHS} 37 | ) 38 | 39 | FIND_LIBRARY(OGG_LIBRARY 40 | NAMES ogg libogg 41 | HINTS ENV OGGDIR 42 | PATH_SUFFIXES lib lib64 lib/i386-linux-gnu win32/Dynamic_Release "Win32/${MSVC_YEAR_NAME}/x64/Release" "Win32/${MSVC_YEAR_NAME}/Win32/Release" 43 | PATHS ${OGG_SEARCH_PATHS} 44 | ) 45 | 46 | # First search for d-suffixed libs 47 | FIND_LIBRARY(OGG_LIBRARY_DEBUG 48 | NAMES oggd ogg_d liboggd libogg_d 49 | HINTS ENV OGGDIR 50 | PATH_SUFFIXES lib lib64 lib/i386-linux-gnu win32/Dynamic_Debug "Win32/${MSVC_YEAR_NAME}/x64/Debug" "Win32/${MSVC_YEAR_NAME}/Win32/Debug" 51 | PATHS ${OGG_SEARCH_PATHS} 52 | ) 53 | 54 | IF(NOT OGG_LIBRARY_DEBUG) 55 | # Then search for non suffixed libs if necessary, but only in debug dirs 56 | FIND_LIBRARY(OGG_LIBRARY_DEBUG 57 | NAMES ogg libogg 58 | HINTS ENV OGGDIR 59 | PATH_SUFFIXES win32/Dynamic_Debug "Win32/${MSVC_YEAR_NAME}/x64/Debug" "Win32/${MSVC_YEAR_NAME}/Win32/Debug" 60 | PATHS ${OGG_SEARCH_PATHS} 61 | ) 62 | ENDIF() 63 | 64 | 65 | IF(OGG_LIBRARY) 66 | IF(OGG_LIBRARY_DEBUG) 67 | SET(OGG_LIBRARIES optimized "${OGG_LIBRARY}" debug "${OGG_LIBRARY_DEBUG}") 68 | ELSE() 69 | SET(OGG_LIBRARIES "${OGG_LIBRARY}") # Could add "general" keyword, but it is optional 70 | ENDIF() 71 | ENDIF() 72 | 73 | # handle the QUIETLY and REQUIRED arguments and set XXX_FOUND to TRUE if all listed variables are TRUE 74 | INCLUDE(FindPackageHandleStandardArgs) 75 | FIND_PACKAGE_HANDLE_STANDARD_ARGS(OGG DEFAULT_MSG OGG_LIBRARIES OGG_INCLUDE_DIR) 76 | -------------------------------------------------------------------------------- /cmake/FindSDL2_mixer.cmake: -------------------------------------------------------------------------------- 1 | if(NOT SDL2_MIXER_INCLUDE_DIR AND SDL2MIXER_INCLUDE_DIR) 2 | set(SDL2_MIXER_INCLUDE_DIR ${SDL2MIXER_INCLUDE_DIR} CACHE PATH "directory cache 3 | entry initialized from old variable name") 4 | endif() 5 | find_path(SDL2_MIXER_INCLUDE_DIR SDL_mixer.h 6 | HINTS 7 | ENV SDL2MIXERDIR 8 | ENV SDL2DIR 9 | PATH_SUFFIXES SDL2 include/SDL2 include headers/SDL2 headers/x86/SDL2 10 | PATHS 11 | /boot/system/develop 12 | ${PROJECT_ROOT_DIR}/ext/SDL2 13 | ) 14 | 15 | if(NOT SDL2_MIXER_LIBRARY AND SDL2MIXER_LIBRARY) 16 | set(SDL2_MIXER_LIBRARY ${SDL2MIXER_LIBRARY} CACHE FILEPATH "file cache entry 17 | initialized from old variable name") 18 | endif() 19 | find_library(SDL2_MIXER_LIBRARY 20 | NAMES SDL2_mixer 21 | HINTS 22 | ENV SDL2MIXERDIR 23 | ENV SDL2DIR 24 | PATH_SUFFIXES lib lib/x86 25 | PATHS 26 | ${PROJECT_ROOT_DIR}/ext/SDL2 27 | ) 28 | 29 | if(SDL2_MIXER_INCLUDE_DIR AND EXISTS "${SDL2_MIXER_INCLUDE_DIR}/SDL_mixer.h") 30 | file(STRINGS "${SDL2_MIXER_INCLUDE_DIR}/SDL_mixer.h" SDL2_MIXER_VERSION_MAJOR_LINE REGEX "^#define[ \t]+SDL_MIXER_MAJOR_VERSION[ \t]+[0-9]+$") 31 | file(STRINGS "${SDL2_MIXER_INCLUDE_DIR}/SDL_mixer.h" SDL2_MIXER_VERSION_MINOR_LINE REGEX "^#define[ \t]+SDL_MIXER_MINOR_VERSION[ \t]+[0-9]+$") 32 | file(STRINGS "${SDL2_MIXER_INCLUDE_DIR}/SDL_mixer.h" SDL2_MIXER_VERSION_PATCH_LINE REGEX "^#define[ \t]+SDL_MIXER_PATCHLEVEL[ \t]+[0-9]+$") 33 | string(REGEX REPLACE "^#define[ \t]+SDL_MIXER_MAJOR_VERSION[ \t]+([0-9]+)$" "\\1" SDL2_MIXER_VERSION_MAJOR "${SDL2_MIXER_VERSION_MAJOR_LINE}") 34 | string(REGEX REPLACE "^#define[ \t]+SDL_MIXER_MINOR_VERSION[ \t]+([0-9]+)$" "\\1" SDL2_MIXER_VERSION_MINOR "${SDL2_MIXER_VERSION_MINOR_LINE}") 35 | string(REGEX REPLACE "^#define[ \t]+SDL_MIXER_PATCHLEVEL[ \t]+([0-9]+)$" "\\1" SDL2_MIXER_VERSION_PATCH "${SDL2_MIXER_VERSION_PATCH_LINE}") 36 | set(SDL2_MIXER_VERSION_STRING ${SDL2_MIXER_VERSION_MAJOR}.${SDL2_MIXER_VERSION_MINOR}.${SDL2_MIXER_VERSION_PATCH}) 37 | unset(SDL2_MIXER_VERSION_MAJOR_LINE) 38 | unset(SDL2_MIXER_VERSION_MINOR_LINE) 39 | unset(SDL2_MIXER_VERSION_PATCH_LINE) 40 | unset(SDL2_MIXER_VERSION_MAJOR) 41 | unset(SDL2_MIXER_VERSION_MINOR) 42 | unset(SDL2_MIXER_VERSION_PATCH) 43 | set(SDL2_MIXER_FOUND 1) 44 | MESSAGE("-- Found SDL2_mixer: ${SDL2_MIXER_LIBRARY} (found version \"${SDL2_MIXER_VERSION_STRING}\")") 45 | endif() 46 | 47 | set(SDL2_MIXER_LIBRARIES ${SDL2_MIXER_LIBRARY}) 48 | set(SDL2_MIXER_INCLUDE_DIRS ${SDL2_MIXER_INCLUDE_DIR}) 49 | 50 | # for backward compatiblity 51 | set(SDL2MIXER_LIBRARY ${SDL2_MIXER_LIBRARIES}) 52 | set(SDL2MIXER_INCLUDE_DIR ${SDL2_MIXER_INCLUDE_DIRS}) 53 | set(SDL2MIXER_FOUND ${SDL2_MIXER_FOUND}) 54 | 55 | mark_as_advanced(SDL2_MIXER_LIBRARY SDL2_MIXER_INCLUDE_DIR) 56 | -------------------------------------------------------------------------------- /cmake/FindTRE.cmake: -------------------------------------------------------------------------------- 1 | # Locate Tre 2 | # This module defines XXX_FOUND, XXX_INCLUDE_DIRS and XXX_LIBRARIES standard variables 3 | # 4 | # $TREDIR is an environment variable that would 5 | # correspond to the ./configure --prefix=$TREDIR 6 | # used in building tre. 7 | 8 | SET(TRE_SEARCH_PATHS 9 | ~/Library/Frameworks 10 | /Library/Frameworks 11 | /usr/local 12 | /usr 13 | /sw # Fink 14 | /opt/local # DarwinPorts 15 | /opt/csw # Blastwave 16 | /opt 17 | ) 18 | 19 | SET(MSVC_YEAR_NAME) 20 | IF (MSVC_VERSION GREATER 1599) # >= 1600 21 | SET(MSVC_YEAR_NAME VS2010) 22 | ELSEIF(MSVC_VERSION GREATER 1499) # >= 1500 23 | SET(MSVC_YEAR_NAME VS2008) 24 | ELSEIF(MSVC_VERSION GREATER 1399) # >= 1400 25 | SET(MSVC_YEAR_NAME VS2005) 26 | ELSEIF(MSVC_VERSION GREATER 1299) # >= 1300 27 | SET(MSVC_YEAR_NAME VS2003) 28 | ELSEIF(MSVC_VERSION GREATER 1199) # >= 1200 29 | SET(MSVC_YEAR_NAME VS6) 30 | ENDIF() 31 | 32 | FIND_PATH(TRE_INCLUDE_DIR 33 | NAMES tre/tre.h 34 | HINTS 35 | $ENV{TREDIR} 36 | $ENV{TRE_PATH} 37 | PATH_SUFFIXES include 38 | PATHS ${TRE_SEARCH_PATHS} 39 | ) 40 | 41 | FIND_LIBRARY(TRE_LIBRARY 42 | NAMES tre libtre 43 | HINTS 44 | $ENV{TREDIR} 45 | $ENV{TRE_PATH} 46 | PATH_SUFFIXES lib lib64 lib/i386-linux-gnu win32/Tre_Dynamic_Release "Win32/${MSVC_YEAR_NAME}/x64/Release" "Win32/${MSVC_YEAR_NAME}/Win32/Release" 47 | PATHS ${TRE_SEARCH_PATHS} 48 | ) 49 | 50 | # First search for d-suffixed libs 51 | FIND_LIBRARY(TRE_LIBRARY_DEBUG 52 | NAMES tred tre_d libtred libtre_d 53 | HINTS 54 | $ENV{TREDIR} 55 | $ENV{TRE_PATH} 56 | PATH_SUFFIXES lib lib64 lib/i386-linux-gnu win32/Tre_Dynamic_Debug "Win32/${MSVC_YEAR_NAME}/x64/Debug" "Win32/${MSVC_YEAR_NAME}/Win32/Debug" 57 | PATHS ${TRE_SEARCH_PATHS} 58 | ) 59 | 60 | IF(NOT TRE_LIBRARY_DEBUG) 61 | # Then search for non suffixed libs if necessary, but only in debug dirs 62 | FIND_LIBRARY(TRE_LIBRARY_DEBUG 63 | NAMES tre libtre 64 | HINTS 65 | $ENV{TREDIR} 66 | $ENV{TRE_PATH} 67 | PATH_SUFFIXES win32/Tre_Dynamic_Debug "Win32/${MSVC_YEAR_NAME}/x64/Debug" "Win32/${MSVC_YEAR_NAME}/Win32/Debug" 68 | PATHS ${TRE_SEARCH_PATHS} 69 | ) 70 | ENDIF() 71 | 72 | 73 | IF(TRE_LIBRARY) 74 | IF(TRE_LIBRARY_DEBUG) 75 | SET(TRE_LIBRARIES optimized "${TRE_LIBRARY}" debug "${TRE_LIBRARY_DEBUG}") 76 | ELSE() 77 | SET(TRE_LIBRARIES "${TRE_LIBRARY}") # Could add "general" keyword, but it is optional 78 | ENDIF() 79 | ENDIF() 80 | 81 | # handle the QUIETLY and REQUIRED arguments and set XXX_FOUND to TRUE if all listed variables are TRUE 82 | INCLUDE(FindPackageHandleStandardArgs) 83 | FIND_PACKAGE_HANDLE_STANDARD_ARGS(TRE DEFAULT_MSG TRE_LIBRARIES TRE_INCLUDE_DIR) 84 | -------------------------------------------------------------------------------- /cmake/common_defs.cmake: -------------------------------------------------------------------------------- 1 | add_definitions(-D__MONOLITHIC__) 2 | add_definitions(-DNO_MODCHIPMUNK) 3 | add_definitions(-DNO_MODICONV) 4 | add_definitions(-DNO_MODCHIPMUNK) 5 | add_definitions(-DNO_MODFMODEX) 6 | add_definitions(-DNO_MODCURL) 7 | add_definitions(-DNO_MODMATHI) 8 | add_definitions(-DNO_MODSENSOR) 9 | add_definitions(-DNO_FSOCK) 10 | add_definitions(-DNO_MODIAP) 11 | add_definitions(-DNO_MODIMAGE) 12 | add_definitions(-DVERSION="1.0.0") 13 | # TODO: Make cross-platform 14 | if (${CMAKE_SYSTEM_NAME} MATCHES "Linux") 15 | add_definitions(-DTARGET_LINUX) 16 | endif() 17 | 18 | if (VITA) 19 | add_definitions(-DTARGET_VITA) 20 | endif() 21 | -------------------------------------------------------------------------------- /cmake/compiler_flags.cmake: -------------------------------------------------------------------------------- 1 | # Bump up warning levels appropriately for clang, gcc & msvc 2 | # Also set debug/optimization flags depending on the build type. IDE users choose this when 3 | # selecting the build mode in their IDE 4 | # set(CMAKE_VERBOSE_MAKEFILE ON) 5 | if (${CMAKE_C_COMPILER_ID} MATCHES "GNU" OR 6 | ${CMAKE_C_COMPILER_ID} MATCHES "Clang" OR 7 | ${CMAKE_C_COMPILER_ID} MATCHES "AppleClang") 8 | set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu11 -fno-strict-aliasing") 9 | set_target_properties(${PROJECT_NAME} PROPERTIES COMPILE_FLAGS "-fsigned-char") 10 | elseif (MSVC) 11 | # The following flags disable warnings that suggest to use MSVC-specific functions 12 | set(CMAKE_C_FLAGS "/wd4996 ${CMAKE_C_FLAGS}" CACHE STRING "" FORCE) 13 | if (CMAKE_C_FLAGS MATCHES "/W[0-4]") 14 | string(REGEX REPLACE "/W[0-4]" "/W4" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}") 15 | else() 16 | set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /W4") 17 | endif() 18 | endif() 19 | -------------------------------------------------------------------------------- /core/bgdc/include/bgdc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/bgdc/include/bgdc.h -------------------------------------------------------------------------------- /core/bgdc/include/codeblock.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/bgdc/include/codeblock.h -------------------------------------------------------------------------------- /core/bgdc/include/compiler.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/bgdc/include/compiler.h -------------------------------------------------------------------------------- /core/bgdc/include/constants.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/bgdc/include/constants.h -------------------------------------------------------------------------------- /core/bgdc/include/errors.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/bgdc/include/errors.h -------------------------------------------------------------------------------- /core/bgdc/include/errors_st.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/bgdc/include/errors_st.h -------------------------------------------------------------------------------- /core/bgdc/include/identifiers.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/bgdc/include/identifiers.h -------------------------------------------------------------------------------- /core/bgdc/include/messages.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/bgdc/include/messages.h -------------------------------------------------------------------------------- /core/bgdc/include/procdef.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/bgdc/include/procdef.h -------------------------------------------------------------------------------- /core/bgdc/include/segment.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/bgdc/include/segment.h -------------------------------------------------------------------------------- /core/bgdc/include/token.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/bgdc/include/token.h -------------------------------------------------------------------------------- /core/bgdc/include/varspace.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/bgdc/include/varspace.h -------------------------------------------------------------------------------- /core/bgdc/src/bgdc.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/bgdc/src/bgdc.ico -------------------------------------------------------------------------------- /core/bgdc/src/bgdc.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/bgdc/src/bgdc.rc -------------------------------------------------------------------------------- /core/bgdc/src/c_code.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/bgdc/src/c_code.c -------------------------------------------------------------------------------- /core/bgdc/src/c_data.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/bgdc/src/c_data.c -------------------------------------------------------------------------------- /core/bgdc/src/c_debug.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/bgdc/src/c_debug.c -------------------------------------------------------------------------------- /core/bgdc/src/c_main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/bgdc/src/c_main.c -------------------------------------------------------------------------------- /core/bgdc/src/codeblock.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/bgdc/src/codeblock.c -------------------------------------------------------------------------------- /core/bgdc/src/constants.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/bgdc/src/constants.c -------------------------------------------------------------------------------- /core/bgdc/src/dcbw.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/bgdc/src/dcbw.c -------------------------------------------------------------------------------- /core/bgdc/src/error.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/bgdc/src/error.c -------------------------------------------------------------------------------- /core/bgdc/src/identifier.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/bgdc/src/identifier.c -------------------------------------------------------------------------------- /core/bgdc/src/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/bgdc/src/main.c -------------------------------------------------------------------------------- /core/bgdc/src/main_core.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/bgdc/src/main_core.c -------------------------------------------------------------------------------- /core/bgdc/src/procedure.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/bgdc/src/procedure.c -------------------------------------------------------------------------------- /core/bgdc/src/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by bgdc.rc 4 | // 5 | #define IDI_ICON1 101 6 | 7 | // Next default values for new objects 8 | // 9 | #ifdef APSTUDIO_INVOKED 10 | #ifndef APSTUDIO_READONLY_SYMBOLS 11 | #define _APS_NEXT_RESOURCE_VALUE 102 12 | #define _APS_NEXT_COMMAND_VALUE 40001 13 | #define _APS_NEXT_CONTROL_VALUE 1000 14 | #define _APS_NEXT_SYMED_VALUE 101 15 | #endif 16 | #endif 17 | -------------------------------------------------------------------------------- /core/bgdc/src/segment.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/bgdc/src/segment.c -------------------------------------------------------------------------------- /core/bgdc/src/strings.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/bgdc/src/strings.c -------------------------------------------------------------------------------- /core/bgdc/src/sysstub.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/bgdc/src/sysstub.c -------------------------------------------------------------------------------- /core/bgdc/src/token.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/bgdc/src/token.c -------------------------------------------------------------------------------- /core/bgdc/src/typedef.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/bgdc/src/typedef.c -------------------------------------------------------------------------------- /core/bgdc/src/varspace.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/bgdc/src/varspace.c -------------------------------------------------------------------------------- /core/bgdi/include/bgdi.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/bgdi/include/bgdi.h -------------------------------------------------------------------------------- /core/bgdi/include/psp.h: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------- */ 2 | // PSP specific stuff 3 | // mostly based on ScummVM PSP port 4 | /* ---------------------------------------------------------------------- */ 5 | #ifdef TARGET_PSP 6 | #define USERSPACE_ONLY //don't use kernel mode features 7 | 8 | #include 9 | #include 10 | #include 11 | #include 12 | 13 | /** 14 | * Define the module info section 15 | * 16 | * 2nd arg must 0x1000 so __init is executed in 17 | * kernelmode for our loaderInit function 18 | */ 19 | #ifndef USERSPACE_ONLY 20 | PSP_MODULE_INFO("BennuGD PSP", PSP_MODULE_USER, 1, 0); 21 | #else 22 | PSP_MODULE_INFO("BennuGD PSP", 0, 1, 1); 23 | #endif 24 | 25 | /** 26 | * THREAD_ATTR_USER causes the thread that the startup 27 | * code (crt0.c) starts this program in to be in usermode 28 | * even though the module was started in kernelmode 29 | */ 30 | #ifndef USERSPACE_ONLY 31 | PSP_MAIN_THREAD_ATTR(THREAD_ATTR_USER | THREAD_ATTR_VFPU); 32 | #endif 33 | 34 | #ifndef USERSPACE_ONLY 35 | void MyExceptionHandler(PspDebugRegBlock *regs) 36 | { 37 | /* Do normal initial dump, setup screen etc */ 38 | 39 | pspDebugScreenInit(); 40 | 41 | pspDebugScreenSetBackColor(0x00FF0000); 42 | pspDebugScreenSetTextColor(0xFFFFFFFF); 43 | pspDebugScreenClear(); 44 | 45 | pspDebugScreenPrintf("Exception Details:\n"); 46 | pspDebugDumpException(regs); 47 | 48 | while (1) ; 49 | } 50 | 51 | /** 52 | * Function that is called from _init in kernelmode before the 53 | * main thread is started in usermode. 54 | */ 55 | __attribute__ ((constructor)) void loaderInit() 56 | { 57 | pspKernelSetKernelPC(); 58 | pspDebugInstallErrorHandler(MyExceptionHandler); 59 | } 60 | #endif 61 | 62 | /* Exit callback */ 63 | SceKernelCallbackFunction exit_callback(int arg1, int arg2, void* common) 64 | { 65 | sceKernelExitGame(); 66 | exit(0); 67 | return 0; 68 | } 69 | 70 | /* Callback thread */ 71 | int CallbackThread(SceSize size, void *arg) 72 | { 73 | int cbid; 74 | 75 | cbid = sceKernelCreateCallback("Exit Callback", (SceKernelCallbackFunction)exit_callback, NULL); 76 | sceKernelRegisterExitCallback(cbid); 77 | 78 | sceKernelSleepThreadCB(); 79 | return 0; 80 | } 81 | 82 | /* Sets up the callback thread and returns its thread id */ 83 | int SetupCallbacks(void) { 84 | int thid = sceKernelCreateThread("update_thread", CallbackThread, 0x11, 0xFA0, 0, 0); 85 | if (thid >= 0) { 86 | sceKernelStartThread(thid, 0, 0); 87 | } 88 | 89 | return thid; 90 | } 91 | 92 | #endif // END OF PSP specific stuff 93 | /* ---------------------------------------------------------------------- */ 94 | -------------------------------------------------------------------------------- /core/bgdi/src/bgdi.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/bgdi/src/bgdi.ico -------------------------------------------------------------------------------- /core/bgdi/src/bgdi.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/bgdi/src/bgdi.rc -------------------------------------------------------------------------------- /core/bgdi/src/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by bgdi.rc 4 | // 5 | #define IDI_ICON1 102 6 | 7 | // Next default values for new objects 8 | // 9 | #ifdef APSTUDIO_INVOKED 10 | #ifndef APSTUDIO_READONLY_SYMBOLS 11 | #define _APS_NEXT_RESOURCE_VALUE 105 12 | #define _APS_NEXT_COMMAND_VALUE 40001 13 | #define _APS_NEXT_CONTROL_VALUE 1000 14 | #define _APS_NEXT_SYMED_VALUE 101 15 | #endif 16 | #endif 17 | -------------------------------------------------------------------------------- /core/bgdrtm/include/bgdrtm.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/bgdrtm/include/bgdrtm.h -------------------------------------------------------------------------------- /core/bgdrtm/include/sysprocs_p.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/bgdrtm/include/sysprocs_p.h -------------------------------------------------------------------------------- /core/bgdrtm/src/copy.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/bgdrtm/src/copy.c -------------------------------------------------------------------------------- /core/bgdrtm/src/dcbr.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/bgdrtm/src/dcbr.c -------------------------------------------------------------------------------- /core/bgdrtm/src/dirs.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/bgdrtm/src/dirs.c -------------------------------------------------------------------------------- /core/bgdrtm/src/fmath.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/bgdrtm/src/fmath.c -------------------------------------------------------------------------------- /core/bgdrtm/src/instance.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/bgdrtm/src/instance.c -------------------------------------------------------------------------------- /core/bgdrtm/src/interpreter.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/bgdrtm/src/interpreter.c -------------------------------------------------------------------------------- /core/bgdrtm/src/sysprocs.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/bgdrtm/src/sysprocs.c -------------------------------------------------------------------------------- /core/bgdrtm/src/varspace_file.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/bgdrtm/src/varspace_file.c -------------------------------------------------------------------------------- /core/common/b_crypt.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/common/b_crypt.c -------------------------------------------------------------------------------- /core/common/debug.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/common/debug.c -------------------------------------------------------------------------------- /core/common/files.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/common/files.c -------------------------------------------------------------------------------- /core/common/xctype.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/common/xctype.c -------------------------------------------------------------------------------- /core/include/arrange.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/include/arrange.h -------------------------------------------------------------------------------- /core/include/b_crypt.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/include/b_crypt.h -------------------------------------------------------------------------------- /core/include/bgdcore.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/include/bgdcore.h -------------------------------------------------------------------------------- /core/include/commons_defs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/include/commons_defs.h -------------------------------------------------------------------------------- /core/include/dcb.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/include/dcb.h -------------------------------------------------------------------------------- /core/include/dirs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/include/dirs.h -------------------------------------------------------------------------------- /core/include/dlvaracc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/include/dlvaracc.h -------------------------------------------------------------------------------- /core/include/files.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/include/files.h -------------------------------------------------------------------------------- /core/include/files_st.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/include/files_st.h -------------------------------------------------------------------------------- /core/include/fmath.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/include/fmath.h -------------------------------------------------------------------------------- /core/include/i_procdef.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/include/i_procdef.h -------------------------------------------------------------------------------- /core/include/i_procdef_st.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/include/i_procdef_st.h -------------------------------------------------------------------------------- /core/include/instance.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/include/instance.h -------------------------------------------------------------------------------- /core/include/instance_st.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/include/instance_st.h -------------------------------------------------------------------------------- /core/include/offsets.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/include/offsets.h -------------------------------------------------------------------------------- /core/include/pslang.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/include/pslang.h -------------------------------------------------------------------------------- /core/include/sysprocs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/include/sysprocs.h -------------------------------------------------------------------------------- /core/include/sysprocs_st.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/include/sysprocs_st.h -------------------------------------------------------------------------------- /core/include/typedef.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/include/typedef.h -------------------------------------------------------------------------------- /core/include/typedef_st.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/include/typedef_st.h -------------------------------------------------------------------------------- /core/include/varspace_file.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/include/varspace_file.h -------------------------------------------------------------------------------- /core/include/xctype.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/include/xctype.h -------------------------------------------------------------------------------- /core/include/xctype_st.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/include/xctype_st.h -------------------------------------------------------------------------------- /core/include/xstrings.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/core/include/xstrings.h -------------------------------------------------------------------------------- /data/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/data/.gitkeep -------------------------------------------------------------------------------- /modules/graphic_dependencies.dia: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/graphic_dependencies.dia -------------------------------------------------------------------------------- /modules/graphic_dependencies.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/graphic_dependencies.png -------------------------------------------------------------------------------- /modules/libbgload/bgload.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/libbgload/bgload.c -------------------------------------------------------------------------------- /modules/libbgload/bgload.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/libbgload/bgload.h -------------------------------------------------------------------------------- /modules/libblit/g_blit.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/libblit/g_blit.c -------------------------------------------------------------------------------- /modules/libblit/g_blit.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/libblit/g_blit.h -------------------------------------------------------------------------------- /modules/libblit/g_pixel.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/libblit/g_pixel.c -------------------------------------------------------------------------------- /modules/libblit/g_pixel.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/libblit/g_pixel.h -------------------------------------------------------------------------------- /modules/libblit/libblit.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/libblit/libblit.c -------------------------------------------------------------------------------- /modules/libblit/libblit.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/libblit/libblit.h -------------------------------------------------------------------------------- /modules/libblit/libblit_symbols.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2006-2012 SplinterGU (Fenix/Bennugd) 3 | * Copyright © 2002-2006 Fenix Team (Fenix) 4 | * Copyright © 1999-2002 José Luis Cebrián Pagüe (Fenix) 5 | * 6 | * This file is part of Bennu - Game Development 7 | * 8 | * This software is provided 'as-is', without any express or implied 9 | * warranty. In no event will the authors be held liable for any damages 10 | * arising from the use of this software. 11 | * 12 | * Permission is granted to anyone to use this software for any purpose, 13 | * including commercial applications, and to alter it and redistribute it 14 | * freely, subject to the following restrictions: 15 | * 16 | * 1. The origin of this software must not be misrepresented; you must not 17 | * claim that you wrote the original software. If you use this software 18 | * in a product, an acknowledgment in the product documentation would be 19 | * appreciated but is not required. 20 | * 21 | * 2. Altered source versions must be plainly marked as such, and must not be 22 | * misrepresented as being the original software. 23 | * 24 | * 3. This notice may not be removed or altered from any source 25 | * distribution. 26 | * 27 | */ 28 | 29 | #ifndef __BLIT_SYMBOLS_H 30 | #define __BLIT_SYMBOLS_H 31 | 32 | #include 33 | 34 | #define B_HMIRROR 0x0001 35 | #define B_VMIRROR 0x0002 36 | #define B_TRANSLUCENT 0x0004 37 | #define B_ALPHA 0x0008 38 | #define B_ABLEND 0x0010 39 | #define B_SBLEND 0x0020 40 | #define B_NOCOLORKEY 0x0080 41 | 42 | /* --------------------------------------------------------------------------- */ 43 | 44 | extern DLCONSTANT __bgdexport( libblit, constants_def )[]; 45 | 46 | #endif 47 | -------------------------------------------------------------------------------- /modules/libdraw/libdraw.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/libdraw/libdraw.c -------------------------------------------------------------------------------- /modules/libdraw/libdraw.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/libdraw/libdraw.h -------------------------------------------------------------------------------- /modules/libfont/libfont.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/libfont/libfont.c -------------------------------------------------------------------------------- /modules/libfont/libfont.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/libfont/libfont.h -------------------------------------------------------------------------------- /modules/libfont/libfont_symbols.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2006-2012 SplinterGU (Fenix/Bennugd) 3 | * Copyright © 2002-2006 Fenix Team (Fenix) 4 | * Copyright © 1999-2002 José Luis Cebrián Pagüe (Fenix) 5 | * 6 | * This file is part of Bennu - Game Development 7 | * 8 | * This software is provided 'as-is', without any express or implied 9 | * warranty. In no event will the authors be held liable for any damages 10 | * arising from the use of this software. 11 | * 12 | * Permission is granted to anyone to use this software for any purpose, 13 | * including commercial applications, and to alter it and redistribute it 14 | * freely, subject to the following restrictions: 15 | * 16 | * 1. The origin of this software must not be misrepresented; you must not 17 | * claim that you wrote the original software. If you use this software 18 | * in a product, an acknowledgment in the product documentation would be 19 | * appreciated but is not required. 20 | * 21 | * 2. Altered source versions must be plainly marked as such, and must not be 22 | * misrepresented as being the original software. 23 | * 24 | * 3. This notice may not be removed or altered from any source 25 | * distribution. 26 | * 27 | */ 28 | 29 | #ifndef __FONT_SYMBOLS_H 30 | #define __FONT_SYMBOLS_H 31 | 32 | #include 33 | 34 | #ifdef __BGDC__ 35 | /* --------------------------------------------------------------------------- */ 36 | 37 | char * __bgdexport( libfont, modules_dependency )[] = 38 | { 39 | "libgrbase", 40 | NULL 41 | }; 42 | #else 43 | extern void __bgdexport( libfont, module_initialize )(); 44 | extern char __bgdexport( libfont, modules_dependency )[]; 45 | #endif 46 | #endif 47 | -------------------------------------------------------------------------------- /modules/libgrbase/bitwise_map.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/libgrbase/bitwise_map.h -------------------------------------------------------------------------------- /modules/libgrbase/g_bitmap.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/libgrbase/g_bitmap.c -------------------------------------------------------------------------------- /modules/libgrbase/g_bitmap.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/libgrbase/g_bitmap.h -------------------------------------------------------------------------------- /modules/libgrbase/g_blendop.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/libgrbase/g_blendop.c -------------------------------------------------------------------------------- /modules/libgrbase/g_blendop.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/libgrbase/g_blendop.h -------------------------------------------------------------------------------- /modules/libgrbase/g_clear.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/libgrbase/g_clear.c -------------------------------------------------------------------------------- /modules/libgrbase/g_clear.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/libgrbase/g_clear.h -------------------------------------------------------------------------------- /modules/libgrbase/g_conversion.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/libgrbase/g_conversion.c -------------------------------------------------------------------------------- /modules/libgrbase/g_conversion.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/libgrbase/g_conversion.h -------------------------------------------------------------------------------- /modules/libgrbase/g_grlib.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/libgrbase/g_grlib.c -------------------------------------------------------------------------------- /modules/libgrbase/g_grlib.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/libgrbase/g_grlib.h -------------------------------------------------------------------------------- /modules/libgrbase/g_pal.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/libgrbase/g_pal.c -------------------------------------------------------------------------------- /modules/libgrbase/g_pal.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/libgrbase/g_pal.h -------------------------------------------------------------------------------- /modules/libgrbase/g_region.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/libgrbase/g_region.h -------------------------------------------------------------------------------- /modules/libgrbase/libgrbase.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/libgrbase/libgrbase.c -------------------------------------------------------------------------------- /modules/libgrbase/libgrbase.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/libgrbase/libgrbase.h -------------------------------------------------------------------------------- /modules/libgrbase/libgrbase_symbols.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2006-2012 SplinterGU (Fenix/Bennugd) 3 | * Copyright © 2002-2006 Fenix Team (Fenix) 4 | * Copyright © 1999-2002 José Luis Cebrián Pagüe (Fenix) 5 | * 6 | * This file is part of Bennu - Game Development 7 | * 8 | * This software is provided 'as-is', without any express or implied 9 | * warranty. In no event will the authors be held liable for any damages 10 | * arising from the use of this software. 11 | * 12 | * Permission is granted to anyone to use this software for any purpose, 13 | * including commercial applications, and to alter it and redistribute it 14 | * freely, subject to the following restrictions: 15 | * 16 | * 1. The origin of this software must not be misrepresented; you must not 17 | * claim that you wrote the original software. If you use this software 18 | * in a product, an acknowledgment in the product documentation would be 19 | * appreciated but is not required. 20 | * 21 | * 2. Altered source versions must be plainly marked as such, and must not be 22 | * misrepresented as being the original software. 23 | * 24 | * 3. This notice may not be removed or altered from any source 25 | * distribution. 26 | * 27 | */ 28 | 29 | #ifndef __GRBASE_SYMBOLS_H 30 | #define __GRBASE_SYMBOLS_H 31 | 32 | #include 33 | 34 | #ifdef __BGDC__ 35 | /* --------------------------------------------------------------------------- */ 36 | /* Definicion de variables globales (usada en tiempo de compilacion) */ 37 | 38 | char __bgdexport( libgrbase, globals_def )[] = 39 | "alpha_steps = 16;\n" 40 | ; 41 | #else 42 | extern DLVARFIXUP __bgdexport( libgrbase, globals_fixup )[]; 43 | extern char __bgdexport( libgrbase, globals_def )[]; 44 | extern void __bgdexport( libgrbase, module_initialize )(); 45 | #endif 46 | 47 | #endif 48 | -------------------------------------------------------------------------------- /modules/libgrbase/resolution.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/libgrbase/resolution.h -------------------------------------------------------------------------------- /modules/libjoy/libjoy.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/libjoy/libjoy.c -------------------------------------------------------------------------------- /modules/libjoy/libjoy.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/libjoy/libjoy.h -------------------------------------------------------------------------------- /modules/libjoy/libjoy_symbols.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2006-2012 SplinterGU (Fenix/Bennugd) 3 | * Copyright © 2002-2006 Fenix Team (Fenix) 4 | * Copyright © 1999-2002 José Luis Cebrián Pagüe (Fenix) 5 | * 6 | * This file is part of Bennu - Game Development 7 | * 8 | * This software is provided 'as-is', without any express or implied 9 | * warranty. In no event will the authors be held liable for any damages 10 | * arising from the use of this software. 11 | * 12 | * Permission is granted to anyone to use this software for any purpose, 13 | * including commercial applications, and to alter it and redistribute it 14 | * freely, subject to the following restrictions: 15 | * 16 | * 1. The origin of this software must not be misrepresented; you must not 17 | * claim that you wrote the original software. If you use this software 18 | * in a product, an acknowledgment in the product documentation would be 19 | * appreciated but is not required. 20 | * 21 | * 2. Altered source versions must be plainly marked as such, and must not be 22 | * misrepresented as being the original software. 23 | * 24 | * 3. This notice may not be removed or altered from any source 25 | * distribution. 26 | * 27 | */ 28 | 29 | #ifndef __JOY_H 30 | #define __JOY_H 31 | 32 | #include 33 | #include 34 | 35 | #ifdef __BGDC__ 36 | /* --------------------------------------------------------------------------- */ 37 | /* Funciones de inicializacion del modulo/plugin */ 38 | 39 | DLCONSTANT __bgdexport( libjoy, constants_def )[] = 40 | { 41 | { "JOY_HAT_CENTERED" , TYPE_DWORD, SDL_HAT_CENTERED }, 42 | { "JOY_HAT_UP" , TYPE_DWORD, SDL_HAT_UP }, 43 | { "JOY_HAT_RIGHT" , TYPE_DWORD, SDL_HAT_RIGHT }, 44 | { "JOY_HAT_DOWN" , TYPE_DWORD, SDL_HAT_DOWN }, 45 | { "JOY_HAT_LEFT" , TYPE_DWORD, SDL_HAT_LEFT }, 46 | { "JOY_HAT_RIGHTUP" , TYPE_DWORD, SDL_HAT_RIGHTUP }, 47 | { "JOY_HAT_RIGHTDOWN" , TYPE_DWORD, SDL_HAT_RIGHTDOWN }, 48 | { "JOY_HAT_LEFTUP" , TYPE_DWORD, SDL_HAT_LEFTUP }, 49 | { "JOY_HAT_LEFTDOWN" , TYPE_DWORD, SDL_HAT_LEFTDOWN }, 50 | { NULL , 0 , 0 } 51 | } ; 52 | 53 | /* ----------------------------------------------------------------- */ 54 | 55 | char *__bgdexport( libjoy, modules_dependency )[] = 56 | { 57 | "libsdlhandler", 58 | NULL 59 | }; 60 | #else 61 | extern DLCONSTANT __bgdexport( libjoy, constants_def )[]; 62 | extern void __bgdexport( libjoy, module_initialize )(); 63 | extern void __bgdexport( libjoy, module_finalize )(); 64 | extern char __bgdexport( libjoy, modules_dependency )[]; 65 | #endif 66 | 67 | #endif 68 | -------------------------------------------------------------------------------- /modules/libkey/libkey.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/libkey/libkey.c -------------------------------------------------------------------------------- /modules/libkey/libkey.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/libkey/libkey.h -------------------------------------------------------------------------------- /modules/libmouse/libmouse.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/libmouse/libmouse.c -------------------------------------------------------------------------------- /modules/libmouse/libmouse_symbols.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2006-2012 SplinterGU (Fenix/Bennugd) 3 | * Copyright © 2002-2006 Fenix Team (Fenix) 4 | * Copyright © 1999-2002 José Luis Cebrián Pagüe (Fenix) 5 | * 6 | * This file is part of Bennu - Game Development 7 | * 8 | * This software is provided 'as-is', without any express or implied 9 | * warranty. In no event will the authors be held liable for any damages 10 | * arising from the use of this software. 11 | * 12 | * Permission is granted to anyone to use this software for any purpose, 13 | * including commercial applications, and to alter it and redistribute it 14 | * freely, subject to the following restrictions: 15 | * 16 | * 1. The origin of this software must not be misrepresented; you must not 17 | * claim that you wrote the original software. If you use this software 18 | * in a product, an acknowledgment in the product documentation would be 19 | * appreciated but is not required. 20 | * 21 | * 2. Altered source versions must be plainly marked as such, and must not be 22 | * misrepresented as being the original software. 23 | * 24 | * 3. This notice may not be removed or altered from any source 25 | * distribution. 26 | * 27 | */ 28 | 29 | #ifndef __MOUSE_H 30 | #define __MOUSE_H 31 | 32 | #include 33 | 34 | #ifdef __BGDC__ 35 | /* --------------------------------------------------------------------------- */ 36 | 37 | char __bgdexport( libmouse, globals_def )[] = 38 | "STRUCT mouse\n" 39 | "x = 99999, y = 99999;\n" 40 | "z = -512;\n" 41 | "file;\n" 42 | "graph;\n" 43 | "angle;\n" 44 | "size = 100;\n" 45 | "flags;\n" 46 | "region;\n" 47 | "left, middle, right;\n" 48 | "wheelup, wheeldown;\n" 49 | "END\n"; 50 | 51 | /* --------------------------------------------------------------------------- */ 52 | 53 | char * __bgdexport( libmouse, modules_dependency )[] = 54 | { 55 | "libsdlhandler", 56 | "libgrbase", 57 | "libvideo", 58 | "libblit", 59 | "librender", // Add by Sandman 60 | NULL 61 | }; 62 | #else 63 | extern DLVARFIXUP __bgdexport( libmouse, globals_fixup )[]; 64 | extern HOOK __bgdexport( libmouse, handler_hooks )[]; 65 | extern void __bgdexport( libmouse, module_initialize )(); 66 | extern char __bgdexport( libmouse, globals_def )[]; 67 | extern char __bgdexport( libmouse, modules_dependency )[]; 68 | #endif 69 | 70 | #endif 71 | -------------------------------------------------------------------------------- /modules/librender/g_fade.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/librender/g_fade.c -------------------------------------------------------------------------------- /modules/librender/g_fade.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/librender/g_fade.h -------------------------------------------------------------------------------- /modules/librender/g_frame.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/librender/g_frame.c -------------------------------------------------------------------------------- /modules/librender/g_frame.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/librender/g_frame.h -------------------------------------------------------------------------------- /modules/librender/g_instance.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/librender/g_instance.c -------------------------------------------------------------------------------- /modules/librender/g_instance.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/librender/g_instance.h -------------------------------------------------------------------------------- /modules/librender/g_object.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/librender/g_object.c -------------------------------------------------------------------------------- /modules/librender/g_object.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/librender/g_object.h -------------------------------------------------------------------------------- /modules/librender/g_rects.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/librender/g_rects.c -------------------------------------------------------------------------------- /modules/librender/g_rects.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/librender/g_rects.h -------------------------------------------------------------------------------- /modules/librender/g_screen.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/librender/g_screen.c -------------------------------------------------------------------------------- /modules/librender/g_screen.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/librender/g_screen.h -------------------------------------------------------------------------------- /modules/librender/librender.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/librender/librender.c -------------------------------------------------------------------------------- /modules/librender/librender.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/librender/librender.h -------------------------------------------------------------------------------- /modules/libscroll/libscroll.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/libscroll/libscroll.c -------------------------------------------------------------------------------- /modules/libscroll/libscroll.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/libscroll/libscroll.h -------------------------------------------------------------------------------- /modules/libsdlhandler/libsdlhandler.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2006-2012 SplinterGU (Fenix/Bennugd) 3 | * 4 | * This file is part of Bennu - Game Development 5 | * 6 | * This software is provided 'as-is', without any express or implied 7 | * warranty. In no event will the authors be held liable for any damages 8 | * arising from the use of this software. 9 | * 10 | * Permission is granted to anyone to use this software for any purpose, 11 | * including commercial applications, and to alter it and redistribute it 12 | * freely, subject to the following restrictions: 13 | * 14 | * 1. The origin of this software must not be misrepresented; you must not 15 | * claim that you wrote the original software. If you use this software 16 | * in a product, an acknowledgment in the product documentation would be 17 | * appreciated but is not required. 18 | * 19 | * 2. Altered source versions must be plainly marked as such, and must not be 20 | * misrepresented as being the original software. 21 | * 22 | * 3. This notice may not be removed or altered from any source 23 | * distribution. 24 | * 25 | */ 26 | 27 | #include "bgddl.h" 28 | 29 | #include 30 | 31 | /* ----------------------------------------------------------------- */ 32 | /* Public functions */ 33 | 34 | static void dump_new_events() 35 | { 36 | /* Remove all pendings events */ 37 | 38 | /* We can't return -1, just return 0 (no event) on error */ 39 | // We'll only discard events that no module knows how to handle here... 40 | // Otherwise some events seem to get discarded 41 | // SDL_FlushEvents(SDL_SYSWMEVENT, SDL_SYSWMEVENT); 42 | // SDL_FlushEvents(SDL_TEXTEDITING, SDL_TEXTINPUT); 43 | // SDL_FlushEvents(SDL_JOYDEVICEADDED, SDL_CONTROLLERDEVICEREMAPPED); 44 | // SDL_FlushEvents(SDL_DOLLARGESTURE, SDL_LASTEVENT); 45 | 46 | /* Get new events */ 47 | // SDL_PumpEvents(); 48 | SDL_JoystickUpdate(); 49 | } 50 | 51 | /* ----------------------------------------------------------------- */ 52 | /* Funciones de inicializacion del modulo/plugin */ 53 | 54 | void __bgdexport( libsdlhandler, module_initialize )() 55 | { 56 | } 57 | 58 | /* ----------------------------------------------------------------- */ 59 | 60 | void __bgdexport( libsdlhandler, module_finalize )() 61 | { 62 | } 63 | 64 | /* ----------------------------------------------------------------- */ 65 | 66 | /* Bigest priority first execute 67 | Lowest priority last execute */ 68 | 69 | HOOK __bgdexport( libsdlhandler, handler_hooks )[] = 70 | { 71 | { 5000, dump_new_events }, 72 | { 0, NULL } 73 | } ; 74 | 75 | /* ----------------------------------------------------------------- */ 76 | -------------------------------------------------------------------------------- /modules/libsdlhandler/libsdlhandler_symbols.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2006-2012 SplinterGU (Fenix/Bennugd) 3 | * Copyright © 2002-2006 Fenix Team (Fenix) 4 | * Copyright © 1999-2002 José Luis Cebrián Pagüe (Fenix) 5 | * 6 | * This file is part of Bennu - Game Development 7 | * 8 | * This software is provided 'as-is', without any express or implied 9 | * warranty. In no event will the authors be held liable for any damages 10 | * arising from the use of this software. 11 | * 12 | * Permission is granted to anyone to use this software for any purpose, 13 | * including commercial applications, and to alter it and redistribute it 14 | * freely, subject to the following restrictions: 15 | * 16 | * 1. The origin of this software must not be misrepresented; you must not 17 | * claim that you wrote the original software. If you use this software 18 | * in a product, an acknowledgment in the product documentation would be 19 | * appreciated but is not required. 20 | * 21 | * 2. Altered source versions must be plainly marked as such, and must not be 22 | * misrepresented as being the original software. 23 | * 24 | * 3. This notice may not be removed or altered from any source 25 | * distribution. 26 | * 27 | */ 28 | 29 | #ifndef __SDLHANDLER_H 30 | #define __SDLHANDLER_H 31 | 32 | #ifdef __BGDC__ 33 | #else 34 | #include 35 | extern void __bgdexport( libsdlhandler, module_initialize )(); 36 | extern void __bgdexport( libsdlhandler, module_finalize )(); 37 | extern HOOK __bgdexport( libsdlhandler, handler_hooks )[]; 38 | #endif 39 | 40 | #endif 41 | -------------------------------------------------------------------------------- /modules/libtext/libtext.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/libtext/libtext.c -------------------------------------------------------------------------------- /modules/libtext/libtext.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/libtext/libtext.h -------------------------------------------------------------------------------- /modules/libtext/libtext_symbols.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2006-2012 SplinterGU (Fenix/Bennugd) 3 | * Copyright © 2002-2006 Fenix Team (Fenix) 4 | * Copyright © 1999-2002 José Luis Cebrián Pagüe (Fenix) 5 | * 6 | * This file is part of Bennu - Game Development 7 | * 8 | * This software is provided 'as-is', without any express or implied 9 | * warranty. In no event will the authors be held liable for any damages 10 | * arising from the use of this software. 11 | * 12 | * Permission is granted to anyone to use this software for any purpose, 13 | * including commercial applications, and to alter it and redistribute it 14 | * freely, subject to the following restrictions: 15 | * 16 | * 1. The origin of this software must not be misrepresented; you must not 17 | * claim that you wrote the original software. If you use this software 18 | * in a product, an acknowledgment in the product documentation would be 19 | * appreciated but is not required. 20 | * 21 | * 2. Altered source versions must be plainly marked as such, and must not be 22 | * misrepresented as being the original software. 23 | * 24 | * 3. This notice may not be removed or altered from any source 25 | * distribution. 26 | * 27 | */ 28 | 29 | #ifndef __TEXT_SYMBOLS_H 30 | #define __TEXT_SYMBOLS_H 31 | 32 | #include 33 | 34 | #ifdef __BGDC__ 35 | /* --------------------------------------------------------------------------- */ 36 | /* Definicion de variables globales (usada en tiempo de compilacion) */ 37 | 38 | char __bgdexport( libtext, globals_def )[] = 39 | "text_z = -256;\n" 40 | "text_flags;\n" 41 | ; 42 | 43 | /* --------------------------------------------------------------------------- */ 44 | 45 | char * __bgdexport( libtext, modules_dependency )[] = 46 | { 47 | "libgrbase", 48 | "libblit", 49 | "librender", 50 | "libfont", 51 | NULL 52 | }; 53 | #else 54 | extern char __bgdexport( libtext, globals_def )[]; 55 | extern char __bgdexport( libtext, modules_dependency )[]; 56 | extern DLVARFIXUP __bgdexport( libtext, globals_fixup )[]; 57 | #endif 58 | 59 | #endif 60 | -------------------------------------------------------------------------------- /modules/libvideo/g_regions.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/libvideo/g_regions.c -------------------------------------------------------------------------------- /modules/libvideo/g_regions.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/libvideo/g_regions.h -------------------------------------------------------------------------------- /modules/libvideo/g_video.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/libvideo/g_video.c -------------------------------------------------------------------------------- /modules/libvideo/g_video.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/libvideo/g_video.h -------------------------------------------------------------------------------- /modules/libvideo/libvideo.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/libvideo/libvideo.h -------------------------------------------------------------------------------- /modules/libwm/libwm.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/libwm/libwm.c -------------------------------------------------------------------------------- /modules/libwm/libwm_symbols.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2006-2012 SplinterGU (Fenix/Bennugd) 3 | * Copyright © 2002-2006 Fenix Team (Fenix) 4 | * Copyright © 1999-2002 José Luis Cebrián Pagüe (Fenix) 5 | * 6 | * This file is part of Bennu - Game Development 7 | * 8 | * This software is provided 'as-is', without any express or implied 9 | * warranty. In no event will the authors be held liable for any damages 10 | * arising from the use of this software. 11 | * 12 | * Permission is granted to anyone to use this software for any purpose, 13 | * including commercial applications, and to alter it and redistribute it 14 | * freely, subject to the following restrictions: 15 | * 16 | * 1. The origin of this software must not be misrepresented; you must not 17 | * claim that you wrote the original software. If you use this software 18 | * in a product, an acknowledgment in the product documentation would be 19 | * appreciated but is not required. 20 | * 21 | * 2. Altered source versions must be plainly marked as such, and must not be 22 | * misrepresented as being the original software. 23 | * 24 | * 3. This notice may not be removed or altered from any source 25 | * distribution. 26 | * 27 | */ 28 | 29 | #ifndef __WM_SYMBOLS_H 30 | #define __WM_SYMBOLS_H 31 | 32 | #include 33 | 34 | #ifdef __BGDC__ 35 | /* --------------------------------------------------------------------------- */ 36 | /* Definicion de variables globales (usada en tiempo de compilacion) */ 37 | 38 | char __bgdexport( libwm, globals_def )[] = 39 | "exit_status = 0;\n" /* SDL_QUIT status */ 40 | "window_status = 1;\n" /* MINIMIZED:0 VISIBLE:1 */ 41 | "focus_status = 1;\n" /* FOCUS status */ 42 | "mouse_status = 1;\n"; /* MOUSE status (INSIDE WINDOW:1) */ 43 | 44 | /* --------------------------------------------------------------------------- */ 45 | 46 | char * __bgdexport( libwm, modules_dependency )[] = 47 | { 48 | "libsdlhandler", 49 | NULL 50 | }; 51 | #else 52 | extern char __bgdexport( libwm, globals_def )[]; 53 | extern char __bgdexport( libwm, modules_dependency )[]; 54 | extern DLVARFIXUP __bgdexport( libwm, globals_fixup )[]; 55 | extern HOOK __bgdexport( libwm, handler_hooks )[]; 56 | #endif 57 | 58 | #endif 59 | -------------------------------------------------------------------------------- /modules/mod_blendop/mod_blendop.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_blendop/mod_blendop.c -------------------------------------------------------------------------------- /modules/mod_blendop/mod_blendop_symbols.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2006-2012 SplinterGU (Fenix/Bennugd) 3 | * Copyright © 2002-2006 Fenix Team (Fenix) 4 | * Copyright © 1999-2002 José Luis Cebrián Pagüe (Fenix) 5 | * 6 | * This file is part of Bennu - Game Development 7 | * 8 | * This software is provided 'as-is', without any express or implied 9 | * warranty. In no event will the authors be held liable for any damages 10 | * arising from the use of this software. 11 | * 12 | * Permission is granted to anyone to use this software for any purpose, 13 | * including commercial applications, and to alter it and redistribute it 14 | * freely, subject to the following restrictions: 15 | * 16 | * 1. The origin of this software must not be misrepresented; you must not 17 | * claim that you wrote the original software. If you use this software 18 | * in a product, an acknowledgment in the product documentation would be 19 | * appreciated but is not required. 20 | * 21 | * 2. Altered source versions must be plainly marked as such, and must not be 22 | * misrepresented as being the original software. 23 | * 24 | * 3. This notice may not be removed or altered from any source 25 | * distribution. 26 | * 27 | */ 28 | 29 | #ifndef __MODBLENDOP_SYMBOLS_H 30 | #define __MODBLENDOP_SYMBOLS_H 31 | 32 | #include 33 | 34 | #ifdef __BGDC__ 35 | /* ---------------------------------------------------------------------- */ 36 | 37 | DLSYSFUNCS __bgdexport( mod_blendop, functions_exports)[] = 38 | { 39 | /* Blendops */ 40 | { "BLENDOP_NEW" , "" , TYPE_INT , 0 }, 41 | { "BLENDOP_IDENTITY" , "I" , TYPE_INT , 0 }, 42 | { "BLENDOP_TINT" , "IFIII" , TYPE_INT , 0 }, 43 | { "BLENDOP_TRANSLUCENCY" , "IF" , TYPE_INT , 0 }, 44 | { "BLENDOP_INTENSITY" , "IF" , TYPE_INT , 0 }, 45 | { "BLENDOP_SWAP" , "I" , TYPE_INT , 0 }, 46 | { "BLENDOP_ASSIGN" , "III" , TYPE_INT , 0 }, 47 | { "BLENDOP_APPLY" , "III" , TYPE_INT , 0 }, 48 | { "BLENDOP_FREE" , "I" , TYPE_INT , 0 }, 49 | { "BLENDOP_GRAYSCALE" , "II" , TYPE_INT , 0 }, 50 | 51 | { 0 , 0 , 0 , 0 } 52 | }; 53 | 54 | /* --------------------------------------------------------------------------- */ 55 | 56 | char * __bgdexport( mod_blendop, modules_dependency )[] = 57 | { 58 | "libgrbase", 59 | NULL 60 | }; 61 | #else 62 | extern DLSYSFUNCS __bgdexport( mod_blendop, functions_exports)[]; 63 | extern char __bgdexport( mod_blendop, modules_dependency )[]; 64 | #endif 65 | 66 | #endif 67 | -------------------------------------------------------------------------------- /modules/mod_cd/mod_cd.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_cd/mod_cd.c -------------------------------------------------------------------------------- /modules/mod_chipmunk/Arreglos.h: -------------------------------------------------------------------------------- 1 | #ifndef ARREGLOS_H 2 | #define ARREGLOS_H 3 | 4 | #define AVANCE 20 5 | 6 | typedef struct{ 7 | int cant; 8 | int max; 9 | void ** arreglo; 10 | } modChipmunkStruct_Arreglo; 11 | 12 | 13 | 14 | modChipmunkStruct_Arreglo * modChipmunk_nuevoArreglo(int tam); 15 | void modChipmunk_destruyeArreglo(modChipmunkStruct_Arreglo ** a, int eliminaMiembros); 16 | void modChipmunk_ArregloPush(modChipmunkStruct_Arreglo * a, void * o); 17 | void * modChipmunk_ArregloPop(modChipmunkStruct_Arreglo * a); 18 | typedef void (*modChipmunk_itF )(void *ptr, void *data); 19 | void modChipmunk_arregloItera(modChipmunkStruct_Arreglo * a, modChipmunk_itF iterador, void *datos); 20 | int modChipmunk_ArregloCantidad(modChipmunkStruct_Arreglo * a); 21 | void modChipmunk_ArregloLimpia(modChipmunkStruct_Arreglo * a, int eliminaMiembros); 22 | void * mCh_AAt(modChipmunkStruct_Arreglo * a,int p); 23 | void mCh_AAtS(modChipmunkStruct_Arreglo * a,int p,void * v); 24 | #endif // ARREGLOS_H 25 | -------------------------------------------------------------------------------- /modules/mod_chipmunk/Ayuda.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_chipmunk/Ayuda.pdf -------------------------------------------------------------------------------- /modules/mod_chipmunk/Constraints.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_chipmunk/Constraints.c -------------------------------------------------------------------------------- /modules/mod_chipmunk/Cuerpo.h: -------------------------------------------------------------------------------- 1 | #ifndef CUERPO_H 2 | #define CUERPO_H 3 | 4 | #include 5 | #include 6 | 7 | #include "chipmunk.h" 8 | #include "bgddl.h" 9 | #include "bgdrtm.h" 10 | #include "xstrings.h" 11 | #include "dlvaracc.h" 12 | #include "libdraw.h" 13 | #include "librender.h" 14 | #include "mod_map.h" 15 | #include "Arreglos.h" 16 | #include "LL.h" 17 | 18 | int modgetBody(INSTANCE * my, int * params); 19 | int modcpBodyLocal2World(INSTANCE * my, int * params); 20 | int modDefcpBody(INSTANCE * my, int * params); 21 | int modGetEcpBody(INSTANCE * my, int * params); 22 | int modcpBodySetMass(INSTANCE * my, int * params); 23 | int modcpBodySetMoment(INSTANCE * my, int * params); 24 | int modcpBodySetAngle(INSTANCE * my, int * params); 25 | int modcpBodyUpdatePosition(INSTANCE * my, int * params); 26 | int modcpBodyResetForces(INSTANCE * my, int * params); 27 | int modcpBodyIsSleeping(INSTANCE * my, int * params); 28 | int modcpBodySleep(INSTANCE * my, int * params); 29 | int modcpBodyActivate(INSTANCE * my, int * params); 30 | int modcpBodyIsStatic(INSTANCE * my, int * params); 31 | int modcpBodyIsRogue(INSTANCE * my, int * params); 32 | int modcpBodySleepWithGroup(INSTANCE * my, int * params); 33 | int modcpBodyApplyForce(INSTANCE * my, int * params); 34 | int modcpBodyApplyImpulse(INSTANCE * my, int * params); 35 | int modcpBodyWorld2Local(INSTANCE * my, int * params); 36 | int modcpBodySlew(INSTANCE * my, int * params); 37 | int modcpBodyUpdateVelocity(INSTANCE * my, int * params); 38 | int modActivateProcessTouchingIt(INSTANCE * my, int * params); 39 | void addListaProcesos(INSTANCE * ins); 40 | int modaddCircleShape(INSTANCE * my, int * params); 41 | int modaddSegmentShape(INSTANCE * my, int * params); 42 | int modaddPolyShape(INSTANCE * my, int * params); 43 | int creaPoly(int * params,cpBody* bod); 44 | int modaddSegmentShapeTo(INSTANCE * my, int * params); 45 | #define ajustaTam LOCDWORD( mod_chipmunk, my, LOC_SIZE )/100.0 46 | int creaBodyAndShapeAutomat(INSTANCE *my); 47 | int modcpCalculaConvexHull(INSTANCE * my, int * params); 48 | #endif 49 | -------------------------------------------------------------------------------- /modules/mod_chipmunk/Espacio.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_chipmunk/Espacio.c -------------------------------------------------------------------------------- /modules/mod_chipmunk/Espacio.h: -------------------------------------------------------------------------------- 1 | #ifndef ESPACIO_H 2 | #define ESPACIO_H 3 | 4 | #include 5 | #include 6 | 7 | #include "chipmunk.h" 8 | #include "bgddl.h" 9 | #include "bgdrtm.h" 10 | #include "xstrings.h" 11 | #include "dlvaracc.h" 12 | #include "libdraw.h" 13 | #include "librender.h" 14 | #include "mod_map.h" 15 | 16 | int modcpSpaceGetCurrentTimeStep(INSTANCE * my, int * params); 17 | int modGetStaticBody(INSTANCE * my, int * params); 18 | int modcpSpaceActivateShapesTouchingShape(INSTANCE * my, int * params); 19 | int modcpSpaceResizeStaticHash(INSTANCE * my, int * params); 20 | int modcpSpaceResizeActiveHash(INSTANCE * my, int * params); 21 | int modcpSpaceUseSpatialHash(INSTANCE * my, int * params); 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /modules/mod_chipmunk/Examples/Errores.txt: -------------------------------------------------------------------------------- 1 | test 13 --> hay constraints que ya se removieron y que se quieren remover de nuevo... revisar -------------------------------------------------------------------------------- /modules/mod_chipmunk/Examples/Test00.prg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_chipmunk/Examples/Test00.prg -------------------------------------------------------------------------------- /modules/mod_chipmunk/Examples/Test01.prg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_chipmunk/Examples/Test01.prg -------------------------------------------------------------------------------- /modules/mod_chipmunk/Examples/Test11.prg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_chipmunk/Examples/Test11.prg -------------------------------------------------------------------------------- /modules/mod_chipmunk/Examples/Test12.prg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_chipmunk/Examples/Test12.prg -------------------------------------------------------------------------------- /modules/mod_chipmunk/Examples/Test13.prg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_chipmunk/Examples/Test13.prg -------------------------------------------------------------------------------- /modules/mod_chipmunk/Examples/Test14.prg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_chipmunk/Examples/Test14.prg -------------------------------------------------------------------------------- /modules/mod_chipmunk/Examples/Test15.prg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_chipmunk/Examples/Test15.prg -------------------------------------------------------------------------------- /modules/mod_chipmunk/Examples/Test17.prg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_chipmunk/Examples/Test17.prg -------------------------------------------------------------------------------- /modules/mod_chipmunk/Examples/Test18.prg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_chipmunk/Examples/Test18.prg -------------------------------------------------------------------------------- /modules/mod_chipmunk/Examples/bola40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_chipmunk/Examples/bola40.png -------------------------------------------------------------------------------- /modules/mod_chipmunk/Examples/bomba.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_chipmunk/Examples/bomba.png -------------------------------------------------------------------------------- /modules/mod_chipmunk/Examples/buss.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_chipmunk/Examples/buss.png -------------------------------------------------------------------------------- /modules/mod_chipmunk/Examples/catapulta.fpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_chipmunk/Examples/catapulta.fpg -------------------------------------------------------------------------------- /modules/mod_chipmunk/Examples/creaTerreno.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_chipmunk/Examples/creaTerreno.png -------------------------------------------------------------------------------- /modules/mod_chipmunk/Examples/cuadro.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_chipmunk/Examples/cuadro.png -------------------------------------------------------------------------------- /modules/mod_chipmunk/Examples/e.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_chipmunk/Examples/e.png -------------------------------------------------------------------------------- /modules/mod_chipmunk/Examples/exa.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_chipmunk/Examples/exa.png -------------------------------------------------------------------------------- /modules/mod_chipmunk/Examples/fondo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_chipmunk/Examples/fondo.png -------------------------------------------------------------------------------- /modules/mod_chipmunk/Examples/fondoHielo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_chipmunk/Examples/fondoHielo.png -------------------------------------------------------------------------------- /modules/mod_chipmunk/Examples/fondoImg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_chipmunk/Examples/fondoImg.png -------------------------------------------------------------------------------- /modules/mod_chipmunk/Examples/graficos.fpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_chipmunk/Examples/graficos.fpg -------------------------------------------------------------------------------- /modules/mod_chipmunk/Examples/pelota.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_chipmunk/Examples/pelota.png -------------------------------------------------------------------------------- /modules/mod_chipmunk/Examples/piso.cpt: -------------------------------------------------------------------------------- 1 | CTRL-PTS 2 | 27 3 | 693 300 4 | 332 337 5 | 125 347 6 | -1 -1 7 | 129 204 8 | 39 212 9 | 3 240 10 | 3 3 11 | 1383 14 12 | 1380 269 13 | 1334 245 14 | 1260 251 15 | 1178 301 16 | 1094 399 17 | 1024 463 18 | 862 466 19 | 830 534 20 | 639 532 21 | -1 -1 22 | 742 213 23 | 636 216 24 | -1 -1 25 | 589 469 26 | 508 468 27 | -1 -1 28 | 460 405 29 | 382 407 30 | -------------------------------------------------------------------------------- /modules/mod_chipmunk/Examples/punto_peque.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_chipmunk/Examples/punto_peque.png -------------------------------------------------------------------------------- /modules/mod_chipmunk/Examples/scroll.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_chipmunk/Examples/scroll.png -------------------------------------------------------------------------------- /modules/mod_chipmunk/Examples/soga.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_chipmunk/Examples/soga.png -------------------------------------------------------------------------------- /modules/mod_chipmunk/Examples/sonidos/cae.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_chipmunk/Examples/sonidos/cae.wav -------------------------------------------------------------------------------- /modules/mod_chipmunk/Examples/sonidos/lanzarPelota.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_chipmunk/Examples/sonidos/lanzarPelota.wav -------------------------------------------------------------------------------- /modules/mod_chipmunk/Examples/terreno320x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_chipmunk/Examples/terreno320x240.png -------------------------------------------------------------------------------- /modules/mod_chipmunk/Examples/test.TXT: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_chipmunk/Examples/test.TXT -------------------------------------------------------------------------------- /modules/mod_chipmunk/Examples/test02.prg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_chipmunk/Examples/test02.prg -------------------------------------------------------------------------------- /modules/mod_chipmunk/Examples/test03.prg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_chipmunk/Examples/test03.prg -------------------------------------------------------------------------------- /modules/mod_chipmunk/Examples/test04.prg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_chipmunk/Examples/test04.prg -------------------------------------------------------------------------------- /modules/mod_chipmunk/Examples/test05.prg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_chipmunk/Examples/test05.prg -------------------------------------------------------------------------------- /modules/mod_chipmunk/Examples/test06.prg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_chipmunk/Examples/test06.prg -------------------------------------------------------------------------------- /modules/mod_chipmunk/Examples/test07.prg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_chipmunk/Examples/test07.prg -------------------------------------------------------------------------------- /modules/mod_chipmunk/Examples/test08.prg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_chipmunk/Examples/test08.prg -------------------------------------------------------------------------------- /modules/mod_chipmunk/Examples/test09.prg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_chipmunk/Examples/test09.prg -------------------------------------------------------------------------------- /modules/mod_chipmunk/Examples/test10.prg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_chipmunk/Examples/test10.prg -------------------------------------------------------------------------------- /modules/mod_chipmunk/Examples/test16.prg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_chipmunk/Examples/test16.prg -------------------------------------------------------------------------------- /modules/mod_chipmunk/Examples/test19.prg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_chipmunk/Examples/test19.prg -------------------------------------------------------------------------------- /modules/mod_chipmunk/Examples/test20.prg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_chipmunk/Examples/test20.prg -------------------------------------------------------------------------------- /modules/mod_chipmunk/Examples/tri.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_chipmunk/Examples/tri.png -------------------------------------------------------------------------------- /modules/mod_chipmunk/Handlers.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_chipmunk/Handlers.c -------------------------------------------------------------------------------- /modules/mod_chipmunk/Handlers.h: -------------------------------------------------------------------------------- 1 | #ifndef HANDLERS_H 2 | #define HANDLERS_H 3 | 4 | #include 5 | #include 6 | 7 | #include "chipmunk.h" 8 | #include "bgddl.h" 9 | #include "bgdrtm.h" 10 | #include "xstrings.h" 11 | #include "dlvaracc.h" 12 | #include "libdraw.h" 13 | #include "librender.h" 14 | #include "mod_map.h" 15 | #include "Arreglos.h" 16 | #include "LL.h" 17 | 18 | 19 | int beginCall(cpArbiter *arb, struct cpSpace *space, void *data); 20 | int modcpSpaceAddCollisionHandler(INSTANCE * my, int * params); 21 | int modcpSpaceRemoveCollisionHandler(INSTANCE * my, int * params); 22 | int modremoveHandler(INSTANCE * my, int * params); 23 | int modcrearHandler(INSTANCE * my, int * params); 24 | void recogeColisionHandler(cpArbiter *arb, cpSpace *space, void *dat); 25 | void buscaABCol(void *ptr, void *data); 26 | typedef struct { 27 | PROCDEF* funciones[4]; 28 | void * parametros[4]; 29 | int a,b; 30 | } Hands; 31 | void funcionElmHand(void * v); 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /modules/mod_chipmunk/HeapSort.c: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /modules/mod_chipmunk/How to compile.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_chipmunk/How to compile.txt -------------------------------------------------------------------------------- /modules/mod_chipmunk/LL.c: -------------------------------------------------------------------------------- 1 | #include "LL.h" 2 | //#include 3 | 4 | void LLinicializa(modChipmunkStruct_nodo ** n){ 5 | *n= malloc(sizeof(modChipmunkStruct_nodo)); 6 | (*n)->elem=NULL; 7 | (*n)->sig=NULL; 8 | } 9 | 10 | void LLagrega(modChipmunkStruct_nodo * n, void * p){ 11 | modChipmunkStruct_nodo * sig=n->sig; 12 | n->sig= malloc(sizeof(modChipmunkStruct_nodo)); 13 | n->sig->elem=p; 14 | n->sig->sig=sig; 15 | } 16 | 17 | void LLelimina(modChipmunkStruct_nodo * n,void * am, modChipmunk_funCom r, modChipmunk_funcionElm funEl,int hFree){ 18 | for(;n->sig!=NULL;n=n->sig){ 19 | if (r(am,n->sig->elem)){ 20 | modChipmunkStruct_nodo * sig = n->sig->sig; 21 | funEl(n->sig->elem); 22 | if (hFree) 23 | free(n->sig); 24 | n->sig=sig; 25 | if (n->sig==NULL) 26 | return; 27 | } 28 | } 29 | } 30 | 31 | void * LLbusca(modChipmunkStruct_nodo * n,void * bm, modChipmunk_funCom r){ 32 | for(;n->sig!=NULL;n=n->sig){ 33 | if (r(bm,n->sig->elem)){ 34 | // printf("busca %d %d\n",n->sig->elem, bm); fflush(stdout); 35 | return n->sig->elem; 36 | } 37 | } 38 | return NULL; 39 | } 40 | 41 | void LLeliminaTodo(modChipmunkStruct_nodo ** nod,modChipmunk_funcionElm funEl,int hFree){ 42 | modChipmunkStruct_nodo *n=*nod; 43 | while(n!=NULL && n->sig!=NULL){ 44 | modChipmunkStruct_nodo * sig = n->sig->sig; 45 | funEl(n->sig->elem); 46 | if (hFree){ 47 | free(n->sig); 48 | n=n->sig; 49 | } 50 | } 51 | if (*nod!=NULL){ 52 | free(*nod); 53 | } 54 | *nod=NULL; 55 | } 56 | 57 | void LLimprime(modChipmunkStruct_nodo * n){ 58 | if (n==NULL){ 59 | printf("Lista vacia \n"); 60 | return; 61 | } 62 | printf("____________________________\n");fflush(stdout); 63 | for(;n->sig!=NULL;n=n->sig){ 64 | printf("%d\n",n->sig->elem);fflush(stdout); 65 | } 66 | printf("____________________________\n");fflush(stdout); 67 | } 68 | -------------------------------------------------------------------------------- /modules/mod_chipmunk/LL.h: -------------------------------------------------------------------------------- 1 | #ifndef LL_H 2 | #define LL_H 3 | 4 | #include 5 | 6 | typedef struct modChipmunkStruct_nodo{ 7 | void * elem; 8 | struct modChipmunkStruct_nodo * sig; 9 | } modChipmunkStruct_nodo; 10 | 11 | typedef void (*modChipmunk_funcionElm)(void* parametro) ; 12 | 13 | typedef int (*modChipmunk_funCom)(void *a, void* b) ; 14 | void LLeliminaTodo(modChipmunkStruct_nodo ** n,modChipmunk_funcionElm funEl,int hFree); 15 | void LLinicializa(modChipmunkStruct_nodo ** n); 16 | void LLagrega(modChipmunkStruct_nodo * n, void * p); 17 | void LLelimina(modChipmunkStruct_nodo * n,void * b, modChipmunk_funCom r,modChipmunk_funcionElm funEl,int hFree); 18 | void * LLbusca(modChipmunkStruct_nodo * n,void * b, modChipmunk_funCom r); 19 | void LLimprime(modChipmunkStruct_nodo * n); 20 | 21 | #endif //LL_H 22 | -------------------------------------------------------------------------------- /modules/mod_chipmunk/Licencia chipmunk c/LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2007 Scott Lembcke and Howling Moon Software 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 19 | SOFTWARE. 20 | -------------------------------------------------------------------------------- /modules/mod_chipmunk/Miscelanea.c: -------------------------------------------------------------------------------- 1 | #include "Miscelanea.h" 2 | #include "constantes.h" 3 | void modChipmunk_mayusStr( char *str ){ 4 | int i; 5 | for( i=0; str[i]!='\0'; i++ ){ 6 | if( str[i]>='a' && str[i]<='z' ) 7 | str[i]=str[i]-32; // change to uppercase 8 | } 9 | } 10 | 11 | float modChipmunkdeg2rad(int ang) 12 | { 13 | return (ang/180000.0f)*CM_PI; 14 | } 15 | 16 | float modChipmunkrad2deg(float ang) 17 | { 18 | return (float)(ang*180000.0f)/CM_PI; 19 | } 20 | 21 | int modChipmunkCompara(void * a, void * b){ 22 | return a==b; 23 | } 24 | -------------------------------------------------------------------------------- /modules/mod_chipmunk/Miscelanea.h: -------------------------------------------------------------------------------- 1 | #ifndef MISCELANEA_H 2 | #define MISCELANEA_H 3 | 4 | void modChipmunk_mayusStr( char *str ); 5 | float modChipmunkdeg2rad(int ang); 6 | float modChipmunkrad2deg(float ang); 7 | int modChipmunkCompara(void * a, void * b); 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /modules/mod_chipmunk/TODO.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_chipmunk/TODO.txt -------------------------------------------------------------------------------- /modules/mod_chipmunk/agua.h: -------------------------------------------------------------------------------- 1 | #ifndef AGUA_H 2 | #define AGUA_H 3 | #include "chipmunk.h" 4 | #include "bgddl.h" 5 | #include "bgdrtm.h" 6 | #include "xstrings.h" 7 | #include "dlvaracc.h" 8 | #include "libdraw.h" 9 | #include "librender.h" 10 | #include "mod_map.h" 11 | #include "globales.h" 12 | #include "locales.h" 13 | int modChipmunkPintaAgua(INSTANCE * my, int * params); 14 | int modChipmunkMetaball(INSTANCE * my, int * params); 15 | int modChipmunkSetEfector(INSTANCE * my, int * params); 16 | int modChipmunkEmulateAgua(INSTANCE * my, int * params); 17 | #endif 18 | -------------------------------------------------------------------------------- /modules/mod_chipmunk/arbitros.h: -------------------------------------------------------------------------------- 1 | #ifndef ARBITROS_H 2 | #define ARBITROS_H 3 | 4 | #include "chipmunk.h" 5 | #include "bgddl.h" 6 | #include "bgdrtm.h" 7 | #include "xstrings.h" 8 | #include 9 | #include "dlvaracc.h" 10 | #include "libdraw.h" 11 | #include "librender.h" 12 | #include "mod_map.h" 13 | #include "globales.h" 14 | #include "locales.h" 15 | #include "constantes.h" 16 | #include "Arreglos.h" 17 | #include "LL.h" 18 | #include "Handlers.h" 19 | 20 | int modArbiterGetNumContactPoints(INSTANCE * my, int * params); 21 | int modArbiterIsFirstContact(INSTANCE * my, int * params); 22 | int modArbiterGetNormal(INSTANCE * my, int * params); 23 | int modArbiterGetPoint(INSTANCE * my, int * params); 24 | int modArbiterGetDepth(INSTANCE * my, int * params); 25 | int modArbiterTotalImpulseWithFriction(INSTANCE * my, int * params); 26 | int modArbiterTotalImpulse(INSTANCE * my, int * params); 27 | int modArbiterProcessA(INSTANCE * my, int * params); 28 | int modArbiterProcessB(INSTANCE * my, int * params); 29 | int modArbiterGetElasticity(INSTANCE * my, int * params); 30 | int modArbiterSetElasticity(INSTANCE * my, int * params); 31 | int modArbiterGetFriction(INSTANCE * my, int * params); 32 | int modArbiterSetFriction(INSTANCE * my, int * params); 33 | int modArbiterGetSurfaceVelocity(INSTANCE * my, int * params); 34 | int modArbiterSetSurfaceVelocity(INSTANCE * my, int * params); 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /modules/mod_chipmunk/automGenTerr.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_chipmunk/automGenTerr.c -------------------------------------------------------------------------------- /modules/mod_chipmunk/automGenTerr.h: -------------------------------------------------------------------------------- 1 | #ifndef AUTOGENTERR_H 2 | #define AUTOGENTERR_H 3 | #include 4 | #include 5 | 6 | #include "chipmunk.h" 7 | #include "bgddl.h" 8 | #include "bgdrtm.h" 9 | #include "xstrings.h" 10 | #include "dlvaracc.h" 11 | #include "libdraw.h" 12 | #include "librender.h" 13 | #include "mod_map.h" 14 | #include "Arreglos.h" 15 | 16 | int modChipmunkGeneraTerreno(INSTANCE * my, int * params); 17 | GRAPH * modChipmunkObtenTodosBordes(GRAPH * mapa1); 18 | void recursApro(int inic,int fin,modChipmunkStruct_Arreglo *coord,uint8_t res[],float umb); 19 | modChipmunkStruct_Arreglo * modChipmunkVertices(GRAPH * map,int i,int j); 20 | modChipmunkStruct_Arreglo *aproxP(modChipmunkStruct_Arreglo *coord,float umb); 21 | int modChipmunkEliminaTerreno(INSTANCE * my, int * params); 22 | int modChipmunkGetElement(INSTANCE * my, int * params); 23 | int modChipmunkCantElement(INSTANCE * my, int * params); 24 | #endif 25 | -------------------------------------------------------------------------------- /modules/mod_chipmunk/constantes.h: -------------------------------------------------------------------------------- 1 | #ifndef CONSTANTES_H 2 | #define CONSTANTES_H 3 | 4 | 5 | //CONSTANTES 6 | #define CP_C_ITERATIONS 0 7 | #define CP_C_GRAVITY 1 8 | #define CP_C_DAMPING 2 9 | #define CP_C_IDLESPEEDTHRESHOLD 3 10 | #define CP_C_SLEEPTIMETHRESHOLD 4 11 | #define CP_C_staticBody 5 12 | 13 | #define CP_C_M 0 14 | #define CP_C_I 1 15 | #define CP_C_P 2 16 | #define CP_C_V 3 17 | #define CP_C_F 4 18 | #define CP_C_A 5 19 | #define CP_C_W 6 20 | #define CP_C_T 7 21 | #define CP_C_ROT 8 22 | #define CP_C_V_LIMIT 9 23 | #define CP_C_W_LIMIT 10 24 | 25 | #define CP_C_BODY 0 26 | #define CP_C_BB 1 27 | #define CP_C_E 2 28 | #define CP_C_U 3 29 | #define CP_C_SENSOR 4 30 | #define CP_C_SURFACE_V 5 31 | #define CP_C_COLLISION_TYPE 6 32 | #define CP_C_GROUP 7 33 | #define CP_C_LAYERS 8 34 | #define CP_C_DATA 20 35 | 36 | #define GRABABLE_MASK_BIT (1<<31) 37 | #define NOT_GRABABLE_MASK (~GRABABLE_MASK_BIT) 38 | 39 | 40 | #define CP_C_MAXFORCE 0 41 | #define CP_C_BIASCOEF 1 42 | #define CP_C_MAXBIAS 2 43 | #define CP_C_CA 3 44 | #define CP_C_CB 4 45 | 46 | 47 | #define CM_PI 3.14159265 48 | 49 | #define TYPE_NONE 0 50 | #define TYPE_BOX 1 51 | #define TYPE_CIRCLE 2 52 | #define TYPE_CONVEX_POLYGON 3 53 | #define TYPE_LINE 4 54 | #define TYPE_EMPTY 5 55 | 56 | #define CP_C_ANCHR1 1 57 | #define CP_C_ANCHR2 10 58 | #define CP_C_DIST 3 59 | #define CP_C_MIN 4 60 | #define CP_C_MAX 5 61 | #define CP_C_GROOVEB 6 62 | #define CP_C_GROOVEA 7 63 | #define CP_C_RESTLENGTH 8 64 | #define CP_C_STIFFNESS 9 65 | //#define CP_C_DAMPING 2 66 | #define CP_C_RESTANGLE 11 67 | #define CP_C_ANGLE 12 68 | #define CP_C_PHASE 13 69 | #define CP_C_RATCHET 14 70 | #define CP_C_RATIO 15 71 | #define CP_C_RATE 16 72 | 73 | //constantes bennu 74 | 75 | #endif 76 | -------------------------------------------------------------------------------- /modules/mod_chipmunk/convexHull.h: -------------------------------------------------------------------------------- 1 | #ifndef CONVEXHULL_H 2 | #define CONVEXHULL_H 3 | #include "chipmunk.h" 4 | typedef cpVect modChipmunkStruct_Point; 5 | 6 | 7 | int chainHull_2D( modChipmunkStruct_Point* P, int n, modChipmunkStruct_Point* H ); 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /modules/mod_chipmunk/estructuras.h: -------------------------------------------------------------------------------- 1 | #include "Arreglos.h" 2 | #include "LL.h" 3 | 4 | typedef struct DatosConstraint{ 5 | int fatherA; 6 | int fatherB; 7 | PROCDEF * funcion; 8 | PROCDEF * funcionPre; 9 | }DatosConstraint; 10 | 11 | typedef struct cpsegmentqueryinfoB 12 | { 13 | int shape,id; 14 | float x,y,t; 15 | cpVect n; 16 | } cpsegmentqueryinfoB; 17 | 18 | 19 | 20 | typedef struct handlersC 21 | { 22 | modChipmunkStruct_Arreglo* arr; 23 | modChipmunkStruct_Arreglo * colisiones; 24 | cpCollisionType a, b; 25 | 26 | } modChipmunkStruct_colHand; 27 | 28 | 29 | modChipmunkStruct_Arreglo * HandlerColisions; 30 | 31 | 32 | 33 | typedef struct cpContactPointSetM 34 | { 35 | int count; 36 | int id1, id2; 37 | int shape1,shape2; 38 | struct 39 | { 40 | cpVect Point, normal; 41 | float dist; 42 | } points[CP_MAX_CONTACTS_PER_ARBITER]; 43 | } cpContactPointSetM; 44 | 45 | struct modChipmunkStruct_Data_Pointer 46 | { 47 | int father; 48 | int estado; 49 | struct modChipmunkStruct_Data_Pointer * sig; 50 | int x,y; 51 | cpBody * body; 52 | int angle; 53 | // int nShapes; 54 | // cpShape ** Shapes; 55 | // int nConstraints; 56 | // modChipmunkStruct_nodo * Constraints; 57 | int grupoEfector; //se usa para reconocer lo elementos de agua y poder calcularlos... 58 | // cpBody ** constraintsBody; 59 | int typeShape; 60 | }modChipmunkStruct_Data_Pointer; 61 | 62 | typedef struct modChipmunkStruct_Data_Pointer 63 | *DataPointer; 64 | 65 | typedef struct WaterSs{ 66 | int*ids; 67 | int size; 68 | float kNorm; 69 | float kNearNorm; 70 | float kRestDensity; 71 | float kStiffness; 72 | float kNearStiffness; 73 | float kSurfaceTension; 74 | float kLinearViscocity; 75 | float kQuadraticViscocity; 76 | float KH; 77 | }WaterS; 78 | -------------------------------------------------------------------------------- /modules/mod_chipmunk/globales.h: -------------------------------------------------------------------------------- 1 | #ifndef GLOBALES_H 2 | #define GLOBALES_H 3 | //Globales c/bennu 4 | #define GLO_SPACE 0 5 | #define GLO_GRAVITY_X 1 6 | #define GLO_GRAVITY_Y 2 7 | #define GLO_BIAS_COEF 3 8 | #define GLO_COLLISION_SLOP 4 9 | #define GLO_CONTACT_PERSISTENCE 5 10 | #define GLO_ITERATIONS 6 11 | #define GLO_DAMPING 7 12 | #define GLO_IDLESPEEDTHRESHOLD 8 13 | #define GLO_SLEEPTIMETHRESHOLD 9 14 | #define GLO_INTERVAL 10 15 | #define GLO_PHRESOLUTION 11 16 | #define GLO_DISTPERCENT 12 17 | 18 | //globales del programa 19 | extern int modChipmunk_espacioHash; 20 | extern DLVARFIXUP __bgdexport( mod_chipmunk, globals_fixup )[]; 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /modules/mod_chipmunk/inl.h: -------------------------------------------------------------------------------- 1 | #ifdef _MSC_VER 2 | #define INLINE __forceinline /* use __forceinline (VC++ specific) */ 3 | #else 4 | #define INLINE inline /* use standard inline */ 5 | #endif 6 | -------------------------------------------------------------------------------- /modules/mod_chipmunk/iteradores de shapes y constraints.prg: -------------------------------------------------------------------------------- 1 | typedef void (*cpBodyConstraintIteratorFunc)(cpBody *body, cpConstraint *constraint, void *data) 2 | void cpBodyEachConstraint(cpBody *body, cpBodyConstraintIteratorFunc func, void *data) 3 | 4 | typedef void (*cpBodyShapeIteratorFunc)(cpBody *body, cpShape *shape, void *data) 5 | void cpBodyEachShape(cpBody *body, cpBodyShapeIteratorFunc func, void *data) 6 | 7 | 1512 8 | 9 | typedef void (*cpSpaceConstraintIteratorFunc)(cpConstraint *constraint, void *data) 10 | void cpSpaceEachConstraint(cpSpace *space, cpSpaceConstraintIteratorFunc func, void *data) 11 | 12 | typedef void (*cpSpaceShapeIteratorFunc)(cpShape *shape, void *data) 13 | void cpSpaceEachShape(cpSpace *space, cpSpaceShapeIteratorFunc func, void *data) 14 | 15 | typedef void (*cpSpaceBodyIteratorFunc)(cpBody *body, void *data) 16 | void cpSpaceEachBody(cpSpace *space, cpSpaceBodyIteratorFunc func, void *data) 17 | 18 | Failed condition: cpSpaceContainsConstraint(space, constraint) 19 | 20 | 21 | if (cpSpaceIsLocked(modChipmunk_cpEspacio)) 22 | cpSpaceAddPostStepCallback(modChipmunk_cpEspacio, (cpPostStepFunc)rompeJoint, c, NULL); 23 | else{ 24 | cpSpaceRemoveConstraint(modChipmunk_cpEspacio, c); 25 | cpConstraintFree(c); 26 | } 27 | 28 | usar todo esto... -------------------------------------------------------------------------------- /modules/mod_chipmunk/locales.h: -------------------------------------------------------------------------------- 1 | #ifndef LOCALES_H 2 | #define LOCALES_H 3 | 4 | //Locales c/bennu 5 | #define LOC_BODY 0 6 | #define LOC_SHAPE 1 7 | #define LOC_X 2 8 | #define LOC_Y 3 9 | #define LOC_ANGLE 4 10 | #define LOC_ID 5 11 | #define LOC_INCR_X 6 12 | #define LOC_INCR_Y 7 13 | #define LOC_INERTIA 8 14 | #define LOC_MASS 9 15 | #define LOC_STATIC 10 16 | #define LOC_ELASTICITY 11 17 | #define LOC_FRICTION 12 18 | #define LOC_GROUP 13 19 | #define LOC_LAYERS 14 20 | #define LOC_RSTATUS 15 21 | #define LOC_SHAPETYPE 16 22 | #define LOC_PARAMS 17 23 | #define LOC_FILE 18 24 | #define LOC_GRAPH 19 25 | #define LOC_COLLISIONTYPE 20 26 | #define LOC_RESOLUTION 21 27 | #define LOC_SIZE 22 28 | #define LOC_SENSOR 23 29 | 30 | extern char __bgdexport( mod_chipmunk, locals_def )[]; 31 | extern DLVARFIXUP __bgdexport( mod_chipmunk, locals_fixup )[]; 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /modules/mod_chipmunk/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_chipmunk/main.c -------------------------------------------------------------------------------- /modules/mod_curl/make.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | DEPS="bennugd-core sdl libcurl" 4 | MODULE="mod_curl" 5 | 6 | # Clean previous module files 7 | if [ -f $MODULE.so ]; then 8 | rm $MODULE.so 9 | fi 10 | 11 | # Compile the source code 12 | gcc -c -Wall $(pkg-config --cflags $DEPS) $MODULE.c 13 | 14 | # Link the module 15 | if [ -f $MODULE.o ]; then 16 | gcc -o$MODULE.so $MODULE.o -shared $(pkg-config --libs $DEPS) -Wl,-soname -Wl,$MODULE.so 17 | fi 18 | 19 | # Strip and remove compilation files 20 | if [ -f $MODULE.so ]; then 21 | rm $MODULE.o 22 | strip $MODULE.so 23 | fi 24 | 25 | -------------------------------------------------------------------------------- /modules/mod_curl/make_osx.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | gcc -O2 -m32 -Wall -I../../core/include/ -I/usr/local/include/ -I../../core/bgdrtm/include/ -I/opt/local/include/SDL/ -D_REENTRANT -c mod_curl.c 4 | if [ -f mod_curl.o ]; then 5 | gcc mod_curl.o -O2 -dynamiclib -m32 -o mod_curl.dylib -L../../../../bennugd_bin/lib/ -lbgdrtm -lcurl -L/opt/local/lib -lSDL -install_name mod_curl.dylib -Wl,-single_module 6 | fi 7 | 8 | if [ -f mod_curl.dylib ]; then 9 | rm mod_curl.o 10 | fi 11 | -------------------------------------------------------------------------------- /modules/mod_debug/mod_debug.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_debug/mod_debug.c -------------------------------------------------------------------------------- /modules/mod_debug/mod_debug_symbols.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2006-2012 SplinterGU (Fenix/Bennugd) 3 | * Copyright © 2002-2006 Fenix Team (Fenix) 4 | * Copyright © 1999-2002 José Luis Cebrián Pagüe (Fenix) 5 | * 6 | * This file is part of Bennu - Game Development 7 | * 8 | * This software is provided 'as-is', without any express or implied 9 | * warranty. In no event will the authors be held liable for any damages 10 | * arising from the use of this software. 11 | * 12 | * Permission is granted to anyone to use this software for any purpose, 13 | * including commercial applications, and to alter it and redistribute it 14 | * freely, subject to the following restrictions: 15 | * 16 | * 1. The origin of this software must not be misrepresented; you must not 17 | * claim that you wrote the original software. If you use this software 18 | * in a product, an acknowledgment in the product documentation would be 19 | * appreciated but is not required. 20 | * 21 | * 2. Altered source versions must be plainly marked as such, and must not be 22 | * misrepresented as being the original software. 23 | * 24 | * 3. This notice may not be removed or altered from any source 25 | * distribution. 26 | * 27 | */ 28 | 29 | #ifndef __MODDEBUG_SYMBOLS_H 30 | #define __MODDEBUG_SYMBOLS_H 31 | 32 | #include 33 | 34 | #ifndef __BGDC__ 35 | extern DLVARFIXUP __bgdexport( mod_debug, locals_fixup )[]; 36 | extern DLVARFIXUP __bgdexport( mod_debug, globals_fixup )[]; 37 | extern void __bgdexport( mod_debug, process_exec_hook )( INSTANCE * r ); 38 | extern void __bgdexport( mod_debug, module_initialize )(); 39 | extern void __bgdexport( mod_debug, module_finalize )(); 40 | #endif 41 | 42 | /* --------------------------------------------------------------------------- */ 43 | 44 | char * __bgdexport( mod_debug, modules_dependency )[] = 45 | { 46 | "libkey", 47 | "librender", 48 | NULL 49 | }; 50 | 51 | #endif 52 | -------------------------------------------------------------------------------- /modules/mod_debug/systexts.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_debug/systexts.c -------------------------------------------------------------------------------- /modules/mod_dir/mod_dir.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_dir/mod_dir.c -------------------------------------------------------------------------------- /modules/mod_dir/mod_dir_symbols.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2006-2012 SplinterGU (Fenix/Bennugd) 3 | * Copyright © 2002-2006 Fenix Team (Fenix) 4 | * Copyright © 1999-2002 José Luis Cebrián Pagüe (Fenix) 5 | * 6 | * This file is part of Bennu - Game Development 7 | * 8 | * This software is provided 'as-is', without any express or implied 9 | * warranty. In no event will the authors be held liable for any damages 10 | * arising from the use of this software. 11 | * 12 | * Permission is granted to anyone to use this software for any purpose, 13 | * including commercial applications, and to alter it and redistribute it 14 | * freely, subject to the following restrictions: 15 | * 16 | * 1. The origin of this software must not be misrepresented; you must not 17 | * claim that you wrote the original software. If you use this software 18 | * in a product, an acknowledgment in the product documentation would be 19 | * appreciated but is not required. 20 | * 21 | * 2. Altered source versions must be plainly marked as such, and must not be 22 | * misrepresented as being the original software. 23 | * 24 | * 3. This notice may not be removed or altered from any source 25 | * distribution. 26 | * 27 | */ 28 | 29 | #ifndef __MODDIR_SYMBOLS_H 30 | #define __MODDIR_SYMBOLS_H 31 | 32 | #include 33 | 34 | #ifdef __BGDC__ 35 | char __bgdexport( mod_dir, globals_def )[] = 36 | "STRUCT fileinfo\n" 37 | " STRING path;\n" 38 | " STRING name;\n" 39 | " directory;\n" 40 | " hidden;\n" 41 | " readonly;\n" 42 | " size;\n" 43 | " STRING created;\n" 44 | " STRING modified;\n" 45 | "END\n"; 46 | 47 | DLSYSFUNCS __bgdexport( mod_dir, functions_exports)[] = 48 | { 49 | /* Archivos y directorios */ 50 | { "CD" , "" , TYPE_STRING , 0 }, 51 | { "CD" , "S" , TYPE_STRING , 0 }, 52 | { "CHDIR" , "S" , TYPE_INT , 0 }, 53 | { "MKDIR" , "S" , TYPE_INT , 0 }, 54 | { "RMDIR" , "S" , TYPE_INT , 0 }, 55 | { "GLOB" , "S" , TYPE_STRING , 0 }, 56 | { "CD" , "S" , TYPE_STRING , 0 }, 57 | { "RM" , "S" , TYPE_INT , 0 }, 58 | { "DIROPEN" , "S" , TYPE_INT , 0 }, 59 | { "DIRCLOSE", "I" , TYPE_INT , 0 }, 60 | { "DIRREAD" , "I" , TYPE_STRING , 0 }, 61 | { 0 , 0 , 0 , 0 } 62 | }; 63 | #else 64 | extern char __bgdexport( mod_dir, globals_def )[]; 65 | extern DLVARFIXUP __bgdexport( mod_dir, globals_fixup)[]; 66 | extern DLSYSFUNCS __bgdexport( mod_dir, functions_exports)[]; 67 | #endif 68 | 69 | #endif 70 | -------------------------------------------------------------------------------- /modules/mod_draw/mod_draw.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_draw/mod_draw.c -------------------------------------------------------------------------------- /modules/mod_effects/mod_effects.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_effects/mod_effects.c -------------------------------------------------------------------------------- /modules/mod_file/mod_file_symbols.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_file/mod_file_symbols.h -------------------------------------------------------------------------------- /modules/mod_flic/mod_flic.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_flic/mod_flic.c -------------------------------------------------------------------------------- /modules/mod_flic/mod_flic.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_flic/mod_flic.h -------------------------------------------------------------------------------- /modules/mod_flic/mod_flic_symbols.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2006-2012 SplinterGU (Fenix/Bennugd) 3 | * Copyright © 2002-2006 Fenix Team (Fenix) 4 | * Copyright © 1999-2002 José Luis Cebrián Pagüe (Fenix) 5 | * 6 | * This file is part of Bennu - Game Development 7 | * 8 | * This software is provided 'as-is', without any express or implied 9 | * warranty. In no event will the authors be held liable for any damages 10 | * arising from the use of this software. 11 | * 12 | * Permission is granted to anyone to use this software for any purpose, 13 | * including commercial applications, and to alter it and redistribute it 14 | * freely, subject to the following restrictions: 15 | * 16 | * 1. The origin of this software must not be misrepresented; you must not 17 | * claim that you wrote the original software. If you use this software 18 | * in a product, an acknowledgment in the product documentation would be 19 | * appreciated but is not required. 20 | * 21 | * 2. Altered source versions must be plainly marked as such, and must not be 22 | * misrepresented as being the original software. 23 | * 24 | * 3. This notice may not be removed or altered from any source 25 | * distribution. 26 | * 27 | */ 28 | 29 | #ifndef __MODFLIC_SYMBOLS_H 30 | #define __MODFLIC_SYMBOLS_H 31 | 32 | #include 33 | 34 | #ifdef __BGDC__ 35 | DLSYSFUNCS __bgdexport( mod_flic, functions_exports )[] = 36 | { 37 | /* Animaciones FLI */ 38 | { "START_FLI" , "SII" , TYPE_INT , 0 }, 39 | { "END_FLI" , "" , TYPE_INT , 0 }, 40 | { "FRAME_FLI" , "" , TYPE_INT , 0 }, 41 | { "RESET_FLI" , "" , TYPE_INT , 0 }, 42 | 43 | { "FLI_START" , "SII" , TYPE_INT , 0 }, 44 | { "FLI_START" , "SIIIIII" , TYPE_INT , 0 }, 45 | { "FLI_END" , "I" , TYPE_INT , 0 }, 46 | { "FLI_FRAME" , "I" , TYPE_INT , 0 }, 47 | { "FLI_RESET" , "I" , TYPE_INT , 0 }, 48 | 49 | { "FLI_PARAMS" , "IIIIIII" , TYPE_INT , 0 }, 50 | { "FLI_MOVE" , "III" , TYPE_INT , 0 }, 51 | { "FLI_ANGLE" , "II" , TYPE_INT , 0 }, 52 | { "FLI_SIZE" , "II" , TYPE_INT , 0 }, 53 | { "FLI_FLAGS" , "II" , TYPE_INT , 0 }, 54 | { "FLI_Z" , "II" , TYPE_INT , 0 }, 55 | { "FLI_GETINFO" , "IPPPPPPPPP" , TYPE_INT , 0 }, 56 | 57 | { NULL , NULL , 0 , NULL } 58 | }; 59 | #else 60 | extern DLSYSFUNCS __bgdexport( mod_flic, functions_exports )[]; 61 | #endif 62 | 63 | #endif 64 | -------------------------------------------------------------------------------- /modules/mod_fmodex/COPYING: -------------------------------------------------------------------------------- 1 | Copyright (c) 2011 Joseba García Etxebarria 2 | 3 | This software is provided 'as-is', without any express or implied 4 | warranty. In no event will the authors be held liable for any damages 5 | arising from the use of this software. 6 | 7 | Permission is granted to anyone to use this software for any purpose, 8 | including commercial applications, and to alter it and redistribute it 9 | freely, subject to the following restrictions: 10 | 11 | 1. The origin of this software must not be misrepresented; you must not 12 | claim that you wrote the original software. If you use this software 13 | in a product, an acknowledgment in the product documentation would be 14 | appreciated but is not required. 15 | 16 | 2. Altered source versions must be plainly marked as such, and must not be 17 | misrepresented as being the original software. 18 | 19 | 3. This notice may not be removed or altered from any source 20 | distribution. -------------------------------------------------------------------------------- /modules/mod_fmodex/README: -------------------------------------------------------------------------------- 1 | bennugd-module-fmodex 2 | ===================== 3 | 4 | This library provides very simple bindings for FMOD Ex for the BennuGD 5 | media programming language. 6 | 7 | The source code for the binding itself is licensed under the terms of the 8 | MIT/X11 license (see COPYING for details) but FMOD Ex used a proprietary 9 | license and is not free to use unless you're using FMOD Ex for a free, 10 | non-commercial use. Please, see http://www.fmod.org/index.php/sales for 11 | their licensing terms. 12 | 13 | If you pay them, however, you're free to use this binding. 14 | 15 | FMOD Sound System', copyright © Firelight Technologies Pty, Ltd., 1994-2009. 16 | -------------------------------------------------------------------------------- /modules/mod_fmodex/mod_fmodex_symbols.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 Joseba García Echebarria. All rights reserved. 3 | * 4 | * This software is provided 'as-is', without any express or implied 5 | * warranty. In no event will the authors be held liable for any damages 6 | * arising from the use of this software. 7 | * 8 | * Permission is granted to anyone to use this software for any purpose, 9 | * including commercial applications, and to alter it and redistribute it 10 | * freely, subject to the following restrictions: 11 | * 12 | * 1. The origin of this software must not be misrepresented; you must not 13 | * claim that you wrote the original software. If you use this software 14 | * in a product, an acknowledgment in the product documentation would be 15 | * appreciated but is not required. 16 | * 17 | * 2. Altered source versions must be plainly marked as such, and must not be 18 | * misrepresented as being the original software. 19 | * 20 | * 3. This notice may not be removed or altered from any source 21 | * distribution. 22 | * 23 | */ 24 | 25 | #ifndef __MODFMODEX_SYMBOLS_H 26 | #define __MODFMODEX_SYMBOLS_H 27 | 28 | #ifdef __BGDC__ 29 | char __bgdexport( mod_fmodex, globals_def )[] = 30 | "float fmodex_spectrum[256];\n" 31 | "int sound_freq = 48000;\n" 32 | "int fmodex_spectrumsize = 0;\n"; 33 | 34 | DLSYSFUNCS __bgdexport( mod_fmodex, functions_exports )[] = 35 | { 36 | {"FMODEX_SONG_LOAD", "S", TYPE_INT, 0 }, 37 | {"FMODEX_SONG_PLAY", "I", TYPE_INT, 0 }, 38 | {"FMODEX_SONG_PAUSE", "I", TYPE_INT, 0 }, 39 | {"FMODEX_SONG_RESUME", "I", TYPE_INT, 0 }, 40 | {"FMODEX_SONG_PLAYING", "I", TYPE_INT, 0 }, 41 | {"FMODEX_SONG_STOP", "I", TYPE_INT, 0 }, 42 | {"FMODEX_SONG_GET_SPECTRUM", "I", TYPE_INT, 0 }, 43 | {"FMODEX_MIC_NUM", "", TYPE_INT, 0 }, 44 | {"FMODEX_MIC_NAME", "I", TYPE_STRING, 0 }, 45 | {"FMODEX_MIC_GET_SPECTRUM", "I", TYPE_UNDEFINED, 0 }, 46 | {"FMODEX_STOP_SPECTRUM", "", TYPE_UNDEFINED, 0 }, 47 | {0, 0, 0, 0} 48 | }; 49 | #else 50 | extern char __bgdexport( mod_fmodex, globals_def )[]; 51 | extern DLVARFIXUP __bgdexport( mod_fmodex, globals_fixup )[]; 52 | extern DLSYSFUNCS __bgdexport( mod_fmodex, functions_exports )[]; 53 | extern void __bgdexport( mod_fmodex, module_initialize )(); 54 | extern void __bgdexport( mod_fmodex, module_finalize )(); 55 | extern HOOK __bgdexport( mod_fmodex, handler_hooks )[]; 56 | #endif 57 | 58 | #endif 59 | -------------------------------------------------------------------------------- /modules/mod_fsock/doc/leeme.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_fsock/doc/leeme.txt -------------------------------------------------------------------------------- /modules/mod_fsock/fsock.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_fsock/fsock.c -------------------------------------------------------------------------------- /modules/mod_fsock/fsock_symbols.h: -------------------------------------------------------------------------------- 1 | /* 2 | * fsock library (aka tcpsock) by Titonus & SplinterGU 3 | */ 4 | 5 | /* ---------------------------------------------------------- */ 6 | 7 | #ifndef __FSOCK_SYMBOLS_H 8 | #define __FSOCK_SYMBOLS_H 9 | 10 | #include 11 | 12 | #ifdef __BGDC__ 13 | DLSYSFUNCS __bgdexport( fsock, functions_exports )[] = 14 | { 15 | { "FSOCK_INIT" , "I" , TYPE_DWORD , 0 }, 16 | { "FSOCK_GETERROR" , "" , TYPE_DWORD , 0 }, 17 | { "FSOCK_GETFDSETSIZE" , "" , TYPE_DWORD , 0 }, 18 | { "TCPSOCK_OPEN" , "" , TYPE_DWORD , 0 }, 19 | { "UDPSOCK_OPEN" , "" , TYPE_DWORD , 0 }, 20 | { "FSOCK_SETBLOCK" , "II" , TYPE_DWORD , 0 }, 21 | { "FSOCK_CLOSE" , "I" , TYPE_DWORD , 0 }, 22 | { "FSOCK_BIND" , "II" , TYPE_DWORD , 0 }, 23 | { "TCPSOCK_LISTEN" , "II" , TYPE_DWORD , 0 }, 24 | { "TCPSOCK_ACCEPT" , "IPP" , TYPE_DWORD , 0 }, 25 | { "TCPSOCK_CONNECT" , "ISI" , TYPE_DWORD , 0 }, 26 | { "FSOCK_SELECT" , "IIII" , TYPE_DWORD , 0 }, 27 | { "TCPSOCK_SEND" , "IPI" , TYPE_DWORD , 0 }, 28 | { "UDPSOCK_SEND" , "IPISI" , TYPE_DWORD , 0 }, 29 | { "TCPSOCK_RECV" , "IPI" , TYPE_DWORD , 0 }, 30 | { "UDPSOCK_RECV" , "IPIPP" , TYPE_DWORD , 0 }, 31 | { "FSOCK_SOCKETSET_CHECK" , "IIII" , TYPE_DWORD , 0 }, 32 | { "FSOCK_SOCKETSET_FREE" , "I" , TYPE_DWORD , 0 }, 33 | { "FSOCK_SOCKETSET_ADD" , "II" , TYPE_DWORD , 0 }, 34 | { "FSOCK_SOCKETSET_DEL" , "II" , TYPE_DWORD , 0 }, 35 | { "FSOCK_GET_IPHOST" , "I" , TYPE_STRING, 0 }, 36 | { "FSOCK_GET_IPSTR" , "P" , TYPE_STRING, 0 }, 37 | { "FSOCK_QUIT" , "" , TYPE_DWORD , 0 }, 38 | { "FSOCK_FDZERO" , "I" , TYPE_DWORD , 0 }, 39 | { "FSOCK_FDSET" , "II" , TYPE_DWORD , 0 }, 40 | { "FSOCK_FDCLR" , "II" , TYPE_DWORD , 0 }, 41 | { "FSOCK_FDISSET" , "II" , TYPE_DWORD , 0 }, 42 | { 0 , 0 , 0 , 0 } 43 | }; 44 | #else 45 | extern DLSYSFUNCS __bgdexport( fsock, functions_exports )[]; 46 | #endif 47 | 48 | #endif 49 | -------------------------------------------------------------------------------- /modules/mod_fsock/samples/client.prg: -------------------------------------------------------------------------------- 1 | /* fsock example 2 | Mini BennuGD WebServer by SplinterGU 3 | */ 4 | import "fsock" 5 | import "mod_screen" 6 | import "mod_video" 7 | import "mod_map" 8 | import "mod_key" 9 | import "mod_timers" 10 | import "mod_text" 11 | import "mod_proc" 12 | import "mod_rand" 13 | import "mod_file" 14 | import "mod_string" 15 | import "mod_wm" 16 | import "mod_time" 17 | import "mod_regex" 18 | import "mod_say" 19 | import "mod_multi" 20 | import "mod_mouse" 21 | 22 | GLOBAL 23 | clients=0; 24 | width = 0; 25 | height = 0; 26 | End; 27 | 28 | PROCESS main(); 29 | Begin 30 | // Get the real screen resolution we're running at 31 | width = graphic_info(0, 0, G_WIDTH); 32 | height = graphic_info(0, 0, G_HEIGHT); 33 | set_mode(width, height, 32); 34 | set_title("Mini BennuGD Client"); 35 | fsock_init( 0 ); // init fsock library 36 | write(0, 0, 0, 0, "Touch the screen to send a message to the server"); 37 | while(focus_status == 1) 38 | if(multi_info(0, "ACTIVE") > 0) 39 | client(); 40 | end 41 | FRAME; 42 | end; 43 | 44 | say("Quitting!"); 45 | end; 46 | 47 | process client() 48 | private 49 | int socket, rlen; // socket_listen to listen to requests 50 | char dat[13]="Hello, World!"; 51 | char color[10]; 52 | begin 53 | 54 | socket=tcpsock_open(); // new socket 55 | if ( tcpsock_connect(socket, "192.168.0.194", "8080") != 0 ) 56 | say("Error connecting to the server"); 57 | return; 58 | end 59 | 60 | //say("Sending: "+dat); 61 | tcpsock_send(socket, &dat, len(dat)); 62 | 63 | // Wait for the server's answer 64 | while(focus_status == 1) 65 | // In the real world, you'd loop here until you got the full package 66 | rlen=tcpsock_recv(socket, &color, sizeof(color)); 67 | if(rlen>0) 68 | say("Your frog will be: "+color); 69 | break; 70 | end 71 | FRAME; 72 | end 73 | 74 | onexit 75 | fsock_quit(); // Now close the fsock lib 76 | end 77 | -------------------------------------------------------------------------------- /modules/mod_fsock/samples/webpages/index.html: -------------------------------------------------------------------------------- 1 | Hello, World! 2 | -------------------------------------------------------------------------------- /modules/mod_grproc/mod_grproc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_grproc/mod_grproc.c -------------------------------------------------------------------------------- /modules/mod_iap/main.prg: -------------------------------------------------------------------------------- 1 | import "mod_video" 2 | import "mod_iap" 3 | import "mod_say" 4 | import "mod_mouse" 5 | import "mod_text" 6 | import "mod_map" 7 | import "mod_file" 8 | 9 | Global 10 | int width = 800; 11 | int height = 600; 12 | int quit=0; 13 | end; 14 | 15 | Process main() 16 | Private 17 | int i=0, status=0, curl=0; 18 | int tostring=0; // Switch to 1 to download to a string 19 | string output; 20 | 21 | Begin 22 | while(! mouse.right) 23 | FRAME; 24 | end; 25 | quit=1; 26 | End; 27 | -------------------------------------------------------------------------------- /modules/mod_iap/make.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | DEPS="bennugd-core sdl libcurl" 4 | MODULE="mod_curl" 5 | 6 | # Clean previous module files 7 | if [ -f $MODULE.so ]; then 8 | rm $MODULE.so 9 | fi 10 | 11 | # Compile the source code 12 | gcc -c -Wall $(pkg-config --cflags $DEPS) $MODULE.c 13 | 14 | # Link the module 15 | if [ -f $MODULE.o ]; then 16 | gcc -o$MODULE.so $MODULE.o -shared $(pkg-config --libs $DEPS) -Wl,-soname -Wl,$MODULE.so 17 | fi 18 | 19 | # Strip and remove compilation files 20 | if [ -f $MODULE.so ]; then 21 | rm $MODULE.o 22 | strip $MODULE.so 23 | fi 24 | 25 | -------------------------------------------------------------------------------- /modules/mod_iap/make_osx.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | gcc -O2 -m32 -Wall -I../../core/include/ -I/usr/local/include/ -I../../core/bgdrtm/include/ -I/opt/local/include/SDL/ -D_REENTRANT -c mod_iap_fake.c 4 | if [ -f mod_iap_fake.o ]; then 5 | gcc mod_iap_fake.o -O2 -dynamiclib -m32 -o mod_iap.dylib -L../../../../bennugd_bin/lib/ -lbgdrtm -L/opt/local/lib -install_name mod_iap.dylib -Wl,-single_module 6 | fi 7 | 8 | if [ -f mod_iap.dylib ]; then 9 | rm mod_iap_fake.o 10 | fi 11 | -------------------------------------------------------------------------------- /modules/mod_iap/make_win32.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | gcc -O2 -Wall -I../../core/include/ -I/usr/local/include/ -I../../core/bgdrtm/include/ -D_REENTRANT -c mod_iap_fake.c 4 | if [ -f mod_iap_fake.o ]; then 5 | gcc mod_iap_fake.o -O2 -shared -o mod_iap.dll -L../../../../bennugd_bin/ -lbgdrtm -Wl,-soname -Wl,mod_vlc.dll 6 | fi 7 | 8 | if [ -f mod_iap.dll ]; then 9 | rm mod_iap_fake.o 10 | fi 11 | -------------------------------------------------------------------------------- /modules/mod_iap/mod_iap_fake.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011-2013 Joseba García Echebarria. All rights reserved. 3 | * 4 | * This software is provided 'as-is', without any express or implied 5 | * warranty. In no event will the authors be held liable for any damages 6 | * arising from the use of this software. 7 | * 8 | * Permission is granted to anyone to use this software for any purpose, 9 | * including commercial applications, and to alter it and redistribute it 10 | * freely, subject to the following restrictions: 11 | * 12 | * 1. The origin of this software must not be misrepresented; you must not 13 | * claim that you wrote the original software. If you use this software 14 | * in a product, an acknowledgment in the product documentation would be 15 | * appreciated but is not required. 16 | * 17 | * 2. Altered source versions must be plainly marked as such, and must not be 18 | * misrepresented as being the original software. 19 | * 20 | * 3. This notice may not be removed or altered from any source 21 | * distribution. 22 | * 23 | */ 24 | 25 | #include 26 | #include 27 | #include 28 | #include 29 | 30 | /* --------------------------------------------------------------------------- */ 31 | 32 | // Calls the initialize function in the Java IAP code 33 | static int bgd_iap_init(INSTANCE * my, int * params) { 34 | return 0; 35 | } 36 | 37 | // Check if the receipts are already available 38 | static int bgd_iap_receipts_ready(INSTANCE * my, int * params) { 39 | return 0; 40 | } 41 | 42 | // Shutdown the IAP code (ouyaFacade) 43 | static void bgd_iap_shutdown() { 44 | } 45 | 46 | static int bgd_iap_purchased(INSTANCE * my, int * params) { 47 | return 0; 48 | } 49 | 50 | static int bgd_iap_isouya(INSTANCE * my, int * params) { 51 | return 0; 52 | } 53 | 54 | static int bgd_iap_purchase(INSTANCE * my, int * params) { 55 | return 0; 56 | } 57 | 58 | // Finalize iap 59 | void __bgdexport( mod_iap, module_finalize )() { 60 | } 61 | 62 | DLSYSFUNCS __bgdexport( mod_iap, functions_exports )[] = 63 | { 64 | { "IAP_INIT" , "S" , TYPE_INT , bgd_iap_init }, 65 | { "IAP_RECEIPTS_READY" , "" , TYPE_INT , bgd_iap_receipts_ready }, 66 | { "IAP_SHUTDOWN" , "" , TYPE_UNDEFINED , bgd_iap_shutdown }, 67 | { "IAP_PURCHASED" , "S" , TYPE_INT , bgd_iap_purchased }, 68 | { "IAP_ISOUYA" , "" , TYPE_INT , bgd_iap_isouya }, 69 | { "IAP_PURCHASE" , "SP" , TYPE_INT , bgd_iap_purchase }, 70 | { 0 , 0 , 0 , 0 } 71 | }; 72 | -------------------------------------------------------------------------------- /modules/mod_iap/mod_iap_symbols.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011-2013 Joseba García Echebarria. All rights reserved. 3 | * 4 | * This software is provided 'as-is', without any express or implied 5 | * warranty. In no event will the authors be held liable for any damages 6 | * arising from the use of this software. 7 | * 8 | * Permission is granted to anyone to use this software for any purpose, 9 | * including commercial applications, and to alter it and redistribute it 10 | * freely, subject to the following restrictions: 11 | * 12 | * 1. The origin of this software must not be misrepresented; you must not 13 | * claim that you wrote the original software. If you use this software 14 | * in a product, an acknowledgment in the product documentation would be 15 | * appreciated but is not required. 16 | * 17 | * 2. Altered source versions must be plainly marked as such, and must not be 18 | * misrepresented as being the original software. 19 | * 20 | * 3. This notice may not be removed or altered from any source 21 | * distribution. 22 | * 23 | */ 24 | 25 | #ifndef __MODIAP_SYMBOLS_H 26 | #define __MODIAP_SYMBOLS_H 27 | 28 | #include 29 | 30 | #ifdef __BGDC__ 31 | DLSYSFUNCS __bgdexport( mod_iap, functions_exports )[] = 32 | { 33 | { "IAP_INIT" , "S" , TYPE_INT , 0 }, 34 | { "IAP_RECEIPTS_READY" , "" , TYPE_INT , 0 }, 35 | { "IAP_SHUTDOWN" , "" , TYPE_UNDEFINED , 0 }, 36 | { "IAP_PURCHASED" , "S" , TYPE_INT , 0 }, 37 | { "IAP_ISOUYA" , "" , TYPE_INT , 0 }, 38 | { "IAP_PURCHASE" , "SP" , TYPE_INT , 0 }, 39 | { 0 , 0 , 0 , 0 } 40 | }; 41 | #else 42 | extern DLSYSFUNCS __bgdexport( mod_iap, functions_exports )[]; 43 | extern void __bgdexport( mod_iap, module_finalize )(); 44 | #endif 45 | 46 | #endif 47 | -------------------------------------------------------------------------------- /modules/mod_iconv/iconv_symbols.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2011 Joseba García Etxebarria 3 | * 4 | * mod_iconv is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * mod_iconv is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program; if not, write to the Free Software 16 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17 | * 18 | */ 19 | 20 | #ifndef __MODICONV_SYMBOLS_H 21 | #define __MODICONV_SYMBOLS_H 22 | 23 | #include 24 | 25 | #ifdef __BGDC__ 26 | DLSYSFUNCS __bgdexport( mod_iconv, functions_exports )[] = 27 | { 28 | { "ICONV" , "SSS" , TYPE_STRING, 0 }, 29 | { 0 , 0 , 0 , 0 } 30 | }; 31 | #else 32 | extern DLSYSFUNCS __bgdexport( mod_iconv, functions_exports )[]; 33 | #endif 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /modules/mod_image/image.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_image/image.c -------------------------------------------------------------------------------- /modules/mod_image/image_symbols.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2006-2012 SplinterGU (Fenix/Bennugd) 3 | * Copyright © 2002-2006 Fenix Team (Fenix) 4 | * Copyright © 1999-2002 José Luis Cebrián Pagüe (Fenix) 5 | * 6 | * This file is part of Bennu - Game Development 7 | * 8 | * This software is provided 'as-is', without any express or implied 9 | * warranty. In no event will the authors be held liable for any damages 10 | * arising from the use of this software. 11 | * 12 | * Permission is granted to anyone to use this software for any purpose, 13 | * including commercial applications, and to alter it and redistribute it 14 | * freely, subject to the following restrictions: 15 | * 16 | * 1. The origin of this software must not be misrepresented; you must not 17 | * claim that you wrote the original software. If you use this software 18 | * in a product, an acknowledgment in the product documentation would be 19 | * appreciated but is not required. 20 | * 21 | * 2. Altered source versions must be plainly marked as such, and must not be 22 | * misrepresented as being the original software. 23 | * 24 | * 3. This notice may not be removed or altered from any source 25 | * distribution. 26 | * 27 | */ 28 | 29 | #ifndef __IMAGE_SYMBOLS_H 30 | #define __IMAGE_SYMBOLS_H 31 | 32 | #include 33 | 34 | #ifndef __BGDC__ 35 | extern int bgd_load_image (INSTANCE * i, int * params); 36 | extern int bgd_is_PCX (INSTANCE * i, int * params); 37 | extern int bgd_is_GIF (INSTANCE * i, int * params); 38 | extern int bgd_is_JPG (INSTANCE * i, int * params); 39 | extern int bgd_is_PNG (INSTANCE * i, int * params); 40 | extern int bgd_is_XPM (INSTANCE * i, int * params); 41 | extern int bgd_is_BMP (INSTANCE * i, int * params); 42 | extern int bgd_is_PNM (INSTANCE * i, int * params); 43 | extern int bgd_is_TIF (INSTANCE * i, int * params); 44 | extern int bgd_is_LBM (INSTANCE * i, int * params); 45 | extern int bgd_is_XCF (INSTANCE * i, int * params); 46 | #endif 47 | 48 | DLSYSFUNCS __bgdexport( image, functions_exports )[] = 49 | { 50 | {"LOAD_IMAGE", "S", TYPE_DWORD, SYSMACRO(bgd_load_image) }, 51 | {"IS_BMP", "S", TYPE_DWORD, SYSMACRO(bgd_is_BMP)}, 52 | {"IS_GIF", "S", TYPE_DWORD, SYSMACRO(bgd_is_GIF)}, 53 | {"IS_JPG", "S", TYPE_DWORD, SYSMACRO(bgd_is_JPG)}, 54 | {"IS_LBM", "S", TYPE_DWORD, SYSMACRO(bgd_is_LBM)}, 55 | {"IS_PCX", "S", TYPE_DWORD, SYSMACRO(bgd_is_PCX)}, 56 | {"IS_PNG", "S", TYPE_DWORD, SYSMACRO(bgd_is_PNG)}, 57 | {"IS_PNM", "S", TYPE_DWORD, SYSMACRO(bgd_is_PNM)}, 58 | {"IS_TIF", "S", TYPE_DWORD, SYSMACRO(bgd_is_TIF)}, 59 | {"IS_XCF", "S", TYPE_DWORD, SYSMACRO(bgd_is_XCF)}, 60 | {"IS_XPM", "S", TYPE_DWORD, SYSMACRO(bgd_is_XPM)}, 61 | {0, 0, 0, 0} 62 | }; 63 | 64 | char * __bgdexport( image, modules_dependency )[] = 65 | { 66 | "libgrbase", 67 | "libvideo", 68 | NULL 69 | }; 70 | 71 | #endif 72 | -------------------------------------------------------------------------------- /modules/mod_joy/mod_joy.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_joy/mod_joy.c -------------------------------------------------------------------------------- /modules/mod_key/mod_key.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_key/mod_key.c -------------------------------------------------------------------------------- /modules/mod_key/mod_key_symbols.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2006-2012 SplinterGU (Fenix/Bennugd) 3 | * Copyright © 2002-2006 Fenix Team (Fenix) 4 | * Copyright © 1999-2002 José Luis Cebrián Pagüe (Fenix) 5 | * 6 | * This file is part of Bennu - Game Development 7 | * 8 | * This software is provided 'as-is', without any express or implied 9 | * warranty. In no event will the authors be held liable for any damages 10 | * arising from the use of this software. 11 | * 12 | * Permission is granted to anyone to use this software for any purpose, 13 | * including commercial applications, and to alter it and redistribute it 14 | * freely, subject to the following restrictions: 15 | * 16 | * 1. The origin of this software must not be misrepresented; you must not 17 | * claim that you wrote the original software. If you use this software 18 | * in a product, an acknowledgment in the product documentation would be 19 | * appreciated but is not required. 20 | * 21 | * 2. Altered source versions must be plainly marked as such, and must not be 22 | * misrepresented as being the original software. 23 | * 24 | * 3. This notice may not be removed or altered from any source 25 | * distribution. 26 | * 27 | */ 28 | 29 | #ifndef __MODKEY_SYMBOLS_H 30 | #define __MODKEY_SYMBOLS_H 31 | 32 | #include 33 | 34 | #ifdef __BGDC__ 35 | /* ----------------------------------------------------------------- */ 36 | 37 | DLSYSFUNCS __bgdexport( mod_key, functions_exports )[] = 38 | { 39 | { "KEY" , "I" , TYPE_INT , 0 }, 40 | { 0 , 0 , 0 , 0 } 41 | }; 42 | 43 | /* ----------------------------------------------------------------- */ 44 | 45 | char * __bgdexport( mod_key, modules_dependency )[] = 46 | { 47 | "libkey", 48 | NULL 49 | }; 50 | #else 51 | extern DLSYSFUNCS __bgdexport( mod_key, functions_exports )[]; 52 | extern char * __bgdexport( mod_key, modules_dependency )[]; 53 | #endif 54 | 55 | #endif 56 | -------------------------------------------------------------------------------- /modules/mod_m7/mod_m7.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_m7/mod_m7.c -------------------------------------------------------------------------------- /modules/mod_m7/mod_m7.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_m7/mod_m7.h -------------------------------------------------------------------------------- /modules/mod_map/file_fnt.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_map/file_fnt.c -------------------------------------------------------------------------------- /modules/mod_map/file_fpg.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_map/file_fpg.c -------------------------------------------------------------------------------- /modules/mod_map/file_map.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_map/file_map.c -------------------------------------------------------------------------------- /modules/mod_map/file_pal.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_map/file_pal.c -------------------------------------------------------------------------------- /modules/mod_map/file_pcx.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_map/file_pcx.c -------------------------------------------------------------------------------- /modules/mod_map/file_png.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_map/file_png.c -------------------------------------------------------------------------------- /modules/mod_map/mod_map.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_map/mod_map.c -------------------------------------------------------------------------------- /modules/mod_map/mod_map.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_map/mod_map.h -------------------------------------------------------------------------------- /modules/mod_math/mod_math.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_math/mod_math.c -------------------------------------------------------------------------------- /modules/mod_mathi/mod_mathi.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_mathi/mod_mathi.c -------------------------------------------------------------------------------- /modules/mod_mem/mod_mem.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_mem/mod_mem.c -------------------------------------------------------------------------------- /modules/mod_mouse/mod_mouse_symbols.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_mouse/mod_mouse_symbols.h -------------------------------------------------------------------------------- /modules/mod_multi/mod_multi_symbols.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2013 Joseba García Etxebarria. All rights reserved. 3 | * 4 | * This software is provided 'as-is', without any express or implied 5 | * warranty. In no event will the authors be held liable for any damages 6 | * arising from the use of this software. 7 | * 8 | * Permission is granted to anyone to use this software for any purpose, 9 | * including commercial applications, and to alter it and redistribute it 10 | * freely, subject to the following restrictions: 11 | * 12 | * 1. The origin of this software must not be misrepresented; you must not 13 | * claim that you wrote the original software. If you use this software 14 | * in a product, an acknowledgment in the product documentation would be 15 | * appreciated but is not required. 16 | * 17 | * 2. Altered source versions must be plainly marked as such, and must not be 18 | * misrepresented as being the original software. 19 | * 20 | * 3. This notice may not be removed or altered from any source 21 | * distribution. 22 | * 23 | */ 24 | 25 | #ifndef __MODMULTIPOINTER_SYMBOLS_H 26 | #define __MODMULTIPOINTER_SYMBOLS_H 27 | 28 | #include "bgddl.h" 29 | 30 | #ifdef __BGDC__ 31 | char * __bgdexport( mod_multi, modules_dependency )[] = 32 | { 33 | "libsdlhandler", 34 | NULL 35 | }; 36 | 37 | DLSYSFUNCS __bgdexport( mod_multi, functions_exports )[] = 38 | { 39 | { "MULTI_NUMPOINTERS" , "" , TYPE_INT , 0 }, 40 | { "MULTI_INFO" , "IS" , TYPE_INT , 0 }, 41 | }; 42 | #else 43 | extern DLSYSFUNCS __bgdexport( mod_multi, functions_exports )[]; 44 | extern HOOK __bgdexport( mod_multi, handler_hooks )[]; 45 | extern char * __bgdexport( mod_multi, modules_dependency )[]; 46 | #endif 47 | #endif 48 | -------------------------------------------------------------------------------- /modules/mod_path/mod_path.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_path/mod_path.c -------------------------------------------------------------------------------- /modules/mod_path/mod_path_symbols.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2006-2012 SplinterGU (Fenix/Bennugd) 3 | * Copyright © 2002-2006 Fenix Team (Fenix) 4 | * Copyright © 1999-2002 José Luis Cebrián Pagüe (Fenix) 5 | * 6 | * This file is part of Bennu - Game Development 7 | * 8 | * This software is provided 'as-is', without any express or implied 9 | * warranty. In no event will the authors be held liable for any damages 10 | * arising from the use of this software. 11 | * 12 | * Permission is granted to anyone to use this software for any purpose, 13 | * including commercial applications, and to alter it and redistribute it 14 | * freely, subject to the following restrictions: 15 | * 16 | * 1. The origin of this software must not be misrepresented; you must not 17 | * claim that you wrote the original software. If you use this software 18 | * in a product, an acknowledgment in the product documentation would be 19 | * appreciated but is not required. 20 | * 21 | * 2. Altered source versions must be plainly marked as such, and must not be 22 | * misrepresented as being the original software. 23 | * 24 | * 3. This notice may not be removed or altered from any source 25 | * distribution. 26 | * 27 | */ 28 | 29 | #ifndef __MODPATH_SYMBOLS_H 30 | #define __MODPATH_SYMBOLS_H 31 | 32 | #include 33 | 34 | #define PF_NODIAG 1 35 | #define PF_REVERSE 2 36 | 37 | #ifdef __BGDC__ 38 | DLCONSTANT __bgdexport( mod_path, constants_def )[] = 39 | { 40 | { "PF_NODIAG" , TYPE_INT, PF_NODIAG }, 41 | { "PF_REVERSE" , TYPE_INT, PF_REVERSE }, 42 | { NULL , 0 , 0 } 43 | } ; 44 | 45 | DLSYSFUNCS __bgdexport( mod_path, functions_exports )[] = 46 | { 47 | /* Path finding */ 48 | { "PATH_FIND" , "IIIIIII", TYPE_INT , 0 }, 49 | { "PATH_GETXY" , "PP" , TYPE_INT , 0 }, 50 | { "PATH_WALL" , "I" , TYPE_INT , 0 }, 51 | { 0 , 0 , 0 , 0 } 52 | }; 53 | 54 | char * __bgdexport( mod_path, modules_dependency )[] = 55 | { 56 | "libgrbase", 57 | NULL 58 | }; 59 | #else 60 | extern DLCONSTANT __bgdexport( mod_path, constants_def )[]; 61 | extern DLSYSFUNCS __bgdexport( mod_path, functions_exports )[]; 62 | extern char * __bgdexport( mod_path, modules_dependency )[]; 63 | #endif 64 | 65 | #endif 66 | -------------------------------------------------------------------------------- /modules/mod_proc/mod_proc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_proc/mod_proc.c -------------------------------------------------------------------------------- /modules/mod_rand/mod_rand.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_rand/mod_rand.c -------------------------------------------------------------------------------- /modules/mod_rand/mod_rand_symbols.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2006-2012 SplinterGU (Fenix/Bennugd) 3 | * Copyright © 2002-2006 Fenix Team (Fenix) 4 | * Copyright © 1999-2002 José Luis Cebrián Pagüe (Fenix) 5 | * 6 | * This file is part of Bennu - Game Development 7 | * 8 | * This software is provided 'as-is', without any express or implied 9 | * warranty. In no event will the authors be held liable for any damages 10 | * arising from the use of this software. 11 | * 12 | * Permission is granted to anyone to use this software for any purpose, 13 | * including commercial applications, and to alter it and redistribute it 14 | * freely, subject to the following restrictions: 15 | * 16 | * 1. The origin of this software must not be misrepresented; you must not 17 | * claim that you wrote the original software. If you use this software 18 | * in a product, an acknowledgment in the product documentation would be 19 | * appreciated but is not required. 20 | * 21 | * 2. Altered source versions must be plainly marked as such, and must not be 22 | * misrepresented as being the original software. 23 | * 24 | * 3. This notice may not be removed or altered from any source 25 | * distribution. 26 | * 27 | */ 28 | 29 | #ifndef __MODRAND_SYMBOLS_H 30 | #define __MODRAND_SYMBOLS_H 31 | 32 | #include 33 | 34 | #ifdef __BGDC__ 35 | DLSYSFUNCS __bgdexport( mod_rand, functions_exports )[] = 36 | { 37 | { "RAND_SEED" , "I" , TYPE_INT , 0 }, 38 | { "RAND" , "II" , TYPE_INT , 0 }, 39 | { 0 , 0 , 0 , 0 } 40 | }; 41 | #else 42 | extern DLSYSFUNCS __bgdexport( mod_rand, functions_exports )[]; 43 | #endif 44 | 45 | #endif 46 | -------------------------------------------------------------------------------- /modules/mod_regex/mod_regex.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_regex/mod_regex.c -------------------------------------------------------------------------------- /modules/mod_regex/mod_regex_symbols.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2006-2012 SplinterGU (Fenix/Bennugd) 3 | * Copyright © 2002-2006 Fenix Team (Fenix) 4 | * Copyright © 1999-2002 José Luis Cebrián Pagüe (Fenix) 5 | * 6 | * This file is part of Bennu - Game Development 7 | * 8 | * This software is provided 'as-is', without any express or implied 9 | * warranty. In no event will the authors be held liable for any damages 10 | * arising from the use of this software. 11 | * 12 | * Permission is granted to anyone to use this software for any purpose, 13 | * including commercial applications, and to alter it and redistribute it 14 | * freely, subject to the following restrictions: 15 | * 16 | * 1. The origin of this software must not be misrepresented; you must not 17 | * claim that you wrote the original software. If you use this software 18 | * in a product, an acknowledgment in the product documentation would be 19 | * appreciated but is not required. 20 | * 21 | * 2. Altered source versions must be plainly marked as such, and must not be 22 | * misrepresented as being the original software. 23 | * 24 | * 3. This notice may not be removed or altered from any source 25 | * distribution. 26 | * 27 | */ 28 | 29 | #ifndef __MODREGEX_SYMBOLS_H 30 | #define __MODREGEX_SYMBOLS_H 31 | 32 | #include 33 | 34 | #ifndef __BGDC__ 35 | extern int modregex_regex (INSTANCE * my, int * params); 36 | extern int modregex_string_replace (INSTANCE * my, int * params); 37 | extern int modregex_regex_replace (INSTANCE * my, int * params); 38 | extern int modregex_split (INSTANCE * my, int * params); 39 | extern int modregex_join (INSTANCE * my, int * params); 40 | 41 | DLVARFIXUP __bgdexport( mod_regex, globals_fixup) [] = { 42 | { "regex_reg", NULL, -1, -1 }, 43 | { NULL, NULL, -1, -1 } 44 | }; 45 | #endif 46 | 47 | 48 | char __bgdexport( mod_regex, globals_def )[] = "STRING regex_reg[15];\n"; 49 | DLSYSFUNCS __bgdexport( mod_regex, functions_exports) [] = { 50 | /* Regex */ 51 | FUNC( "REGEX" , "SS" , TYPE_INT , modregex_regex ), 52 | FUNC( "STRING_REPLACE" , "SSS" , TYPE_STRING , modregex_string_replace ), 53 | FUNC( "REGEX_REPLACE" , "SSS" , TYPE_STRING , modregex_regex_replace ), 54 | FUNC( "SPLIT" , "SSPI" , TYPE_INT , modregex_split ), 55 | FUNC( "JOIN" , "SPI" , TYPE_STRING , modregex_join ), 56 | FUNC( 0 , 0 , 0 , 0 ) 57 | }; 58 | 59 | #endif 60 | -------------------------------------------------------------------------------- /modules/mod_say/mod_say.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_say/mod_say.c -------------------------------------------------------------------------------- /modules/mod_say/mod_say_symbols.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2006-2012 SplinterGU (Fenix/Bennugd) 3 | * Copyright © 2002-2006 Fenix Team (Fenix) 4 | * Copyright © 1999-2002 José Luis Cebrián Pagüe (Fenix) 5 | * 6 | * This file is part of Bennu - Game Development 7 | * 8 | * This software is provided 'as-is', without any express or implied 9 | * warranty. In no event will the authors be held liable for any damages 10 | * arising from the use of this software. 11 | * 12 | * Permission is granted to anyone to use this software for any purpose, 13 | * including commercial applications, and to alter it and redistribute it 14 | * freely, subject to the following restrictions: 15 | * 16 | * 1. The origin of this software must not be misrepresented; you must not 17 | * claim that you wrote the original software. If you use this software 18 | * in a product, an acknowledgment in the product documentation would be 19 | * appreciated but is not required. 20 | * 21 | * 2. Altered source versions must be plainly marked as such, and must not be 22 | * misrepresented as being the original software. 23 | * 24 | * 3. This notice may not be removed or altered from any source 25 | * distribution. 26 | * 27 | */ 28 | 29 | #ifndef __MODSAY_SYMBOLS_H 30 | #define __MODSAY_SYMBOLS_H 31 | 32 | #include 33 | 34 | #ifdef __BGDC__ 35 | DLSYSFUNCS __bgdexport( mod_say, functions_exports )[] = 36 | { 37 | { "SAY" , "S", TYPE_UNDEFINED, 0 }, 38 | { "SAY_FAST", "S", TYPE_UNDEFINED, 0 }, 39 | { 0 , 0 , 0 , 0 } 40 | }; 41 | #else 42 | extern DLSYSFUNCS __bgdexport( mod_say, functions_exports )[]; 43 | #endif 44 | 45 | #endif 46 | -------------------------------------------------------------------------------- /modules/mod_screen/mod_screen.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_screen/mod_screen.c -------------------------------------------------------------------------------- /modules/mod_scroll/mod_scroll.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_scroll/mod_scroll.c -------------------------------------------------------------------------------- /modules/mod_scroll/mod_scroll_symbols.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2006-2012 SplinterGU (Fenix/Bennugd) 3 | * Copyright © 2002-2006 Fenix Team (Fenix) 4 | * Copyright © 1999-2002 José Luis Cebrián Pagüe (Fenix) 5 | * 6 | * This file is part of Bennu - Game Development 7 | * 8 | * This software is provided 'as-is', without any express or implied 9 | * warranty. In no event will the authors be held liable for any damages 10 | * arising from the use of this software. 11 | * 12 | * Permission is granted to anyone to use this software for any purpose, 13 | * including commercial applications, and to alter it and redistribute it 14 | * freely, subject to the following restrictions: 15 | * 16 | * 1. The origin of this software must not be misrepresented; you must not 17 | * claim that you wrote the original software. If you use this software 18 | * in a product, an acknowledgment in the product documentation would be 19 | * appreciated but is not required. 20 | * 21 | * 2. Altered source versions must be plainly marked as such, and must not be 22 | * misrepresented as being the original software. 23 | * 24 | * 3. This notice may not be removed or altered from any source 25 | * distribution. 26 | * 27 | */ 28 | 29 | #ifndef __MODSCROLL_SYMBOLS_H 30 | #define __MODSCROLL_SYMBOLS_H 31 | 32 | #include 33 | 34 | #ifdef __BGDC__ 35 | DLSYSFUNCS __bgdexport( mod_scroll, functions_exports )[] = 36 | { 37 | { "SCROLL_START" , "IIIIIIII", TYPE_INT , 0 }, 38 | { "SCROLL_START" , "IIIIII" , TYPE_INT , 0 }, 39 | { "SCROLL_STOP" , "I" , TYPE_INT , 0 }, 40 | { "SCROLL_MOVE" , "I" , TYPE_INT , 0 }, 41 | 42 | { "START_SCROLL" , "IIIIIIII", TYPE_INT , 0 }, 43 | { "START_SCROLL" , "IIIIII" , TYPE_INT , 0 }, 44 | { "STOP_SCROLL" , "I" , TYPE_INT , 0 }, 45 | { "MOVE_SCROLL" , "I" , TYPE_INT , 0 }, 46 | 47 | { 0 , 0 , 0 , 0 } 48 | 49 | }; 50 | 51 | char * __bgdexport( mod_scroll, modules_dependency )[] = 52 | { 53 | "libscroll", 54 | 0 55 | }; 56 | #else 57 | extern DLSYSFUNCS __bgdexport( mod_scroll, functions_exports )[]; 58 | extern char * __bgdexport( mod_scroll, modules_dependency )[]; 59 | #endif 60 | 61 | #endif 62 | -------------------------------------------------------------------------------- /modules/mod_sort/mod_sort.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_sort/mod_sort.c -------------------------------------------------------------------------------- /modules/mod_sort/mod_sort_symbols.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2006-2012 SplinterGU (Fenix/Bennugd) 3 | * Copyright © 2002-2006 Fenix Team (Fenix) 4 | * Copyright © 1999-2002 José Luis Cebrián Pagüe (Fenix) 5 | * 6 | * This file is part of Bennu - Game Development 7 | * 8 | * This software is provided 'as-is', without any express or implied 9 | * warranty. In no event will the authors be held liable for any damages 10 | * arising from the use of this software. 11 | * 12 | * Permission is granted to anyone to use this software for any purpose, 13 | * including commercial applications, and to alter it and redistribute it 14 | * freely, subject to the following restrictions: 15 | * 16 | * 1. The origin of this software must not be misrepresented; you must not 17 | * claim that you wrote the original software. If you use this software 18 | * in a product, an acknowledgment in the product documentation would be 19 | * appreciated but is not required. 20 | * 21 | * 2. Altered source versions must be plainly marked as such, and must not be 22 | * misrepresented as being the original software. 23 | * 24 | * 3. This notice may not be removed or altered from any source 25 | * distribution. 26 | * 27 | */ 28 | 29 | #ifndef __MODSORT_SYMBOLS_H 30 | #define __MODSORT_SYMBOLS_H 31 | 32 | #include 33 | 34 | #ifdef __BGDC__ 35 | DLSYSFUNCS __bgdexport( mod_sort, functions_exports )[] = 36 | { 37 | /* Funciones sort */ 38 | { "QUICKSORT" , "PIIIBB", TYPE_INT , 0 }, 39 | { "KSORT" , "V++V++", TYPE_INT , 0 }, 40 | { "KSORT" , "V++V++I", TYPE_INT , 0 }, 41 | { "SORT" , "V++I" , TYPE_INT , 0 }, 42 | { "SORT" , "V++" , TYPE_INT , 0 }, 43 | { 0 , 0 , 0 , 0 } 44 | }; 45 | #else 46 | extern DLSYSFUNCS __bgdexport( mod_sort, functions_exports )[]; 47 | #endif 48 | 49 | #endif 50 | -------------------------------------------------------------------------------- /modules/mod_sound/mod_sound.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_sound/mod_sound.c -------------------------------------------------------------------------------- /modules/mod_sound/mod_sound_symbols.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_sound/mod_sound_symbols.h -------------------------------------------------------------------------------- /modules/mod_string/mod_string.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_string/mod_string.c -------------------------------------------------------------------------------- /modules/mod_string/mod_string_symbols.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2006-2012 SplinterGU (Fenix/Bennugd) 3 | * Copyright © 2002-2006 Fenix Team (Fenix) 4 | * Copyright © 1999-2002 José Luis Cebrián Pagüe (Fenix) 5 | * 6 | * This file is part of Bennu - Game Development 7 | * 8 | * This software is provided 'as-is', without any express or implied 9 | * warranty. In no event will the authors be held liable for any damages 10 | * arising from the use of this software. 11 | * 12 | * Permission is granted to anyone to use this software for any purpose, 13 | * including commercial applications, and to alter it and redistribute it 14 | * freely, subject to the following restrictions: 15 | * 16 | * 1. The origin of this software must not be misrepresented; you must not 17 | * claim that you wrote the original software. If you use this software 18 | * in a product, an acknowledgment in the product documentation would be 19 | * appreciated but is not required. 20 | * 21 | * 2. Altered source versions must be plainly marked as such, and must not be 22 | * misrepresented as being the original software. 23 | * 24 | * 3. This notice may not be removed or altered from any source 25 | * distribution. 26 | * 27 | */ 28 | 29 | #ifndef __MODSTRING_H 30 | #define __MODSTRING_H 31 | 32 | #include 33 | 34 | #ifdef __BGDC__ 35 | DLSYSFUNCS __bgdexport( mod_string, functions_exports )[] = 36 | { 37 | { "STRLEN" , "S" , TYPE_INT , 0 }, 38 | { "LEN" , "S" , TYPE_INT , 0 }, 39 | { "UCASE" , "S" , TYPE_STRING, 0 }, 40 | { "LCASE" , "S" , TYPE_STRING, 0 }, 41 | { "STRCASECMP" , "SS" , TYPE_INT , 0 }, 42 | { "SUBSTR" , "SII" , TYPE_STRING, 0 }, 43 | { "SUBSTR" , "SI" , TYPE_STRING, 0 }, 44 | { "FIND" , "SS" , TYPE_INT , 0 }, 45 | { "FIND" , "SSI" , TYPE_INT , 0 }, 46 | { "LPAD" , "SI" , TYPE_STRING, 0 }, 47 | { "RPAD" , "SI" , TYPE_STRING, 0 }, 48 | { "ITOA" , "I" , TYPE_STRING, 0 }, 49 | { "FTOA" , "F" , TYPE_STRING, 0 }, 50 | { "ATOI" , "S" , TYPE_INT , 0 }, 51 | { "ATOF" , "S" , TYPE_FLOAT , 0 }, 52 | { "ASC" , "S" , TYPE_BYTE , 0 }, 53 | { "CHR" , "I" , TYPE_STRING, 0 }, 54 | { "TRIM" , "S" , TYPE_STRING, 0 }, 55 | { "STRREV" , "S" , TYPE_STRING, 0 }, 56 | { "FORMAT" , "I" , TYPE_STRING, 0 }, 57 | { "FORMAT" , "F" , TYPE_STRING, 0 }, 58 | { "FORMAT" , "FI" , TYPE_STRING, 0 }, 59 | { 0 , 0 , 0 , 0 } 60 | }; 61 | #else 62 | extern DLSYSFUNCS __bgdexport( mod_string, functions_exports )[]; 63 | #endif 64 | 65 | #endif 66 | -------------------------------------------------------------------------------- /modules/mod_sys/mod_sys_symbols.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2006-2012 SplinterGU (Fenix/Bennugd) 3 | * Copyright © 2002-2006 Fenix Team (Fenix) 4 | * Copyright © 1999-2002 José Luis Cebrián Pagüe (Fenix) 5 | * 6 | * This file is part of Bennu - Game Development 7 | * 8 | * This software is provided 'as-is', without any express or implied 9 | * warranty. In no event will the authors be held liable for any damages 10 | * arising from the use of this software. 11 | * 12 | * Permission is granted to anyone to use this software for any purpose, 13 | * including commercial applications, and to alter it and redistribute it 14 | * freely, subject to the following restrictions: 15 | * 16 | * 1. The origin of this software must not be misrepresented; you must not 17 | * claim that you wrote the original software. If you use this software 18 | * in a product, an acknowledgment in the product documentation would be 19 | * appreciated but is not required. 20 | * 21 | * 2. Altered source versions must be plainly marked as such, and must not be 22 | * misrepresented as being the original software. 23 | * 24 | * 3. This notice may not be removed or altered from any source 25 | * distribution. 26 | * 27 | */ 28 | 29 | #ifndef __MODSYS_SYMBOLS_H 30 | #define __MODSYS_SYMBOLS_H 31 | 32 | #ifdef __BGDC__ 33 | #define _P_WAIT 0 34 | #define _P_NOWAIT 1 35 | 36 | DLCONSTANT __bgdexport( mod_sys, constants_def )[] = 37 | { 38 | { "_P_WAIT" , TYPE_DWORD, _P_WAIT }, 39 | { "_P_NOWAIT" , TYPE_DWORD, _P_NOWAIT }, 40 | { NULL , 0 , 0 } 41 | } ; 42 | 43 | DLSYSFUNCS __bgdexport( mod_sys, functions_exports )[] = 44 | { 45 | { "GETENV" , "S" , TYPE_STRING, 0 }, 46 | { "EXEC" , "ISIP" , TYPE_INT , 0 }, 47 | { 0 , 0 , 0 , 0 } 48 | }; 49 | #else 50 | extern DLCONSTANT __bgdexport( mod_sys, constants_def )[]; 51 | extern DLSYSFUNCS __bgdexport( mod_sys, functions_exports )[]; 52 | #endif 53 | 54 | #endif 55 | -------------------------------------------------------------------------------- /modules/mod_text/mod_text.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_text/mod_text.c -------------------------------------------------------------------------------- /modules/mod_theora/debian/bennugd-module-theora.dirs: -------------------------------------------------------------------------------- 1 | usr/lib/i386-linux-gnu/bennugd 2 | -------------------------------------------------------------------------------- /modules/mod_theora/debian/bennugd-module-theora.install: -------------------------------------------------------------------------------- 1 | usr/lib/i386-linux-gnu/bennugd/*.so 2 | 3 | -------------------------------------------------------------------------------- /modules/mod_theora/debian/changelog: -------------------------------------------------------------------------------- 1 | bennugd-module-theora (0.1) quantal; urgency=low 2 | 3 | * 16bpp support 4 | * Video audio is now played, but at the wrong frequency 5 | * Added new dependencies in SDL and SDL_mixer 6 | 7 | -- Joseba García Etxebarria Tue, 02 Apr 2013 19:34:23 +0200 8 | 9 | bennugd-module-theora (0.0.21) quantal; urgency=low 10 | 11 | * More work on the build scripts 12 | 13 | -- Joseba García Etxebarria Wed, 27 Feb 2013 00:02:06 +0100 14 | 15 | bennugd-module-theora (0.0.2) quantal; urgency=low 16 | 17 | * Work on the build script 18 | 19 | -- Joseba García Etxebarria Tue, 26 Feb 2013 21:11:42 +0100 20 | 21 | bennugd-module-theora (0.0.1) quantal; urgency=low 22 | 23 | * Initial release 24 | 25 | -- Joseba García Etxebarria Mon, 25 Feb 2013 13:51:11 +0100 26 | -------------------------------------------------------------------------------- /modules/mod_theora/debian/compat: -------------------------------------------------------------------------------- 1 | 7 2 | -------------------------------------------------------------------------------- /modules/mod_theora/debian/control: -------------------------------------------------------------------------------- 1 | Source: bennugd-module-theora 2 | Priority: optional 3 | Maintainer: Joseba García Etxebarria 4 | Build-Depends: debhelper (>= 7), bennugd-core-dev, bennugd-modules-dev, libtheora-dev, libvorbis-dev, libsdl-mixer1.2-dev, libsdl1.2-dev, pkg-config 5 | Standards-Version: 3.9.2 6 | Section: libs 7 | 8 | Package: bennugd-module-theora 9 | Section: libs 10 | Architecture: i386 11 | Depends: bennugd-core, bennugd-modules, libtheora0, libvorbis0a, libsdl-mixer1.2, libsdl1.2debian, ${shlibs:Depends} 12 | Description: BennuGD TheoraPlay wrapper module 13 | This package is a Bennu module that will allow to you to play OGG/Theora 14 | video files using BennuGD. 15 | -------------------------------------------------------------------------------- /modules/mod_theora/debian/copyright: -------------------------------------------------------------------------------- 1 | Upstream Author(s): 2 | 3 | Joseba García Etxebarria 4 | 5 | Copyright: 6 | 7 | 8 | 9 | License: 10 | 11 | This software is provided 'as-is', without any express or implied 12 | warranty. In no event will the authors be held liable for any damages 13 | arising from the use of this software. 14 | 15 | Permission is granted to anyone to use this software for any purpose, 16 | including commercial applications, and to alter it and redistribute it 17 | freely, subject to the following restrictions: 18 | 19 | 1. The origin of this software must not be misrepresented; you must not 20 | claim that you wrote the original software. If you use this software 21 | in a product, an acknowledgment in the product documentation would be 22 | appreciated but is not required. 23 | 24 | 2. Altered source versions must be plainly marked as such, and must not be 25 | misrepresented as being the original software. 26 | 27 | 3. This notice may not be removed or altered from any source 28 | distribution. -------------------------------------------------------------------------------- /modules/mod_theora/debian/postinst: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | # We run ldconfig so that the new directory configuration is found properly 4 | /sbin/ldconfig 5 | 6 | -------------------------------------------------------------------------------- /modules/mod_theora/debian/postrm: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | # We run ldconfig so that the new directory configuration is found properly 4 | /sbin/ldconfig 5 | -------------------------------------------------------------------------------- /modules/mod_theora/debian/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | # -*- makefile -*- 3 | # Sample debian/rules that uses debhelper. 4 | # This file was originally written by Joey Hess and Craig Small. 5 | # As a special exception, when this file is copied by dh-make into a 6 | # dh-make output file, you may use that output file without restriction. 7 | # This special exception was added by Craig Small in version 0.37 of dh-make. 8 | 9 | # Uncomment this to turn on verbose mode. 10 | #export DH_VERBOSE=1 11 | 12 | 13 | 14 | 15 | 16 | 17 | # shared library versions, option 1 18 | version=2.0.5 19 | major=2 20 | # option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so 21 | #version=`ls src/.libs/lib*.so.* | \ 22 | # awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'` 23 | #major=`ls src/.libs/lib*.so.* | \ 24 | # awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'` 25 | 26 | configure: configure-stamp 27 | configure-stamp: 28 | dh_testdir 29 | # Add here commands to configure the package. 30 | 31 | touch configure-stamp 32 | 33 | 34 | build: build-stamp 35 | build-stamp: configure-stamp 36 | dh_testdir 37 | 38 | # Add here commands to compile the package. 39 | ./make.sh 40 | 41 | touch $@ 42 | 43 | clean: 44 | dh_testdir 45 | dh_testroot 46 | rm -f build-stamp configure-stamp 47 | 48 | # Add here commands to clean up after the build process. 49 | rm -rf mod_theora.o libmod_theora.so *stamp debian/*.log debian/tmp debian/*.substvars 50 | 51 | dh_clean 52 | 53 | install: build 54 | dh_testdir 55 | dh_testroot 56 | dh_clean -k 57 | dh_installdirs 58 | 59 | # Add here commands to install the package into debian/tmp 60 | mkdir -p debian/tmp/usr/lib/i386-linux-gnu/bennugd 61 | cp libmod_theora.so debian/tmp/usr/lib/i386-linux-gnu/bennugd 62 | 63 | 64 | # Build architecture-independent files here. 65 | binary-indep: build install 66 | # We have nothing to do by default. 67 | 68 | # Build architecture-dependent files here. 69 | binary-arch: build install 70 | dh_testdir 71 | dh_testroot 72 | dh_installchangelogs 73 | dh_installdocs 74 | dh_installexamples 75 | dh_install 76 | # dh_installmenu 77 | # dh_installdebconf 78 | # dh_installlogrotate 79 | # dh_installemacsen 80 | # dh_installpam 81 | # dh_installmime 82 | # dh_installinit 83 | # dh_installcron 84 | # dh_installinfo 85 | dh_installman 86 | dh_link 87 | dh_strip 88 | dh_compress 89 | dh_fixperms 90 | # dh_perl 91 | # dh_python 92 | # dh_makeshlibs 93 | dh_installdeb 94 | dh_shlibdeps 95 | dh_gencontrol 96 | dh_md5sums 97 | dh_builddeb 98 | 99 | binary: binary-indep binary-arch 100 | .PHONY: build clean binary-indep binary-arch binary install configure 101 | -------------------------------------------------------------------------------- /modules/mod_theora/make.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | DEPS="bennugd-core bennugd-module-mod_video sdl theora vorbis" 4 | MODULE="mod_theora" 5 | 6 | # Clean previous module files 7 | if [ -f $MODULE.so ]; then 8 | rm $MODULE.so 9 | fi 10 | 11 | # Compile the source code 12 | gcc -c -Wall $(pkg-config --cflags $DEPS) -I. $MODULE.c theoraplay.c 13 | 14 | # Link the module 15 | if [ -f $MODULE.o ]; then 16 | gcc -olib$MODULE.so $MODULE.o theoraplay.o -shared $(pkg-config --libs $DEPS) -Wl,-soname -Wl,lib$MODULE.so -logg -lvorbis -ltheoradec 17 | fi 18 | 19 | # Strip and remove compilation files 20 | if [ -f lib$MODULE.so ]; then 21 | rm $MODULE.o 22 | rm theoraplay.o 23 | strip lib$MODULE.so 24 | fi 25 | 26 | -------------------------------------------------------------------------------- /modules/mod_theora/make_osx.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | DEPS="bennugd-core bennugd-module-mod_video sdl sdl_mixer" 4 | MODULE="mod_theora" 5 | 6 | # Clean previous module files 7 | if [ -f $MODULE.dylib ]; then 8 | rm $MODULE.dylib 9 | fi 10 | 11 | # Compile the source code 12 | llvm-gcc -O2 -m32 -c -Wall -I../bennugd/base/core/include/ -I../bennugd/base/modules/libgrbase/ -I../bennugd/base/modules/libvideo/ -I../bennugd/base/modules/libblit/ -I. -I/opt/local/include -I/sw/include/SDL/ -I/opt/local/include/SDL $MODULE.c theoraplay.c 13 | 14 | # Link the module 15 | if [ -f $MODULE.o ]; then 16 | llvm-gcc -O2 -m32 -o $MODULE.dylib $MODULE.o theoraplay.o -dynamiclib -L../bennugd_bin/lib/ -lrender -lvideo -lblit -lmod_sound -lgrbase -lbgdrtm -ltheora -L/opt/local/lib -logg -lvorbis -ltheoradec -Wl,-framework,AppKit -lSDL -Wl,-framework,Cocoa -lSDL_mixer 17 | fi 18 | 19 | # Strip and remove compilation files 20 | if [ -f $MODULE.dylib ]; then 21 | rm $MODULE.o 22 | rm theoraplay.o 23 | strip $MODULE.dylib 24 | fi 25 | 26 | -------------------------------------------------------------------------------- /modules/mod_theora/mod_theora.prg: -------------------------------------------------------------------------------- 1 | import "mod_key" 2 | import "mod_video" 3 | import "mod_mouse" 4 | import "mod_say" 5 | import "mod_map" 6 | import "mod_file" 7 | import "mod_proc" 8 | import "mod_timers" 9 | import "mod_wm" 10 | import "mod_theora" 11 | import "mod_sound" 12 | 13 | /* Player main window */ 14 | Process main() 15 | Private 16 | string fname=""; 17 | int time=0, delay=30, track=1; 18 | int resx=640, resy=480; 19 | int song; 20 | 21 | Begin 22 | // Handle the command line 23 | if(argc != 2) 24 | say("Must be given file to play, quitting."); 25 | exit(); 26 | end; 27 | 28 | // Try to find the file that the user wants us to play, or die 29 | fname = argv[1]; 30 | if(! fexists(fname)) 31 | say("Couldn't find "+fname+" to be played, quitting."); 32 | exit(); 33 | end 34 | 35 | /* Start the graphics subsystem */ 36 | resx=640; resy=480; 37 | set_mode(resx, resy, 16, MODE_WINDOW); 38 | 39 | song = load_song("1.ogg"); 40 | play_song(song, 0); 41 | 42 | if((graph = video_play(fname)) == -1) 43 | say("Sorry, I couldn't play your video :("); 44 | exit(); 45 | end; 46 | 47 | x = resx/2; y = resy/2; 48 | 49 | while(! key(_esc)) 50 | if(timer[0] > time+delay) 51 | if(key(_right)) 52 | angle += 1000; 53 | time = timer[0]; 54 | end; 55 | if(key(_left)) 56 | angle -= 1000; 57 | time = timer[0]; 58 | end; 59 | end; 60 | FRAME; 61 | end; 62 | 63 | video_stop(); 64 | 65 | while(! key(_q)) 66 | // If you press space bar, we start over 67 | if(key(_space)) 68 | main(); 69 | return; 70 | end; 71 | FRAME; 72 | end; 73 | 74 | unload_song(song); 75 | 76 | exit(); 77 | End; 78 | -------------------------------------------------------------------------------- /modules/mod_time/mod_time.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_time/mod_time.c -------------------------------------------------------------------------------- /modules/mod_time/mod_time_symbols.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_time/mod_time_symbols.h -------------------------------------------------------------------------------- /modules/mod_timers/mod_timers.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_timers/mod_timers.c -------------------------------------------------------------------------------- /modules/mod_timers/mod_timers_symbols.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2006-2012 SplinterGU (Fenix/Bennugd) 3 | * Copyright © 2002-2006 Fenix Team (Fenix) 4 | * Copyright © 1999-2002 José Luis Cebrián Pagüe (Fenix) 5 | * 6 | * This file is part of Bennu - Game Development 7 | * 8 | * This software is provided 'as-is', without any express or implied 9 | * warranty. In no event will the authors be held liable for any damages 10 | * arising from the use of this software. 11 | * 12 | * Permission is granted to anyone to use this software for any purpose, 13 | * including commercial applications, and to alter it and redistribute it 14 | * freely, subject to the following restrictions: 15 | * 16 | * 1. The origin of this software must not be misrepresented; you must not 17 | * claim that you wrote the original software. If you use this software 18 | * in a product, an acknowledgment in the product documentation would be 19 | * appreciated but is not required. 20 | * 21 | * 2. Altered source versions must be plainly marked as such, and must not be 22 | * misrepresented as being the original software. 23 | * 24 | * 3. This notice may not be removed or altered from any source 25 | * distribution. 26 | * 27 | */ 28 | 29 | #ifndef __MODTIMERS_SYMBOLS_H 30 | #define __MODTIMERS_SYMBOLS_H 31 | 32 | #include 33 | 34 | #ifdef __BGDC__ 35 | char __bgdexport( mod_timers, globals_def )[] = "timer[9];\n"; 36 | #else 37 | extern char __bgdexport( mod_timers, globals_def )[]; 38 | extern DLVARFIXUP __bgdexport( mod_timers, globals_fixup )[]; 39 | extern HOOK __bgdexport( mod_timers, handler_hooks )[]; 40 | #endif 41 | 42 | #endif 43 | -------------------------------------------------------------------------------- /modules/mod_video/mod_video.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_video/mod_video.c -------------------------------------------------------------------------------- /modules/mod_video/mod_video_symbols.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2006-2012 SplinterGU (Fenix/Bennugd) 3 | * Copyright © 2002-2006 Fenix Team (Fenix) 4 | * Copyright © 1999-2002 José Luis Cebrián Pagüe (Fenix) 5 | * 6 | * This file is part of Bennu - Game Development 7 | * 8 | * This software is provided 'as-is', without any express or implied 9 | * warranty. In no event will the authors be held liable for any damages 10 | * arising from the use of this software. 11 | * 12 | * Permission is granted to anyone to use this software for any purpose, 13 | * including commercial applications, and to alter it and redistribute it 14 | * freely, subject to the following restrictions: 15 | * 16 | * 1. The origin of this software must not be misrepresented; you must not 17 | * claim that you wrote the original software. If you use this software 18 | * in a product, an acknowledgment in the product documentation would be 19 | * appreciated but is not required. 20 | * 21 | * 2. Altered source versions must be plainly marked as such, and must not be 22 | * misrepresented as being the original software. 23 | * 24 | * 3. This notice may not be removed or altered from any source 25 | * distribution. 26 | * 27 | */ 28 | 29 | #ifndef __MODVIDEO_H 30 | #define __MODVIDEO_H 31 | 32 | #include 33 | 34 | #ifdef __BGDC__ 35 | DLSYSFUNCS __bgdexport( mod_video, functions_exports )[] = 36 | { 37 | { "SET_MODE" , "I" , TYPE_INT , 0 }, 38 | { "SET_MODE" , "II" , TYPE_INT , 0 }, 39 | { "SET_MODE" , "III" , TYPE_INT , 0 }, 40 | { "SET_MODE" , "IIII" , TYPE_INT , 0 }, 41 | { "SET_FPS" , "II" , TYPE_INT , 0 }, 42 | { "GET_MODES" , "II" , TYPE_POINTER , 0 }, 43 | { "MODE_IS_OK" , "IIII" , TYPE_INT , 0 }, 44 | { 0 , 0 , 0 , 0 } 45 | }; 46 | 47 | char * __bgdexport( mod_video, modules_dependency )[] = 48 | { 49 | "libgrbase", 50 | "libvideo", 51 | "librender", 52 | NULL 53 | }; 54 | #else 55 | extern DLVARFIXUP __bgdexport( mod_video, globals_fixup )[]; 56 | extern DLSYSFUNCS __bgdexport( mod_video, functions_exports )[]; 57 | extern char * __bgdexport( mod_video, modules_dependency )[]; 58 | #endif 59 | 60 | #endif 61 | -------------------------------------------------------------------------------- /modules/mod_wm/mod_wm.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_wm/mod_wm.c -------------------------------------------------------------------------------- /modules/mod_wm/mod_wm_symbols.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2006-2012 SplinterGU (Fenix/Bennugd) 3 | * Copyright © 2002-2006 Fenix Team (Fenix) 4 | * Copyright © 1999-2002 José Luis Cebrián Pagüe (Fenix) 5 | * 6 | * This file is part of Bennu - Game Development 7 | * 8 | * This software is provided 'as-is', without any express or implied 9 | * warranty. In no event will the authors be held liable for any damages 10 | * arising from the use of this software. 11 | * 12 | * Permission is granted to anyone to use this software for any purpose, 13 | * including commercial applications, and to alter it and redistribute it 14 | * freely, subject to the following restrictions: 15 | * 16 | * 1. The origin of this software must not be misrepresented; you must not 17 | * claim that you wrote the original software. If you use this software 18 | * in a product, an acknowledgment in the product documentation would be 19 | * appreciated but is not required. 20 | * 21 | * 2. Altered source versions must be plainly marked as such, and must not be 22 | * misrepresented as being the original software. 23 | * 24 | * 3. This notice may not be removed or altered from any source 25 | * distribution. 26 | * 27 | */ 28 | 29 | #ifndef __MODWM_SYMBOLS_H 30 | #define __MODWM_SYMBOLS_H 31 | 32 | #include 33 | 34 | #ifdef __BGDC__ 35 | DLSYSFUNCS __bgdexport( mod_wm, functions_exports )[] = 36 | { 37 | /* Funciones de ventana */ 38 | { "SET_TITLE" , "S" , TYPE_INT , 0 }, 39 | { "SET_ICON" , "II" , TYPE_INT , 0 }, 40 | { "MINIMIZE" , "" , TYPE_INT , 0 }, 41 | { "MOVE_WINDOW" , "II" , TYPE_INT , 0 }, 42 | { "SET_WINDOW_POS" , "II" , TYPE_INT , 0 }, 43 | { "GET_WINDOW_POS" , "PP" , TYPE_INT , 0 }, 44 | { "GET_WINDOW_SIZE" , "PPPP", TYPE_INT , 0 }, 45 | { "GET_DESKTOP_SIZE" , "PP" , TYPE_INT , 0 }, 46 | { 0 , 0 , 0 , 0 } 47 | }; 48 | 49 | char * __bgdexport( mod_wm, modules_dependency )[] = 50 | { 51 | "libgrbase", 52 | "libvideo", 53 | "libwm", 54 | NULL 55 | }; 56 | #else 57 | extern DLSYSFUNCS __bgdexport( mod_wm, functions_exports )[]; 58 | extern char * __bgdexport( mod_wm, modules_dependency )[]; 59 | #endif 60 | 61 | #endif 62 | -------------------------------------------------------------------------------- /modules/mod_wpad/mod_wpad.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/modules/mod_wpad/mod_wpad.c -------------------------------------------------------------------------------- /modules/mod_wpad/mod_wpad.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright © 2010 Joseba García Etxebarria 3 | * 4 | * mod_wpad is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * mod_wpad is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program; if not, write to the Free Software 16 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17 | * 18 | */ 19 | 20 | #ifndef __MODWPAD_H 21 | #define __MODWPAD_H 22 | 23 | #define WPAD_BATT 0 24 | #define WPAD_X 1 25 | #define WPAD_Y 2 26 | #define WPAD_Z 3 27 | #define WPAD_ANGLE 4 28 | #define WPAD_PITCH 5 29 | #define WPAD_ROLL 6 30 | #define WPAD_ACCELX 7 31 | #define WPAD_ACCELY 8 32 | #define WPAD_ACCELZ 9 33 | #define WPAD_WTL 3 34 | #define WPAD_WTR 4 35 | #define WPAD_WBL 5 36 | #define WPAD_WBR 6 37 | #define WPAD_GX 10 38 | #define WPAD_GY 11 39 | #define WPAD_GZ 12 40 | #define WPAD_IS_BB 100 41 | #define WPAD_HAS_NUNCHUK 101 42 | #define WPAD_HAS_CLASSIC 102 43 | #define WPAD_HAS_GUITAR 103 44 | 45 | #endif 46 | -------------------------------------------------------------------------------- /prepare.cmd: -------------------------------------------------------------------------------- 1 | rem I made an equivalent of prepare.sh for Windows user, therefore not necessary for using WSL. 2 | @echo off 3 | cd data 4 | 5 | if not %cd:~-4% == data goto error 6 | 7 | del *.dll /f/s/q 8 | del *.exe /f/s/q 9 | del SorMaker.dat /f/s/q 10 | 11 | ..\tools\extract_stub.py SorR.dat 12 | move /y SorR_stripped.dcb SorR.dat 13 | copy /y ..\system.txt mod\system.txt 14 | 15 | goto end 16 | 17 | :error 18 | echo Error: You need to run this in the parent folder of "data". 19 | 20 | :end 21 | -------------------------------------------------------------------------------- /prepare.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | find data/ -type f -name "*.dll" -exec rm -f {} \; 3 | find data/ -type f -name "*.exe" -exec rm -f {} \; 4 | find data/ -type f -name "SorMaker.dat" -exec rm -f {} \; 5 | cd data 6 | ../tools/extract_stub.py SorR.dat 7 | mv SorR_stripped.dcb SorR.dat 8 | cp ../system.txt mod/system.txt 9 | cd .. 10 | 11 | -------------------------------------------------------------------------------- /sce_sys/icon0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/sce_sys/icon0.png -------------------------------------------------------------------------------- /sce_sys/livearea/contents/bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isage/sorr-vita/a399b050afe112706e0301bd8704cb44f3ecbff6/sce_sys/livearea/contents/bg.png -------------------------------------------------------------------------------- /sce_sys/livearea/contents/template.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | bg.png 5 | 6 | 7 | 8 | 9 | START 10 | 11 | psla: 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /system.txt: -------------------------------------------------------------------------------- 1 | // GAME PORTS: PC, WIZ, XBOX, PSP, WII, ANDROID, HANDHELD 2 | PSP 3 | 4 | // LOADING TYPE: PRELOAD, REALTIME 5 | PRELOAD 6 | 7 | // FULL SCREEN WIDE: AUTO, DESKTOP, BORDERLESS, BORDERLESS_SYNC 8 | AUTO 9 | 10 | // XBOX CONTROL LAYOUT: (Y,A,B = JOY NUMBER) 11 | 0 12 | 0 13 | 0 --------------------------------------------------------------------------------