Subv
7adac27868
Kernel/Loader: Grab the system mode from the NCCH ExHeader.
3dsx and elf files default to system mode 2 (96MB allocated to the application).
This allows Home Menu to boot without modifications.
Closes #1849
9 years ago
Subv
d00d0d61e0
Kernel/Loader: Grab the system mode from the NCCH ExHeader.
3dsx and elf files default to system mode 2 (96MB allocated to the application).
This allows Home Menu to boot without modifications.
Closes #1849
9 years ago
Ricardo de Almeida Gonzaga
07fdcf150d
Fix typos
9 years ago
Yuri Kunde Schlesner
fa5d9d8266
Use negative priorities to avoid special-casing the self-include
9 years ago
Emmanuel Gil Peyrot
1138ec0d49
Remove empty newlines in #include blocks.
This makes clang-format useful on those.
Also add a bunch of forgotten transitive includes, which otherwise
prevented compilation.
9 years ago
Yuri Kunde Schlesner
1e4a5da9f4
Manually tweak source formatting and then re-run clang-format
9 years ago
Emmanuel Gil Peyrot
628ed4376a
Sources: Run clang-format on everything.
9 years ago
Emmanuel Gil Peyrot
3272e30eec
Loader: Split SMDH into its own header and import helpers from QGameList
Also rewrite Qt wrappers to use those.
10 years ago
Emmanuel Gil Peyrot
e52461f648
CitraQt: Simplify the game list loader code
10 years ago
Emmanuel Gil Peyrot
85a4eea460
Loader: Add a GetFileType method to get the type of a loaded file
10 years ago
Emmanuel Gil Peyrot
b0095b9584
Loader, Frontends: Refactor loader creation and game loading
This allows frontends to keep a single loader and use it multiple times
e.g. for code loading and SMDH parsing.
10 years ago
Alexander Laties
17e9bc5392
fixup simple type conversions where possible
10 years ago
Subv
bfee7941e3
Kernel/Threading: Warn when a thread can be scheduled in the Syscore (Core 1).
We do not currently implement any cores other than the AppCore (Core 0).
10 years ago
wwylele
d999f3d0de
fix:return proper error
10 years ago
wwylele
a23e3f1cd5
add icon & title to game list
10 years ago
Sam Spilsbury
44a7dad1e4
ncch: Use correct format specifier (for long long uint)
10 years ago
Lioncash
0e86c22c25
core: Clean out some unnecessary header includes
10 years ago
wwylele
5ce844dff6
ncch:only decompress .code section
10 years ago
MerryMage
9f9c987924
Common: Remove Common::make_unique, use std::make_unique
10 years ago
Lioncash
327d85b039
loader: Make MakeMagic constexpr
10 years ago
LittleWhite
59fe02348a
Improve error report from Init() functions
Add error popup when citra initialization failed
10 years ago
Yuri Kunde Schlesner
990a3e6038
Loader/NCCH: Log the program ID during loading
This is useful for all sorts of things, but mainly to identify save
folders more easily.
10 years ago
LittleWhite
c4c48d4ab3
Display errors in GUI when loading ROM failed
10 years ago
Lioncash
f290c57dee
elf: Don't cast away const
10 years ago
Gareth Poole
780fd6247f
Loader: Change NCCH header types to be explicitly little-endian
10 years ago
Gareth Poole
1874d33c0b
Loader: Implement encryption check
10 years ago
Emmanuel Gil Peyrot
b0c7762520
CitraQt, SkyEye, Loader, VideoCore: Remove newlines in LOG_* calls.
The LOG_* function itself already appends one.
10 years ago
archshift
976a199623
Expose loader helper functions for identifying files.
10 years ago
Cruel
aad98addf2
Implement 3dsx RomFS
10 years ago
Lioncash
54fa043c92
General: Fix up doxygen comments
10 years ago
Benjamin Barenblat
ef432342ce
Properly indicate that CIA support is not implemented yet
Make `Loader::LoadFile` return an `ErrorNotImplemented` if you call
it on a CIA file.
11 years ago
Benjamin Barenblat
b57680c39f
Give CIA file type a name
Make `GetFileTypeString` return ‘CIA’ for CIA (CTR Importable
Archive) files.
11 years ago
Lioncash
43d799fd9d
loader: Remove unnecessary else usages
11 years ago
zawata
972dccc3f6
Core : Change variable type
and fix various warnings
11 years ago
Yuri Kunde Schlesner
62c2a262b2
Loader: Fix variable type and remove unused variable
11 years ago
Yuri Kunde Schlesner
2d7299a86f
Loader: Remove unnecessary pointer indirection to IOFile
11 years ago
condut
c385b7767d
FS: Stream RomFS from file instead of loading all of it to memory
11 years ago
Yuri Kunde Schlesner
5c5cf2f8e0
Core: Properly configure address space when loading a binary
The code now properly configures the process image to match the loaded
binary segments (code, rodata, data) instead of just blindly allocating
a large chunk of dummy memory.
11 years ago
Yuri Kunde Schlesner
34f5f77507
Loader: Clean up 3dsx loader a bit, fixing a potential buffer overrun
11 years ago
Yuri Kunde Schlesner
fdbf410bd7
Loader: Make 3dsx loader logs a bit less confusing
11 years ago
aroulin
769407e4fa
Loader: Remove log line causing warning
11 years ago
Emmanuel Gil Peyrot
45c4781544
CitraQt: Cleanup includes.
11 years ago
Emmanuel Gil Peyrot
596b7c4f63
Common: Cleanup key_map includes.
11 years ago
Emmanuel Gil Peyrot
8cf9eb7f43
Common: Fix FileUtil includes, and everything relying on those.
11 years ago
Emmanuel Gil Peyrot
b1503b2020
Remove every trailing whitespace from the project (but externals).
11 years ago
Subv
d3634d4bf4
Core/ResourceLimits: Implemented the basic structure of ResourceLimits.
Implemented svcs GetResourceLimit, GetResourceLimitCurrentValues and GetResourceLimitLimitValues.
Note that the resource limits do not currently keep track of used objects, since we have no way to distinguish between an object created by the application, and an object created by some HLE module once we're inside Kernel::T::Create.
11 years ago
Yuri Kunde Schlesner
7ada357b2d
Memmap: Re-organize memory function in two files
memory.cpp/h contains definitions related to acessing memory and
configuring the address space
mem_map.cpp/h contains higher-level definitions related to configuring
the address space accoording to the kernel and allocating memory.
11 years ago
Yuri Kunde Schlesner
417c867e14
Loader: Add missing include
11 years ago
Yuri Kunde Schlesner
1c0b87edc2
Memory: Re-organize and rename memory area address constants
11 years ago
Yuri Kunde Schlesner
eb3eb9f75d
Loader: Remove .bin file support
It is of very limited practical utility currently, and will soon be
impossible to support due to more accurate memory map emulation.
11 years ago