Michael Scire
a3adb70a04
stratosphere: version detect via svcCallSecureMonitor
2019-01-31 03:24:19 -08:00
Michael Scire
bdfd7946e3
ldr:ro: Correct LoadNrrEx definition, unimpl'd for now
2019-01-30 21:55:04 -08:00
Michael Scire
f78fd29e38
Add basic support to fusee for multiple tsec_root_keys.
2019-01-30 21:53:37 -08:00
natinusala
da0d22f05a
loader: add 'override any app' feature
2019-01-22 05:38:27 -08:00
misson20000
35cf3b65a3
loader/ECS: don't clear ECS on failure, add ClearExternalContentSource command
2019-01-22 05:38:27 -08:00
SciresM
ab33329129
Merge pull request #266 from Atmosphere-NX/fatal
...
Implement custom fatal sysmodule.
2018-11-29 12:04:40 -08:00
Michael Scire
ac391d9c5e
Loader: always redirect sysmodules.
2018-11-15 14:48:18 -08:00
Michael Scire
2838e41819
Add defines for atmosphere git revision.
2018-11-13 12:42:35 -08:00
Michael Scire
ce1a6a68bf
fs.mitm/loader: Fix crashes when launching too many processes.
2018-11-08 16:02:04 -08:00
Michael Scire
54a22797a7
Make libstratosphere a submodule
2018-11-08 01:24:40 -08:00
SciresM
b8f93562c0
Merge branch 'master' into npdmfixup
2018-10-31 18:02:07 +09:00
Michael Scire
6ef34d80a0
libstrat: automatically detect+format rawdata structs correctly.
2018-10-31 05:04:00 +09:00
Michael Scire
c49cfbd6af
loader: update for libstratosphere refactor
2018-10-31 05:04:00 +09:00
misson20000
5c147e5188
loader: add SetExternalContentSource extension
2018-10-29 07:11:16 +09:00
misson20000
18f51e9b2e
loader: add NpdmUtils function for invalidating the cache for a specific title
2018-10-29 07:11:16 +09:00
misson20000
376feb63bd
loader: make ShouldOverrideContents take a tid argument
2018-10-29 07:11:16 +09:00
Michael Scire
db97dd8d75
Loader: clean up orphaned function prototype
2018-10-22 22:56:26 -07:00
Michael Scire
f96e1d5074
loader/fs.mitm: Support override config changes at runtime
2018-10-22 22:53:40 -07:00
Michael Scire
55ad57a02d
fs.mitm: Use same override button semantics as loader.
2018-10-16 19:01:41 -07:00
Michael Scire
6711cd93a8
atmosphere: extract API version management to common folder
2018-10-16 17:54:50 -07:00
Michael Scire
20faa7f00b
Loader: fix automatic apptype patching.
2018-10-05 09:13:00 -07:00
roblabla
0938057d67
Use new npdm-json format
2018-09-29 02:37:25 +00:00
Michael Scire
532b4f4de2
Loader: Fix HBL pool partition ID copy
2018-09-19 16:30:11 -07:00
Michael Scire
6afbcd12d9
Loader: Button override + first-class HBL support
2018-09-19 16:21:46 -07:00
hexkyz
28e4d4411d
Add and fix copyright notices for better GPL compliance (thanks @naehrwert and @CTCaer).
2018-09-07 16:00:13 +01:00
SciresM
bb0f3ac024
loader: Add support for 6.0.0.
2018-09-06 11:57:57 +09:00
Michael Scire
cb4089e49c
Stratosphere: use isxdigit to check if char is hex.
2018-07-29 17:27:30 -07:00
Michael Scire
c547ed50aa
Loader: Fix exefs nsp support. Works on hardware.
2018-07-29 16:45:29 -07:00
Michael Scire
3a2520a3b7
Loader: Add support for exefs redirection to code nsp on SD.
2018-07-29 16:35:43 -07:00
Michael Scire
44e2412ae6
Loader: Change ips patch location to ease patch distribution
2018-07-29 11:27:19 -07:00
Michael Scire
674a91db8c
Loader/ips: Fix more bugs, now works with simple test on hw.
2018-07-28 21:06:50 -07:00
Michael Scire
08275240c6
Loader/ips: fix compile error
2018-07-28 20:41:13 -07:00
Michael Scire
75916001a2
Loader: Fix IPS edge condition, change ips location
2018-07-28 20:36:30 -07:00
Michael Scire
0f5f3c2ad0
Loader: Implement IPS/IPS32 patching.
2018-07-28 20:28:17 -07:00
Michael Scire
c1fd2eda20
Loader: Skeleton IPS/IPS32 patching support.
2018-07-28 20:01:09 -07:00
Michael Scire
b365065a2d
Loader: Support loading FsStorageId_None content from SD.
2018-07-27 19:53:20 -07:00
Michael Scire
9d0d9d95e1
Stratosphere: Give more memory to SYSTEM, use less memory.
2018-07-27 01:44:34 -07:00
hexkyz
7836609839
Fix multiple issues reported by Coverity Scan
2018-07-26 18:45:18 +01:00
Michael Scire
dd4993dfda
Loader: Use HW-acceleration for SHA256
2018-07-24 01:26:37 -07:00
Léo Lam
e088a2f414
stratosphere: In-class initialize members
...
Same thing, less code, less boilerplate.
2018-07-10 09:38:18 -07:00
Michael Scire
bcf81fe957
Loader: Fix argument passing.
2018-06-24 21:39:05 -06:00
Tony Wasserka
ad636f7216
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
c2d9ac8f5c
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
237ff0d1e7
libstratosphere/fs.mitm: Push WIP support for Domains. Not yet fully working.
2018-06-12 16:01:04 -06:00
Michael Scire
c1c211f542
fs.mitm: Implement basic passthrough framework for input commands.
2018-06-09 19:33:22 -06:00
Tony Wasserka
edc099f026
Use "final" and "override" where appropriate ( #117 )
2018-06-02 22:46:27 -07:00
TuxSH
4e12d55993
loader, pm, sm: build kip as only taget (thanks @fincs !)
2018-05-15 02:28:41 +02:00
TuxSH
cae107557d
Fix the remaining warnings in stratosphère
2018-05-15 00:54:12 +02:00
hexkyz
3273cc5357
Merge pull request #84 from leoetlino/printf-format
...
ldr: Fix printf format string for size_t
2018-05-09 22:49:01 +01:00
Michael Scire
ba7d0c2cb6
Exosphere: Add API for retrieving versioning info.
2018-05-09 06:29:56 -06:00
Michael Scire
c800421a36
Loader: Fix char * const correctness.
2018-05-08 04:43:07 -06:00
Michael Scire
aa158dbb5a
Loader: Fix game update content loading, fix SD card mounting on newer firmwares. Closes #61 .
2018-05-08 02:59:18 -06:00
Michael Scire
b346c8f375
Fix minor bugs in loader/sm
2018-05-07 07:31:36 -06:00
Léo Lam
bd42514af0
ldr: Fix printf format string for size_t
...
%z should be used for size_t, otherwise the wrong value may be printed.
Fixes two -Wformat warnings.
2018-05-06 21:07:34 +02:00
Léo Lam
a097babe18
Replace std::make_tuple with simpler syntax ( #77 )
...
* boot2: Simplify g_additional_launch_programs
It appears that Stratosphère is targeting C++17. In C++17,
std::make_tuple is not required for initialisating a tuple anymore.
Same thing, but less typing
* Replace std::make_tuple with {}
More readable and less noise. Also fixes two missing return statements.
2018-05-05 11:41:39 -07:00
Léo Lam
999498c0a0
Stratosphère: Simplify some for loops ( #76 )
...
Simplifies some loops by removing the need to manually calculate or
re-specify the array size. Eliminates any chance of using the
wrong size and less typing.
2018-05-03 16:24:34 -07:00
Michael Scire
9e03852703
Loader: Fix bugs ldr:ro, Loader now works fully on hardware.
2018-05-02 01:39:24 -06:00
Michael Scire
e05f199394
Loader: Fix (all?) remaining bugs in ldr:pm.
...
Loader now works when booted as a KIP1. NOTE: ldr:ro still needs
debugging.
2018-05-01 16:49:20 -06:00
Michael Scire
4e1a29f618
Loader: Finish ldr:ro
2018-04-27 03:33:44 -06:00
Michael Scire
772e41971d
Loader: Add ldr:ro->LoadNro()
2018-04-27 03:17:18 -06:00
Michael Scire
e43c6df986
Loader: fix missing NULL assignment
2018-04-26 20:51:12 -06:00
Michael Scire
2e7b6de195
Loader: Automatically unload NRRs on service close.
2018-04-26 20:50:27 -06:00
Michael Scire
e7aa5c246b
Loader: Implement ldr:ro->UnloadNrr()
2018-04-26 20:37:38 -06:00
Michael Scire
8524f284fd
Loader: Implement ldr:ro->LoadNRR(). NOTE: No sigchecks, at the moment.
2018-04-26 20:27:52 -06:00
Michael Scire
789afe7929
Loader: fix missing reassignment in AutoCloseMap
2018-04-26 19:43:26 -06:00
Michael Scire
1d73bd0a12
Loader: Start work on LoadNRR, Add AutoCloseMap
2018-04-26 19:13:55 -06:00
Michael Scire
b34b9ba0e4
Loader: Greatly simplify mapping logic, add CodeMemory mapper.
2018-04-26 18:04:30 -06:00
Michael Scire
991357f309
Loader: Add NRRInfo to RegisteredProcess, refactor Registration::
2018-04-26 17:03:10 -06:00
Michael Scire
977a51edb0
Loader: Service ldr:ro on <= 2.3.0
2018-04-26 16:50:43 -06:00
Michael Scire
fe2f227dfc
Loader: Implement ldr:ro->Initialize()
2018-04-26 16:49:01 -06:00
Michael Scire
4f09c61bfa
Loader: Push ldr:ro stub.
2018-04-26 16:45:09 -06:00
Michael Scire
1ec3eb1ace
Loader: is_64_bit -> is_64_bit_addspace
2018-04-26 14:53:33 -06:00
Michael Scire
82d9728372
Loader: Save process->is_64_bit as prep for ldr:ro
2018-04-26 14:51:07 -06:00
Michael Scire
dba0d62ef7
Stratosphere: Add .jsons for loader, sm
2018-04-25 02:07:47 -06:00
Michael Scire
678bf5914a
Loader: Properly map BSS as rw.
2018-04-25 01:50:23 -06:00
Michael Scire
3e36e81e80
Loader: Fix bugs in CreateProcess(), which now succeeds on hardware (1.0.0)
2018-04-24 17:56:32 -06:00
Michael Scire
195528adc6
Loader: Fix type definitions in picosha2.hpp
2018-04-24 06:55:54 -06:00
Michael Scire
e443b625ec
Loader: Finish Loader::CreateProcess().
2018-04-24 06:52:13 -06:00
Michael Scire
ba90d0f250
Loader: Include picosha2 as a SHA256 generator.
2018-04-24 06:28:57 -06:00
Michael Scire
80fedc51c1
Loader: Implement all remaining parts of CreateProcess except LoadNsoSegment.
2018-04-24 06:25:31 -06:00
Michael Scire
ee9bfd514c
Loader: Implement argument passing.
2018-04-24 06:14:04 -06:00
Michael Scire
a96f862f11
Loader: Implement most of LoadNsosIntoProcessMemory
2018-04-24 06:01:32 -06:00
Michael Scire
d09c48c6c7
Loader: Implement RandomUtils (for ASLR)
2018-04-24 05:05:04 -06:00
Michael Scire
b11c2fe755
Loader: Implement NSO Extent calculation (note: ASLR currently disabled due to lack of entropy source.)
2018-04-24 04:41:29 -06:00
Michael Scire
6afd59d2a2
Loader: Implement mappable-region locating functions.
2018-04-24 03:53:10 -06:00
Michael Scire
5e5dd530c7
Clean up Nso fopen semantics
2018-04-24 03:14:40 -06:00
Michael Scire
1c47959bca
Loader: Call svcCreateProcess()
2018-04-24 02:12:19 -06:00
Michael Scire
2d6445d2f9
Loader: Implement InitializeProcessInfo()
2018-04-24 02:08:11 -06:00
Michael Scire
7227817b99
Loader: Fix off-by-one in SDK nso header loading.
2018-04-23 20:10:01 -06:00
Michael Scire
73b6225d2e
Loader: Add Nso Header loading, loadset validation in CreateProcess
2018-04-23 20:05:22 -06:00
Michael Scire
16439fd336
Loader: Fix KAC parsing infloop.
2018-04-23 18:29:23 -06:00
Michael Scire
5a7f9f10b1
Loader: Remove Kernel Caps parsing TODO.
2018-04-23 18:25:03 -06:00
Michael Scire
c9a40f358a
Loader: Implement Kernel Capability parsing/validation.
2018-04-23 18:24:02 -06:00
Michael Scire
0e11788e43
Stratosphere: Make TODOs for Loader::CreateProcess().
2018-04-23 13:34:32 -06:00
Michael Scire
674528b246
Stratosphere: Implement support for deferred commands. Finish sm GetService()'s deferred path.
2018-04-22 03:02:19 -06:00
Michael Scire
7dc5a5914b
Stratosphere: Move boost/callable_traits into libstratosphere
2018-04-21 21:15:54 -06:00
Michael Scire
b81ceeca21
Stratosphere: extract common code to libstratosphere.
2018-04-21 20:31:06 -06:00
Michael Scire
6a51ce25b3
Stratosphere: Skeleton create process up through the ProcessCreation::CreateProcess() call
2018-04-21 19:52:49 -06:00
Michael Scire
878d68f7e0
Stratosphere: Add handle/pid output to IPC templating, fix failure condition message preparation.
2018-04-21 05:17:31 -06:00
Michael Scire
b6ba7b94b9
Stratosphere: Implement ldr:pm->GetProgramInfo()
2018-04-20 23:58:42 -06:00