| Commit message (Collapse) | Author | Age |
|
|
|
|
|
| |
- Removed unused VBLANK sleep mode
- Added error log for bad context switch
- Renamed VerifyWait to CheckWaitType to be more clear
|
|\
| |
| | |
Kernel: Implement support for current thread pseudo-handle
|
| | |
|
| |
| |
| |
| | |
This boots a few (mostly Nintendo 1st party) games further.
|
|\ \
| | |
| | | |
Kernel: Add missing permissions
|
| |/
|/|
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
This is a first step at fixing the conceptual insanity that is our
handling of service and IPC calls. For now, interfaces still directly
derived from Session because we don't have the infrastructure to do it
properly. (That is, Processes and scheduling them.)
|
| | |
|
| |
| |
| |
| | |
Same semantics, idea by @yuriks
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
This behavior was tested on hardware, however i'm still not sure what use the "initial_count" parameter has
|
| |
| |
| |
| |
| | |
ToDo: Implement svcReleaseSemaphore
* Some testing against hardware needed
|
| | |
|
| | |
|
|\ \
| | |
| | | |
Kernel/Mutex: Properly lock the mutex when a thread enters it
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This is in line with what the hardware itself does.
It does this by splitting the initial directory opening into Directory.Open(), which will return false if a stat fails.
Then, Archive::OpenDirectory will return nullptr, and archive.cpp will return an error code .
|
| | |
| | |
| | |
| | | |
Moved Mutex::WaitSynchronization to the end of the file.
|
| | | |
|
|/ /
| |
| |
| | |
Also resume only the next immediate thread waiting for the mutex when it is released, instead of resuming them all.
|
|\ \
| | |
| | | |
SVC: Implemented GetThreadId.
|
|\ \ \
| | | |
| | | | |
Implemented RenameFile and RenameDirectory in FS:USER
|
| | | |
| | | |
| | | |
| | | | |
Use the next_thread_id variable directly.
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
For now threads are using their Handle value as their Id, it should not really cause any problems because Handle values are unique in Citra, but it should be changed. I left a ToDo there because this is not correct behavior as per hardware.
|
| | | | |
|
| |/ /
|/| | |
|
|\ \ \
| | | |
| | | | |
Mutex: Changed behavior to always release mutex for all threads.
|
| | | | |
|
|/ / / |
|
| | | |
|
|/ / |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
All service calls in the CTR OS return result codes indicating the
success or failure of the call. Previous to this commit, Citra's HLE
emulation of services and the kernel universally either ignored errors
or returned dummy -1 error codes.
This commit makes an initial effort to provide an infrastructure for
error reporting and propagation which can be use going forward to make
HLE calls accurately return errors as the original system. A few parts
of the code have been updated to use the new system where applicable.
One part of this effort is the definition of the `ResultCode` type,
which provides facilities for constructing and parsing error codes in
the structured format used by the CTR.
The `ResultVal` type builds on `ResultCode` by providing a container for
values returned by function that can report errors. It enforces that
correct error checking will be done on function returns by preventing
the use of the return value if the function returned an error code.
Currently this change is mostly internal since errors are still
suppressed on the ARM<->HLE border, as a temporary compatibility hack.
As functionality is implemented and tested this hack can be eventually
removed.
|
|\ \
| | |
| | | |
Added DeleteFile and DeleteDirectory functions to FS:USER and the archives.
|
| | | |
|
|\ \ \
| | | |
| | | | |
Remove trailing spaces from the entire project
|
|\ \ \ \
| | | | |
| | | | | |
Add static to some variables
|
| |/ / /
|/| | |
| | | |
| | | | |
or generated
|
| |/ / |
|
| | | |
|
|/ / |
|
| | |
|