Commit Graph
22 Commits
Author SHA1 Message Date
ArchezandGitHub aee78ab0fd Update github actions and images (#678) 2024-10-09 21:07:14 -04:00
briaguyaandGitHub 61c8860dcc ci: bump tidy upload-artifact version (#672) 2024-09-13 11:44:07 -04:00
briaguyaandGitHub 5b67a45fc4 spdlog from package managers (#536)
* spdlog from package managers

* move deps to files

* missed a spot

* need to checkout first for this to work

* there too

* hmm...

* explicitly include

* we really were relying on that huh?

* why can't it figure out what std min is?

* windows..........................

* none of this makes sense

* windows headers are terrible

* why would windows do that?

* don't use the windows max macro

* try putting it with the other ones

* clang format

* add a fetch content

* include fetchcontent at the top of the deps files

* bump ios spdlog version
2024-04-30 17:56:47 -04:00
briaguyaandGitHub c63e1b40a6 ci: improve caching for faster builds (#534)
* does this work?

* try sccache

* try some other things

* try the symlink

* worth a shot

* dir name

* more windows speedup

* maybe this?

* a

* see if that speeds windows up

* this might break things but it's worth a shot

* a

* this'll probably just break
2024-04-30 17:09:22 -04:00
briaguyaandGitHub 6c375a8b5e get tinyxml from package manager (#514) 2024-04-29 22:39:58 -04:00
briaguyaandGitHub ff5acbfd88 ci: use restore-keys to handle ccache better (#533)
* ci: use restore-keys to handle ccache better

* use different cache for mac vs ios
2024-04-29 22:20:11 -04:00
LywxandGitHub a245aaf975 Added ios support (#491) 2024-04-28 00:15:13 -04:00
briaguyaandGitHub 85f6de497f nlohmann from package manager (#511) 2024-04-25 11:57:33 -04:00
briaguyaandGitHub be3a87eefc o2r zip (#450)
* start refactoring, legacy load still working

* account for path in meta file

* meta

* clang format

* zip stuff

* clang format

* remove a space

* libzip

* zipcmp

* zipmerge

* ziptool

* do it in tidyformat too

* merge?

* call it

* open/close as names

* error thing

* auto

* fix build

* indexfile
2024-02-19 15:40:29 -05:00
briaguyaandGitHub 07fc296b05 ci: build on push to all branches (#364) 2023-11-06 22:13:52 -05:00
briaguyaandGitHub e2545c0122 [ci] silently continue when trying to delete ccache.exe if it doesn't exist (#349) 2023-09-23 10:07:41 -04:00
Adam BirdandGitHub da6aa0acc5 fix: override gh default VCPKG_ROOT so auto update works (#302) 2023-06-04 13:30:00 -04:00
Kenix3andGitHub 566a455b11 Moves files around and renames Mercury -> Config (#263)
* Moves some files around. (#262)

* misc -> utils and moves BinaryTools to utils.

* Adds Window directory and moves Window and Gui to it.

* Fixes mac build and removes unused LUSMacros.h

* Further Mac fixes.

* Moves files out of core.

* Mercury -> Config

* Runs clang-format

* Addresses clang-tidy
2023-05-19 00:46:03 -04:00
Kenix3andGitHub d63e527423 Removes all lingering references to SoH from LUS (#190)
* Removes all lingering references to SoH from LUS

* Adds mShortName to Window which stores a shorter version for file paths.

* Runs clang-format

* Fixes mac errors.

* Fixes Linux build errors

* Exclude custom spdlog syncs from clang-tidy.
2023-05-03 00:26:15 -04:00
Kenix3andGitHub 714c46c445 Moves libultraship headers to the 'libultraship' directory. (#47)
* GitHub build validation only does push checks on the main branch now.

* Fixes forward declaration in Archive.h for OtrFile.

* Moves libultraship headers to the 'libultraship' directory.
2022-11-22 21:53:47 -05:00
Kenix3andGitHub 85254518ed Adds C bridges to LUS C++ code to their own files. Additionally organizes headers for more organic includes. (#29)
* Removes unused extern definition for __osMaxControllers in SDLController.cpp

* Moves libultraship functions to their own files.

* Headers are now moved to include and adds bridge functions for basic LUS functionality.

* Updates PulseAudioPlayer to have our naming convenstions and runs clang-format.

* Updates clang-tidy headers.

* Moves GameOverlay to menu directory.

* Fixing naming conventions in PulseAudioPlayer.

* Fixes clang-tidy errors in ResourceMgr.

* Fixes include of GameOverlay.h

* GameOverlay screen dimensions are now protected access.

* Fixes gbi.h includes.

* AudioPlayer.doInit -> AudioPlayer.DoInit

* Excluding os.h from clang-tidy

* Include stddef.h in libultraship.h for size_t

* Includes studded.h in AudioPlayer.h for size_t

* Includes stddef.h in audioplayerbridge.h for size_t

* Removes unnecessary includes in LUS.h

* Libultra types now includes stddef which brings a long size_t for all platforms.
2022-11-17 07:57:16 -05:00
9462f8fb21 soh build fixes (#14)
* changes needed to run `ExtractAssets`

* soh build stuff

* Make some things public

* dcvz changes

* More fixes

* fix pulseaudio

* windows static lib stuff

* fix soh build on windows

* Don’t require Threads for Wii U

* Wii U specific changes to upstream StormLib

* Fix up storm linking

* Add Wii U additions to spdlog

* More Wii U updates to libultraship

* Wii U specific import fixes

* LUS Wii U fixes

* STBI_NO_THREAD_LOCALS for Wii U

* Disable threads for Wii U

* Fixes OTR loading (tested in SoH)

Previously it was failing with a file not found error on SFileOpenArchive,
for some reason removing `UNICODE` and `_UNICODE` from the compile definitions
of libultraship fixes it. It also fixes the issue of OTRExporter outputting
an OTR with only the first character of the filename present. (Said OTR was
still valid though, despite the odd name. Fixed by this regardless).

* Re-adds missing Debug/Release cmake config and fixes Typos

This re-enables debugging libultraship files on Windows. Also fixes some
typos that previously weren't being compiled due to the missing
Debug/Release configuration.

* Consolidates compiler and linker flags in cmake.

Several compiler options were duplicated across different systems
unnecessarily. For example Windows "x64" and "Win32" were very nearly
identical already, and the couple of differences didn't make much sense.
We were passing /std:c++latest, but only to x64 Release. I just removed
that one altogether since we already set `PROPERTY CXX_STANDARD 20`
at the top of the file. We were also passing `/W3` regardless of configuration
on "x64", but on "Win32" we were passing `/W2` to Debug and `/W3` to Release.
If there's a reason for that let me know and it can be re-introduced.

* Embed STB into LUS

* Fixes Switch builds. (#4)

* Restricts the stormlib compile definition change to switch (#5)

* make tidy happy?

* actually make tidy happy

* checkout v3?

* remove commented out lines from cmakelists

* fontData not font_data

* suppress error

* add a space

Co-authored-by: briaguya <briaguya@alice>
Co-authored-by: David Chavez <david@dcvz.io>
Co-authored-by: Christopher Leggett <chris@leggett.dev>
Co-authored-by: David Chavez <davi@dcvz.io>
Co-authored-by: briaguya <briaguya>
2022-11-13 17:19:22 -05:00
David ChavezandKenix3 c75c6b3021 [ci] Allow safely publishing tidy PR comments from forks 2022-11-13 16:54:52 -05:00
Kenix 40ccbf6f2e LUS now consistently names code in C++ classes. 2022-11-07 00:03:59 -05:00
Kenix 44cec68448 Updates clang-tidy to enforce variable naming conventions. 2022-11-07 00:03:59 -05:00
Kenix 404ce30357 Fixes build validation and adds vcpkg auto download to README 2022-11-03 21:24:49 -04:00
2aecab6840 Standalone build (#9)
* Organizes libultraship files into directories.

* Adds StormLib, ZAPDUTILS, and tidies up /lib/

* Moves include up a directory and moves abi.h to include.

* Fixes gitignore to only ignore build folders, and commits forgotten files.

* update CMakeLists and `#include`s to match directory structure

* Windows CMake now builds project files.

* Restructure CMake project

* feat: sdl via vcpkg (#1)

Co-authored-by: briaguya <briaguya@alice>

* Build via VS generator

* Use ccache for faster building

* Error CI workflow on no lib generated

* Remove unused lib (mINI)

* Update embedded lib (nlohmann-json)

* Cleanup main CMakeLists.txt

* Remove unecessary header

* Use Ninja for MSVC

* Update embedded lib (spdlog)

* Update embedded lib (StormLib)

* Improve CMake structure

* define NOMINMAX for certain windows files

* Add and run clang-format

* Add and run clang-tidy

* Add CI workflow for clang-format/tidy

* Split CI workflows

* Use new format validation

* Fixes typos preventing patch OTRs from working on Switch (#8)

* Removes third party BinaryTools and re-implements and reloacates ZAPDUtils Binary Tools. (#7)

* Removes third party BinaryTools and implements ZAPDUtils' into LUS.

* Attempts to make the Linter happy.

* Another run of linter fixing improvements.

* Should be last linting-related change.

* Fixes tidy-format-validation to only check src and include directories in the git diff

Co-authored-by: briaguya <briaguya@alice>
Co-authored-by: David Chavez <david@dcvz.io>
Co-authored-by: briaguya <70942617+briaguya-ai@users.noreply.github.com>
Co-authored-by: Christopher Leggett <chris@leggett.dev>
2022-11-03 18:26:17 -04:00