Shipwright/soh/src/code
David Chavez e42b18cf71
Add Support for macOS (#441)
* Fixed soh filters

* add more makefile changes

* almost ready

* more updates

* update

* update

* Update Makefiles to handle both platforms

* Allow for overriding the CXX and CC executables

* Restore original structure while supporting custom CXX flags

* Remove some platform specific libs

* Dynamic target name

* Make X11 paths package-agnostic

* Remove changes to `gfx_opengl.cpp`

* Use OpenGL2 on MacOS instead of OpenGL3

* make it actually render something

* render at least the first texture, still need to figure out the second
one

* Let’s use OpenGL 3 again

* maybe this works to get the right texture? link's eyes still look off a bit

* did this work?

* set the platform to macos

* actual numbers are right, but logic is ugly XXX/TODO, i know

* add zlib to ldflags for ZAPDUtils

* A bit of cleanup

* Revert unneeded changes

* Remove GL_CHECK

* Fix issues with z64 branch

* use an std::map instead of a giant array

* three point filter fix (#2)

* Fix mac compilation

* fix audio for 64 bit

* revert audio heap size, keep bigger pools

* Add more Apple specific checks to our modifications

* Add building instructions for macOS

* Remove unecessary step from building instructions

* Add missing SDL2 & GLEW to Linux LDLIBS

* Update BUILDING.md

Co-authored-by: BountyChocolate123456 <101743444+BountyChocolate123456@users.noreply.github.com>

* Update soh/.gitignore to include other arch binaries

Co-authored-by: BountyChocolate123456 <101743444+BountyChocolate123456@users.noreply.github.com>

* Use right platform name for debugging window

Co-authored-by: BountyChocolate123456 <101743444+BountyChocolate123456@users.noreply.github.com>

* Fix stormlib on macos (arm64)

* Simplify some of the ifdef checks

* Revert an older no longer necessary fix

* Remove remaining unecessary deviations

* Update building instructions after StormLib changes

* Feature: Use OpenGL 4.1 (#1)

* Further tweak the BUILDING

* Tidy up

* reword -j message

* Add Jenkins CI Support (#2)

* Fix type issues

* add target <appbundle> and <filledappbundle>

add makefile targets to create an .app
`filledappbundle` creates the target with the .otr included

this should perhaps be moved to Application Support though

* pull gcc's rpath from otool output

* move make target to the end so it's not default

* Add Jenkins and make exe in par with other platforms

* Actually save build artefacts

* Fix artefact path

* Remove x11 mentions and linking (not used)

* Update building instructions for generating app

* use appsupport directory

* Add new app icon

* Update target to match macOS types

* Update more audio types

* fix null deref in Audio_PlayFanfare

* Remove old import from z64

* address final nit with apple ifdefs

Co-authored-by: KiritoDev <36680385+KiritoDv@users.noreply.github.com>
Co-authored-by: Jeffrey Crowell <github@crowell.biz>
Co-authored-by: BountyChocolate123456 <101743444+BountyChocolate123456@users.noreply.github.com>
2022-06-22 14:59:21 -04:00
..
PreRender.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
TwoHeadArena.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
__osMalloc.c change OSMesg definition and fix memory corruptions 2022-06-04 10:09:50 -05:00
audioMgr.c change OSMesg definition and fix memory corruptions 2022-06-04 10:09:50 -05:00
audio_data.c Audio support nearly complete. 2022-06-16 20:35:52 -04:00
audio_effects.c Linux/GCC Support (#28) 2022-05-11 13:18:24 -04:00
audio_heap.c Audio decompiled and WIP custom sample support 2022-06-16 20:35:52 -04:00
audio_init_params.c Removed ifdefs for audio heap sizes 2022-06-20 12:33:38 -05:00
audio_load.c Update soh/src/code/audio_load.c 2022-06-20 16:03:03 -04:00
audio_playback.c Merge branch 'develop' into z64-devmerge 2022-06-17 00:39:07 -04:00
audio_seqplayer.c Merge branch 'zapd_audio_support' into zelda64 2022-06-16 23:09:50 -05:00
audio_sound_params.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
audio_synthesis.c Fixed last remaining audio bugs 2022-06-16 20:35:52 -04:00
code_800A9F30.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
code_800ACE70.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
code_800AD920.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
code_800BB0A0.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
code_800C3C20.c 64-bit early draft - no audio yet 2022-05-15 01:19:02 +02:00
code_800D2E30.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
code_800D31A0.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
code_800E4FE0.c Audio decompiled and WIP custom sample support 2022-06-16 20:35:52 -04:00
code_800E6840.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
code_800EC960.c Add Support for macOS (#441) 2022-06-22 14:59:21 -04:00
code_800F7260.c Increased initial audio pool size and fixed types 2022-06-03 14:22:48 -05:00
code_800F9280.c Audio support nearly complete. 2022-06-16 20:35:52 -04:00
code_800FBCE0.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
code_800FC620.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
code_800FCE80.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
code_800FD970.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
code_8006C3A0.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
code_8006C510.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
code_80097A00.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
code_800430A0.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
code_801067F0.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
code_801068B0.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
code_80043480.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
db_camera.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
debug_malloc.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
fault.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
fault_drawer.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
flg_set.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
game.c change OSMesg definition and fix memory corruptions 2022-06-04 10:09:50 -05:00
gamealloc.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
gfxprint.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
graph.c change OSMesg definition and fix memory corruptions 2022-06-04 10:09:50 -05:00
irqmgr.c change OSMesg definition and fix memory corruptions 2022-06-04 10:09:50 -05:00
jpegdecoder.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
jpegutils.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
listalloc.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
loadfragment2.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
logseverity.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
main.c change OSMesg definition and fix memory corruptions 2022-06-04 10:09:50 -05:00
mempak.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
mtxuty-cvt.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
padmgr.c change OSMesg definition and fix memory corruptions 2022-06-04 10:09:50 -05:00
padsetup.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
padutils.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
printutils.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
relocation.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
sched.c change OSMesg definition and fix memory corruptions 2022-06-04 10:09:50 -05:00
shrink_window.c #243 Add option to disable black bars letterboxes (#376) 2022-06-11 12:07:13 -04:00
sleep.c change OSMesg definition and fix memory corruptions 2022-06-04 10:09:50 -05:00
speed_meter.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
sys_cfb.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
sys_math.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
sys_math3d.c Fix cylinder-tri intersection for GCC due to FLT_EVAL_METHOD (#157) 2022-04-17 11:19:45 -04:00
sys_math_atan.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
sys_matrix.c Experimental interpolation (#309) 2022-05-13 18:43:55 -04:00
sys_ucode.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
system_malloc.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
title_setup.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
ucode_disas.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z_DLF.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z_actor.c ADDED: Draw Distance toggle under Experimental enhancement + Bugfix (#398) 2022-06-08 18:00:10 -04:00
z_actor_dlftbls.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z_bgcheck.c Added fixes based on the reviews 2022-06-19 02:03:04 -05:00
z_camera.c Add checkbox to make holding the D-pad act like holding the joystick on the file and pause screens (#454) 2022-06-19 00:09:31 -04:00
z_camera_data.inc Linux/GCC Support (#28) 2022-05-11 13:18:24 -04:00
z_cheap_proc.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z_collision_btltbls.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z_collision_check.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z_common_data.c Versioned saves (#423) 2022-06-20 13:41:43 -04:00
z_construct.c Fix random crash in z_construct 2022-04-25 19:21:00 -04:00
z_debug.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z_debug_display.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z_demo.c Linux/GCC Support (#28) 2022-05-11 13:18:24 -04:00
z_draw.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z_eff_blure.c Experimental interpolation (#309) 2022-05-13 18:43:55 -04:00
z_eff_shield_particle.c Experimental interpolation (#309) 2022-05-13 18:43:55 -04:00
z_eff_spark.c Experimental interpolation (#309) 2022-05-13 18:43:55 -04:00
z_eff_ss_dead.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z_effect.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z_effect_soft_sprite.c Experimental interpolation (#309) 2022-05-13 18:43:55 -04:00
z_effect_soft_sprite_dlftbls.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z_effect_soft_sprite_old_init.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z_elf_message.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z_en_a_keep.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z_en_item00.c Stop the dropped item despawn timer on demand (#382) 2022-06-09 17:28:58 -04:00
z_face_reaction.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z_fbdemo.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z_fbdemo_circle.c Linux/GCC Support (#28) 2022-05-11 13:18:24 -04:00
z_fbdemo_fade.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z_fbdemo_triforce.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z_fbdemo_wipe1.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z_fcurve_data_skelanime.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z_frame_advance.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z_game_dlftbls.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z_game_over.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z_horse.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z_jpeg.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z_kaleido_manager.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z_kaleido_scope_call.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z_kaleido_setup.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z_kanfont.c Fixed oob crashes on 64 bit 2022-05-31 00:29:14 -05:00
z_kankyo.c Fixed resample and corrupt audio bug. Minor documentation updates. 2022-06-16 20:35:52 -04:00
z_lib.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z_lifemeter.c change OSMesg definition and fix memory corruptions 2022-06-04 10:09:50 -05:00
z_lights.c Experimental interpolation (#309) 2022-05-13 18:43:55 -04:00
z_malloc.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z_map_data.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z_map_exp.c Unfix dungeon map icon when bugfix CVar is off (#455) 2022-06-11 12:13:09 -04:00
z_map_mark.c [Mod]HUD Editor - Color Scheme incl. N64 colors. (#202) 2022-05-21 13:16:28 -04:00
z_message_PAL.c Merge develop into zelda64 2022-05-31 17:49:39 -05:00
z_moji.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z_msgevent.c change OSMesg definition and fix memory corruptions 2022-06-04 10:09:50 -05:00
z_olib.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z_onepointdemo.c Save states (#300) 2022-05-12 13:28:24 -04:00
z_onepointdemo_data.inc Save states (#300) 2022-05-12 13:28:24 -04:00
z_parameter.c Merge branch 'develop' into zelda64 2022-06-13 10:18:38 -05:00
z_path.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z_play.c Merge branch 'develop' into zelda64 2022-06-21 19:27:46 -04:00
z_player_call.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z_player_lib.c Merge branch 'develop' into z64-devmerge 2022-06-17 00:39:07 -04:00
z_prenmi.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z_prenmi_buff.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z_quake.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z_rcp.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z_room.c change OSMesg definition and fix memory corruptions 2022-06-04 10:09:50 -05:00
z_sample.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z_scene.c 64-bit early draft - no audio yet 2022-05-15 01:19:02 +02:00
z_scene_table.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z_skelanime.c 64-bit early draft - no audio yet 2022-05-15 01:19:02 +02:00
z_skin.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z_skin_awb.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z_skin_matrix.c Experimental interpolation (#309) 2022-05-13 18:43:55 -04:00
z_sound_source.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z_sram.c Versioned saves (#423) 2022-06-20 13:41:43 -04:00
z_ss_sram.c Added save filename and path to config file (#130) 2022-06-20 13:54:44 -04:00
z_view.c Experimental interpolation (#309) 2022-05-13 18:43:55 -04:00
z_vimode.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z_vismono.c Linux/GCC Support (#28) 2022-05-11 13:18:24 -04:00
z_vr_box.c Don't copy skybox textures (#129) 2022-04-02 19:57:20 +02:00
z_vr_box_draw.c Experimental interpolation (#309) 2022-05-13 18:43:55 -04:00