Michael Scire
45700a12e8
libstrat/sm: add ScopedServiceHolder, Wait(Mitm/Service)
2019-07-02 22:21:18 -07:00
Michael Scire
d7d7cba3d3
title ids: go all in on ncm::TitleId
2019-07-02 20:53:44 -07:00
Michael Scire
c9dc24cce1
libstrat: remove sizeof() /sizeof([0])
2019-07-02 14:36:34 -07:00
Michael Scire
7bc25c01a0
libstrat: update for pm rewrite
2019-06-29 02:18:57 -07:00
Michael Scire
403f1c7a01
patcher: fix memcmp bug.
2019-06-27 20:51:23 -07:00
Michael Scire
e37089d167
libstrat: implement functionality for loader rewrite
2019-06-26 15:45:35 -07:00
Michael Scire
cf5c6cdad9
libstrat: integrate sm API, add HasService/HasMitm.
2019-06-24 17:56:00 -07:00
Michael Scire
bbb689cecf
libstratosphere: add ini parsing, LZ4 compression.
2019-06-24 14:41:04 -07:00
Michael Scire
269765a3bc
StratosphereRandomUtils --> sts::rnd
2019-06-24 11:20:27 -07:00
Michael Scire
1d81da1230
add map, patcher, ro to sts.
2019-06-24 02:05:08 -07:00
Michael Scire
f575d06446
updater: move into libstrat
2019-06-22 12:30:08 -07:00
Michael Scire
ca344e1d19
Move spl api/smc impls into libstratosphere
2019-06-22 12:23:10 -07:00
Michael Scire
4ccee42577
libstrat: prefer static waitable managers
2019-06-20 13:14:15 -07:00
Michael Scire
59b49c0e0c
libstrat: remove trailing whitespace
2019-06-20 12:59:48 -07:00
Michael Scire
4a120c3c16
libstrat: refactor for R_TRY
2019-06-20 05:01:24 -07:00
Michael Scire
7e0ed3b38f
Update firmware version, add loader result
2019-06-19 11:51:00 -07:00
Michael Scire
281534d9f8
Add FirmwareVersion 8.1.0 support
2019-06-18 23:49:09 -07:00
Michael Scire
afcd075354
libstrat: revise emummc utility accessors
2019-06-14 21:19:51 -07:00
Mat M
d9f931486f
firmware_version: Add missing break in SetFirmwareVersionForLibnx() ( #11 )
...
A break was left out when updating the switch to add firmware version
8.0.0
2019-06-04 12:26:31 -07:00
Adubbz
8f2328975a
Added GetRandomBytes ( #10 )
2019-05-10 05:36:18 -07:00
Michael Scire
9dfe7709d9
Atmosphere: improve fatal error context
2019-04-26 07:25:03 -07:00
Michael Scire
79bc9bf8d8
libstrat: only hold sm sessions open when needed
2019-04-22 12:40:35 -07:00
Michael Scire
880bce9092
libstrat: add StratosphereRandomUtils
2019-04-20 16:52:50 -07:00
Michael Scire
163d9259a3
Update Runtime Firmware Version stuff for 8.0
2019-04-18 00:16:07 -07:00
Michael Scire
b9724cdcad
libstrat: Custom exception handlers/std::abort
2019-04-12 15:26:27 -07:00
Michael Scire
1f9e2d042c
libstrat: the current year is 2019
2019-04-07 18:56:40 -07:00
Michael Scire
5a3583d79d
libstrat: 0 -> ResultSuccess
2019-03-28 22:37:39 -07:00
Michael Scire
8d15f82a9b
results: Add unofficial atmosphere results header
2019-03-28 20:19:01 -07:00
WerWolv
990e465b17
Fixed copy paste error that broke dmntchtEnableFrozenAddress
2019-03-05 18:40:16 +01:00
Michael Scire
82c67a62d6
libstrat: add full dmnt:cht client code
2019-03-05 00:47:00 -08:00
Michael Scire
3de9d6c9d6
Update for new libnx HOSVERSION API
2019-02-20 14:14:02 -08:00
Michael Scire
fb12edcbba
use svcCallSecureMonitor instead of talking to spl.
2019-01-31 03:23:28 -08:00
Michael Scire
2f1fa654f2
Revise firmware version detection to use Exosphere's targetfirmware field
2019-01-31 03:07:24 -08:00
Michael Scire
236190f8a3
mitm-server: simplify logic, eliminate deadlock possibility
2019-01-26 06:22:18 -08:00
Michael Scire
dd31b3d2e2
smm_ams: fix typo
2018-11-30 00:52:03 -08:00
Michael Scire
8fbefee37e
smm_ams: Add HasMitm extension
2018-11-30 00:50:45 -08:00
Michael Scire
8fcac73ab2
Greatly improve mitm session acquire semantics.
2018-11-15 14:18:52 -08:00
Michael Scire
39ce397017
libstratosphere: Implement message queues
2018-11-07 23:25:00 -08:00
Michael Scire
772f20b703
libstratosphere: refactor everything
2018-10-31 05:04:00 +09:00
hexkyz
5cecc78d51
Add and fix copyright notices for better GPL compliance (thanks @naehrwert and @CTCaer).
2018-09-07 16:00:13 +01:00
Léo Lam
f4212ff213
stratosphere: Use RAII for locks
...
This renames the Mutex class member functions so that the mutex types
satisfy Lockable.
This makes them usable with standard std::scoped_lock
and std::unique_lock, which lets us use RAII and avoids the need
for a custom RAII wrapper :)
2018-07-10 09:38:18 -07:00
Tony Wasserka
1b356cd4f2
Modernize C++ usage ( #144 )
...
* Stratosphere: Use modern C++ idioms in some places
* algorithms like std::for_each are used instead of raw loops
* Stratosphere: Replace more raw loops with algorithms
* Stratosphere: Add a utility predicate function to test for equality with a reference element
This can be used to rewrite some common raw loops using algorithms instead
* fs.mitm: Use variant
* fs.mitm: Use enum class
* fs.mitm: Turn RomFSSourceInfo::Cleanup into a destructor
This obsoletes the need for a custom deleter in other places
* fs.mitm: Use enum class some more
* fs.mitm: Use unique_ptr
* fs.mitm: Simplify initialization
* Stratosphere: Simplify initialization
* fs.mitm: Use unique_ptr (fix memory leak along the way)
The previous code was using "delete" rather than "delete[]"
* fs.mitm: Use vector::emplace_back rather than push_back
emplace_back constructs elements in-place, hence avoiding a redundant element copy.
* Stratosphere: Replace more raw loops with algorithms
* Stratosphere: Use unique_ptr
* fs.mitm: Replace more raw loops with algorithms
* Stratosphere: Prefer move-construction over copy-construction when moving sink parameters around
2018-06-19 11:07:31 -07:00
Michael Scire
51edf0fde9
PM: Fix remaining issues, now works properly again.
2018-06-15 00:47:07 -06:00
Michael Scire
26e676424d
fs.mitm: WIP LayeredFS impl (NOTE: UNUSABLE ATM)
...
Also greatly refactors libstratosphere, and does a lot of other things.
There is a lot of code in this one.
2018-06-14 17:51:18 -06:00
Michael Scire
cd5da88405
libstratosphere/fs.mitm: Push WIP support for Domains. Not yet fully working.
2018-06-12 16:01:04 -06:00
Michael Scire
b657d4adb5
ProcessManager: Implement core process management logic.
2018-05-03 23:58:37 -06:00
Michael Scire
0351b32b27
Stratosphere: Fix remaining bugs in sm, which now works as a KIP1 on hardware
2018-04-30 22:27:26 -06:00
Michael Scire
309a4607dd
Stratosphere: Fix IServer constructors. SM is fully functional on hardware now.
2018-04-22 05:13:33 -06:00
Michael Scire
d772b823c6
Stratosphere: Implement support for deferred commands. Finish sm GetService()'s deferred path.
2018-04-22 03:02:19 -06:00
Michael Scire
5a8df9f128
Stratosphere: extract common code to libstratosphere.
2018-04-21 20:31:06 -06:00