Commit Graph

4238 Commits

Author SHA1 Message Date
comex
7c54aff4d4 build: portability fixes
- Invoke Python scripts with `python3` if `python` is not available.

  Despite SciresM preferring Python 2, the scripts used in the build all
  worked in Python 3 already, so this is just a Makefile change.

- Export `MAKE` to work around a GNU bug.

  See the comment for details.

- `rmdir --ignore-fail-on-non-empty` -> `rmdir 2>/dev/null`

  macOS `rmdir` doesn't support `--ignore-fail-on-non-empty`.

  This is a slight downgrade in functionality, because now we ignore all
  errors from `rmdir` rather than just 'Directory not empty'.  I could
  have avoided this with a more complicated fix, but the benefit strikes
  me as not worth the complexity.  Let me know if you disagree.

- Append `$(DEVKITPRO)/tools/bin/` to `$PATH` when invoking
  `build_romfs`.

  This avoids the need to add devkitPro directories to `$PATH` when
  building Atmosphere.

  If you already have `build_romfs` in your PATH, then that will still
  take precedence.  (This seemed like the nicer option, though I don't
  have strong opinions.)
2025-09-12 19:10:47 +02:00
comex
e42f7c1ee2 nanovg: disable some compiler warnings
Disable all warnings seen on devkitA64 GCC 15.1.0:

- Several false-positive `-Wmisleading-indentation` warnings (the
  indentation is not actually misleading)

- One `-Wuse-after-free` warning, which looks alarming and represents
  very dubious design, but is ultimately harmless (a freed pointer is
  passed to a function that doesn't use it).

- Some `-Wunused-function` warnings in `simd/neon.h`
2025-09-12 19:10:47 +02:00
comex
25c423203d daybreak: fix strncpy compiler warning
GCC warned that the output string would not be nul-terminated if the
input string was too long.  Fix this by subtracting 1 from the size
argument, as is done for other `strncpy` calls in the file.  (It would
probably be better to avoid `strncpy` entirely, but this is just a
simple fix.)
2025-09-12 19:10:47 +02:00
comex
e9147d8e1d haze: fix duplicate-macro warnings
haze was including both `<switch.h>` and `vapours/types.hpp` which both
define `R_SUCCEEDED` and `R_FAILED`, producing compiler warnings.

The intent is that `vapours/types.hpp` only gets included when targeting
not-Switch and/or not-EL0.  But the check didn't account for
Troposphère.  Fix that.
2025-09-12 19:10:47 +02:00
Michael Scire
412b11451d ams: bump version, support 20.3.0 2025-09-12 19:09:13 +02:00
Michael Scire
dba25b2c85 fs.mitm: steal some heap when building romfs for kotor2 (closes #2564) 2025-09-12 19:09:12 +02:00
Michael Scire
2bbef1e64f ams: bump version, add 1.9.2 changelog 2025-09-12 19:09:12 +02:00
Michael Scire
9cde2f57fa ams: add enum version support for 20.1.x/20.2.0 2025-09-12 19:09:12 +02:00
lulle2007200
e2ef4cf207 git subrepo push emummc
subrepo:
  subdir:   "emummc"
  merged:   "2d7e66d20"
upstream:
  origin:   "git@github.com:lulle2007200/emuMMC.git"
  branch:   "internal-emummc"
  commit:   "2d7e66d20"
git-subrepo:
  version:  "0.4.9"
  origin:   "https://github.com/ingydotnet/git-subrepo.git"
  commit:   "30db3b8"
2025-06-14 22:41:56 +02:00
lsp199308
4a83cd0403 loader: add usb 3.0 enable patches for 20.1.0 (#2556)
* loader: add usb 3.0 enable patches for 20.1.0
2025-06-14 21:07:38 +02:00
Michael Scire
8d4a7d21a9 git subrepo push libraries
subrepo:
  subdir:   "libraries"
  merged:   "0f72b2ceb"
upstream:
  origin:   "https://github.com/Atmosphere-NX/Atmosphere-libs"
  branch:   "master"
  commit:   "0f72b2ceb"
git-subrepo:
  version:  "0.4.1"
  origin:   "???"
  commit:   "???"
2025-06-14 21:07:38 +02:00
Michael Scire
3efd3ff98c docs: add basic changelog for 1.9.1 2025-06-14 21:07:23 +02:00
Marcus Carter
e343e6b93c Clarify that code type 0xC4 uses a 64-bit value in cheats.md by formatting the key values as such
Changes the formatting of the key values at `Code Type 0xC4: Begin Extended Keypress Conditional Block` in cheats.md so that it is perfectly clear that those values are 64-bit values rather than 32-bit or 28-bit like `Code Type 0x8: Begin Keypress Conditional Block`, and also for the fact that the formatting matches the rest of the document and is thus cleaner.
2025-06-14 21:07:23 +02:00
Michael Scire
f1fe491bcf emummc: note 20.1.0 support in README 2025-06-14 21:07:06 +02:00
Michael Scire
8adaf8dc79 kern: move spendsgir static assert 2025-06-14 21:07:06 +02:00
Michael Scire
cb0ad3aaf3 fusee/emummc: add support for FS 20.1.0 2025-06-14 21:07:06 +02:00
Michael Scire
ad92c908c4 erpt: update IDs for 20.1.0 2025-06-14 21:06:09 +02:00
Michael Scire
b3dcb7d590 kern: save/restore spendsgir in KInterruptController::Save/RestoreCoreLocal 2025-06-14 21:06:09 +02:00
Michael Scire
8665036092 kern: wait 100us after synchronizing cores before saving interrupt state on sleep 2025-06-14 21:06:09 +02:00
Michael Scire
50956fce6f kern: use KLightLock for KCoreBarrierInterruptHandler 2025-06-14 21:06:09 +02:00
Michael Scire
99136146dd Add version enums for 20.1.0 2025-06-14 21:06:09 +02:00
Michael Scire
b9024a89e2 docs: add banner to readme 2025-06-14 21:06:08 +02:00
lulle2007200
52d0e89f01 git subrepo push emummc
subrepo:
  subdir:   "emummc"
  merged:   "93cea0388"
upstream:
  origin:   "git@github.com:lulle2007200/emuMMC.git"
  branch:   "internal-emummc"
  commit:   "93cea0388"
git-subrepo:
  version:  "0.4.9"
  origin:   "https://github.com/ingydotnet/git-subrepo.git"
  commit:   "30db3b8"
2025-05-22 23:07:03 +02:00
Christoph Baumann
8c11b287ff fix strcat 2025-05-22 22:50:17 +02:00
Christoph Baumann
63a12453f3 fix memory mode 2025-05-22 22:50:11 +02:00
Christoph Baumann
2d20e9af5a add partition checks 2025-05-22 14:42:55 +02:00
Christoph Baumann
8254e56b58 fix MountSd check 2025-05-22 13:34:20 +02:00
Christoph Baumann
5468af8934 reset active partition cache when deinit 2025-05-22 12:28:07 +02:00
Christoph Baumann
941a624642 Use SD card if emusd disabled 2025-05-22 12:24:18 +02:00
Christoph Baumann
6cff5a41b4 indentation 2025-05-22 12:23:27 +02:00
Christoph Baumann
11d32ec78f Only deinit if necessary 2025-05-22 12:22:32 +02:00
Christoph Baumann
3c290caac1 fatal code for flush fail 2025-05-22 01:38:31 +02:00
Christoph Baumann
5fe0d8d2a4 dont close file based emusd files when SD is closed, only flush 2025-05-22 01:38:21 +02:00
Christoph Baumann
ede1fba59e more logging, fix emmc/sd mount logic 2025-05-22 00:46:09 +02:00
lulle2007200
03af482a20 git subrepo push emummc
subrepo:
  subdir:   "emummc"
  merged:   "bd802597e"
upstream:
  origin:   "git@github.com:lulle2007200/emuMMC.git"
  branch:   "internal-emummc"
  commit:   "bd802597e"
git-subrepo:
  version:  "0.4.9"
  origin:   "https://github.com/ingydotnet/git-subrepo.git"
  commit:   "30db3b8"
2025-05-21 21:18:45 +02:00
Christoph Baumann
42943c467e change remote 2025-05-21 21:12:20 +02:00
Christoph Baumann
c2691d917c add logging 2025-05-21 21:05:38 +02:00
Christoph Baumann
7c86c4c047 only init file based if necessary 2025-05-21 21:03:17 +02:00
lulle2007200
d2358b5631 git subrepo pull --branch=internal-emummc --force emummc
subrepo:
  subdir:   "emummc"
  merged:   "a12c41ae7"
upstream:
  origin:   "https://github.com/lulle2007200/emuMMC.git"
  branch:   "internal-emummc"
  commit:   "a12c41ae7"
git-subrepo:
  version:  "0.4.9"
  origin:   "https://github.com/ingydotnet/git-subrepo.git"
  commit:   "30db3b8"
2025-05-21 20:28:32 +02:00
Christoph Baumann
ae849ca642 fix version mismatch check 2025-05-21 19:21:50 +02:00
Christoph Baumann
5f15a2c15b fix debug logs 2025-05-21 19:21:00 +02:00
Christoph Baumann
e26b05bb45 add memory_mode_auto config to exosphere.ini template 2025-05-21 16:54:46 +02:00
Christoph Baumann
5819f3a830 add exosphere.ini option to determine memory mode from physical memory instead of boot config 2025-05-21 01:17:18 +02:00
Christoph Baumann
77a01f0a9b allow emmc writes (to write warmboot to emusd), allow unaligned emmc writes 2025-05-20 23:52:02 +02:00
Christoph Baumann
b301bba5e7 support file based/sd partition emusd 2025-05-20 20:57:35 +02:00
Christoph Baumann
178c833862 forgot to init m_file_size 2025-05-20 20:53:58 +02:00
Christoph Baumann
7584ec3060 support file based/sd partition emusd configs 2025-05-20 20:38:41 +02:00
Christoph Baumann
b543194688 support file based/sd partition based emusd 2025-05-20 20:18:39 +02:00
Christoph Baumann
6f3f468a5b fusee: read from emuSD, if enabled 2025-05-15 13:32:40 +02:00
lulle2007200
40bb434a64 git subrepo pull --force emummc
subrepo:
  subdir:   "emummc"
  merged:   "2fc47cbb8"
upstream:
  origin:   "https://github.com/lulle2007200/emuMMC.git"
  branch:   "develop"
  commit:   "2fc47cbb8"
git-subrepo:
  version:  "0.4.9"
  origin:   "https://github.com/ingydotnet/git-subrepo.git"
  commit:   "30db3b8"
2025-05-13 17:18:28 +02:00