Chin
e795692614
Clean up some warnings
11 years ago
Yuri Kunde Schlesner
82528ba7df
Common: Add a clone of std::make_unique
11 years ago
Subv
fc73bef692
FS_U: Added the command to the docs of SaveData functions
11 years ago
purpasmart96
b2c64eb5ff
GSP_GPU: Shut up FlushDataCache
11 years ago
Subv
78e0f36857
SystemSaveData: Fixed a typo that was segfaulting
11 years ago
Subv
77f0cdfaf4
SaveData: Added some documentation to FormatSaveData
We still don't know what the other parameters do, but they appear to be very similar to those of FormatThisUserSaveData.
Most likely FormatThisUserSaveData is just an alias for FormatSaveData with LowPathType Empty
11 years ago
Subv
bec527fa24
SaveData: Implemented the SystemSaveData archive.
It will be stored in the /syssavedata folder. This archive is user by various Services and possibly games via the FS:U service.
11 years ago
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
11 years ago
Yuri Kunde Schlesner
082bf803ab
Comment out empty arrays causing compile errors in MSVC
11 years ago
Yuri Kunde Schlesner
666f6deb47
Work around libstdc++'s lack of support for std::hash on enums
11 years ago
Yuri Kunde Schlesner
83e6e4ffec
FS.Archive: Clean up treatment of archives and their handles
- Refactor FS::Archive internals to make Archive creation and lifetime
management clearer.
- Remove the "Archive as a File" hack.
- Implement 64-bit Archive handles.
11 years ago
Yuri Kunde Schlesner
0931a42af0
Service.FS: Rename FileSys::File to FileBackend
11 years ago
Yuri Kunde Schlesner
d51afab0bc
Service.FS: Rename FileSys::Directory to DirectoryBackend
11 years ago
Yuri Kunde Schlesner
82fe821e87
Service.FS: Rename FileSys::Archive to ArchiveBackend
11 years ago
Yuri Kunde Schlesner
f6153679b0
Service.FS: Do archive registration using IdCode instead of name
11 years ago
Yuri Kunde Schlesner
ca67bb7945
HLE: Rename namespaces to match move & fix initialization order
11 years ago
Yuri Kunde Schlesner
c72ccfa6db
HLE: Move kernel/archive.* to service/fs/
11 years ago
archshift
89eef9eb6d
Added stub for nim:aoc service...
11 years ago
archshift
1356a6b313
Added stub for cecd:u service...
I couldn't find any information about this service...
11 years ago
archshift
6117fad036
Added stub for ldr:ro service...
11 years ago
archshift
6b51683bb1
Added am:app service stub.
Apparently nothing at all is known about this service...
11 years ago
Yuri Kunde Schlesner
e321decf98
Remove SyncRequest from K::Object and create a new K::Session type
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.)
11 years ago
Subv
1051795c32
Kernel/Semaphores: Fixed build
11 years ago
Subv
ea95876431
Kernel/Semaphore: Small style change
11 years ago
Subv
effb181888
Kernel/Semaphores: Invert the available count checking.
Same semantics, idea by @yuriks
11 years ago
Subv
5e25986235
Kernel/Semaphores: Addressed some issues.
11 years ago
Subv
cc81a510e3
Semaphore: Removed an unneeded function
11 years ago
Subv
61434651d8
Semaphores: Addressed some style issues
11 years ago
Subv
abff4a7ee2
Semaphore: Implemented the initial_count parameter.
11 years ago
Subv
49b31badba
SVC: Implemented ReleaseSemaphore.
This behavior was tested on hardware, however i'm still not sure what use the "initial_count" parameter has
11 years ago
Subv
82c84883a5
SVC: Implemented svcCreateSemaphore
ToDo: Implement svcReleaseSemaphore
* Some testing against hardware needed
11 years ago
Lioncash
cfc0ee9c60
kernel: Remove unused log arguments
11 years ago
Yuri Kunde Schlesner
0600e2d8b5
Convert old logging calls to new logging macros
11 years ago
Yuri Kunde Schlesner
616d874443
New logging system
11 years ago
bunnei
6fe61d3deb
APT_U: Added GetSharedFont service function.
11 years ago
bunnei
988998cca5
DSP: Added stub for ReadPipeIfPossible.
11 years ago
bunnei
4cb7a44d4e
MemMap: Renamed "GSP" heap to "linear", as this is not specific to GSP.
- Linear simply indicates that the mapped physical address is always MappedVAddr+0x0C000000, thus this memory can be used for hardware devices' DMA (such as the GPU).
11 years ago
Emmanuel Gil Peyrot
5a3b1b5f44
CFG:U: Store country codes as u16 instead of char pointers, and return the correct error in GetCountryCodeID.
11 years ago
bunnei
f94d8f9603
GSP: Trigger GPU interrupts at more accurate locations.
11 years ago
bunnei
e90b37b935
GSP: Updated TriggerCmdReqQueue to return success code.
11 years ago
bunnei
3e1654eaa8
GSP: Updated RegisterInterruptRelayQueue to return expected magic number.
11 years ago
bunnei
170123982d
GPU: Fixed bug in command list size decoding.
11 years ago
bunnei
dd203f7068
Thread: Fixed to wait on address when in arbitration.
11 years ago
archshift
20d2ed0950
Make OpenDirectory fail if the directory doesn't exist
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 .
11 years ago
Subv
bc318c464b
Mutex: Remove some forward declarations
Moved Mutex::WaitSynchronization to the end of the file.
11 years ago
Subv
64128aa61a
Mutex: Release all held mutexes when a thread exits.
11 years ago
Subv
e3c8e4901c
Mutex: Properly lock the mutex when a thread enters it
Also resume only the next immediate thread waiting for the mutex when it is released, instead of resuming them all.
11 years ago
Subv
6fac2bf0ab
Threads: Remove a redundant function.
Use the next_thread_id variable directly.
11 years ago
Subv
ef1d5cda06
Threads: Implemented a sequential thread id
11 years ago
archshift
139a4d91d9
Updated archive.cpp functions for proper error handling
11 years ago