Commit Graph

24 Commits (94a103a00080f3f8f9ca9348ec0c5e819c6313e1)

Author SHA1 Message Date
Subv ea9ce0fba7 Filesystem/Archives: Implemented the SaveData archive
The savedata for each game is stored in /savedata/<ProgramID> for NCCH files. ELF files and 3DSX files use the folder 0 because they have no ID information

Got rid of the code duplication in File and Directory

Files that deal with the host machine's file system now live in DiskFile, similarly for directories and DiskDirectory and archives with DiskArchive.

FS_U: Use the correct error code when a file wasn't found
Yuri Kunde Schlesner ca67bb7945 HLE: Rename namespaces to match move & fix initialization order
Yuri Kunde Schlesner c72ccfa6db HLE: Move kernel/archive.* to service/fs/
Yuri Kunde Schlesner 0600e2d8b5 Convert old logging calls to new logging macros
Lioncash 208598dbe2 kernel: Shorten GetCount
Lioncash 9b68d5e074 kernel: Make some functions const
Emmanuel Gil Peyrot f5d38649c7 Remove trailing spaces in every file but the ones imported from SkyEye, AOSP or generated
Lioncash 741321ac24 Core: Get rid of unnecessary switch statement in Kernel
archshift 6e606c515f core: Prune redundant includes
Lioncash ab4648d3ca Core: Use std::array for managing kernel object space
These avoid relying on memset for clearing the arrays.
Lioncash 98fa3f7cba Core: Alter the kernel string functions to use std::string instead of const char*.
Most functions already operate on std::strings. This also removes the need to manually null terminate thread names.
bunnei 542700ccb7 Archive: Added Init/Shutdown methods to reset kernel archive state.
bunnei b45a38f557 Kernel: Removed unnecessary "#pragma once".
bunnei f49ac3a2d7 Kernel: Added freeing of kernel objects on emulator shutdown.
bunnei c95972275e HLE: Updated all uses of NULL to nullptr (to be C++11 compliant)
bunnei ce1c561278 kernel: changed current default thread priority back to 0x30 - I think this is more correct
bunnei 10447d1f48 kernel: changed main thread priority to default, updated Kernel::Reschedule to use PrepareReschedule
bunnei d26f3d4c1f kernel: refactored function naming to remove "__" prefix
bunnei 75c6d2a8fa thread: moved threading calls to the Kernel namespace
bunnei 44336329ed - created a Kernel namespace
- cleaned up Kernel code a bit (moved stuff into namespace, fixed whitespace issues)
- added handle types for all different CTROS handles
bunnei a7cc430aa4 changed "UID" to "Handle" to be a little more consistent with CTR naming
bunnei 9f5588725c changed primary thread priority to 0x30 - this is typical, not 0x31
bunnei 1583d2b6f3 - added __KernelLoadExec function
- fixed some logging
bunnei 6b264518a5 added initial kernel/thread modules