Commit graph

988 commits

Author SHA1 Message Date
Rohit Nirmal
ec42418a35 Change NULLs to nullptrs. 2014-12-07 21:15:06 +01:00
Yuri Kunde Schlesner
de66ac6b44 Resolve doxycomment duplication debate
I believe putting comments in the headers has won by a good margin, with everyone other than me preferring it, so time to enshrine it.
2014-12-07 21:15:04 +01:00
Subv
59b680899f Threads: Remove a redundant function.
Use the next_thread_id variable directly.
2014-12-07 21:15:01 +01:00
Subv
f988c3d494 Threads: Implemented a sequential thread id 2014-12-07 21:14:59 +01:00
Subv
803420201e SVC: Implemented GetThreadId.
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.
2014-12-07 21:14:57 +01:00
archshift
936a937088 Updated archive.cpp functions for proper error handling 2014-12-07 21:14:54 +01:00
archshift
6b2d11477f Implemented RenameDirectory in FS:USER 2014-12-07 21:14:51 +01:00
archshift
368f2400b7 Implemented RenameFile in FS:USER 2014-12-07 21:14:49 +01:00
Lioncash
df381e5120 kernel: Shorten GetCount 2014-12-07 21:14:47 +01:00
Lioncash
7e06be44c1 kernel: Make some functions const 2014-12-07 21:14:44 +01:00
Lioncash
09872aecea mem_map: Make enum for addresses use u32 as the underlying type 2014-12-07 21:14:42 +01:00
Lioncash
e03fc18a41 hid_user: Pass by reference with PadButtonPress/PadButtonRelease 2014-12-07 21:14:40 +01:00
Subv
ca3091ece3 CMake: Place all the built files in BUILD_DIR/bin/<Configuration> when compiling with MSVC 2014-12-07 21:14:38 +01:00
archshift
7d38dbb1b1 Add stub for ConvertProcessFromDspDram
Should theoretically push retail stuff further along
2014-12-07 21:14:35 +01:00
purpasmart96
2f407d20db PTM_U: Added a stub for GetBatteryLevel & GetBatteryChargeState & GetAdapterState 2014-12-07 21:14:33 +01:00
Rohit Nirmal
b8b26cdc77 Silence a few -Wsign-compare warnings. 2014-12-07 21:14:31 +01:00
purpasmart96
229265ee02 AC_U: Added a stub for GetWifiStatus 2014-12-07 21:14:28 +01:00
Subv
4178e80312 PTM_U: Implemented the GetShellState function. 2014-12-07 21:14:26 +01:00
vaguilar
0d3449c9f9 Fixed viewport error caused by rounding 2014-12-07 21:14:24 +01:00
bunnei
f71f3a7fc2 DSP: Added stubs for several commonly used DSP service functions. 2014-12-07 21:14:22 +01:00
bunnei
c00706859f DSP: Fixed typo in port name. 2014-12-07 21:14:20 +01:00
Subv
5e10817d04 CFG:U: Implemented the GetCountryCodeID and GetCountryCodeString. 2014-12-07 21:14:17 +01:00
archshift
36f2a2ce40 Merge Config::ReadXYZs 2014-12-07 21:14:15 +01:00
bunnei
f539795362 Mutex: Changed behavior to always release mutex for all threads. 2014-12-07 21:14:12 +01:00
bunnei
546fdcd5d8 Thread: Check that thread is actually in "wait state" when verifying wait. 2014-12-07 21:14:10 +01:00
bunnei
2f61cda3f6 SVC: Add debug log to ArbitrateAddress. 2014-12-07 21:14:08 +01:00
bunnei
a70535390a SVC: SleepThread should yield to the next ready thread. 2014-12-07 21:14:05 +01:00
Emmanuel Gil Peyrot
66ccdcce83 GLFW: Add an error callback before calling glfwInit()
It will print a message to know what happened in case something went wrong in a GLFW call.

Also replace every printf() in the glfw emu-window by ERROR_LOG().
2014-12-07 21:14:03 +01:00
Yuri Kunde Schlesner
80beb058a0 dyncom: Use unordered_map rather than the terrible 2-level bb_map
Seems (probably just placebo/wishful thinking) to make it slightly
faster. Also reduces memory usage and makes shutdown when debugging from
MSVC fast.
2014-12-07 21:14:00 +01:00
Lioncash
c99e2ccb87 arm_dyncom_interpreter: Get rid of unused var warnings 2014-12-07 21:13:56 +01:00
vaguilar
d6baf1e59a Fixed formatting and switch statement warnings 2014-12-07 21:13:51 +01:00
Emmanuel Gil Peyrot
f6c552310c Remove unused includes to common/thread.h 2014-12-07 21:13:46 +01:00
Yuri Kunde Schlesner
6c75a3551b Use pointers instead of passing handles around in some functions. 2014-12-07 21:13:44 +01:00
Yuri Kunde Schlesner
0481f306cb Remove duplicated docs/update them for changed parameters. 2014-12-07 21:13:42 +01:00
Yuri Kunde Schlesner
0d428280fa HLE: Revamp error handling throrough the HLE code
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.
2014-12-07 21:13:39 +01:00
Yuri Kunde Schlesner
e4c1b43ece Change some SkyEye defines to const ints
This prevents them from interfering with other constants defined in
different namespaces.
2014-12-07 21:13:37 +01:00
archshift
0d59f6b9ea Added DeleteFile and DeleteDirectory functions to FS:USER and the archives. 2014-12-07 21:13:35 +01:00
Yuri Kunde Schlesner
d9b34bcc10 Update CONTRIBUTING.md 2014-12-07 21:13:32 +01:00
Yuri Kunde Schlesner
63d1ede625 Add comment style notes to CONTRIBUTING.md
Closes #215
2014-12-07 21:13:30 +01:00
purpasmart96
d63e9804b8 Add more services and some fixes, along with more "override"
in the service's headers
2014-12-07 21:13:28 +01:00
Emmanuel Gil Peyrot
4153101f5b Remove tabs in all files except in skyeye imports and in generated GL code 2014-12-07 21:13:25 +01:00
Emmanuel Gil Peyrot
ca10bda591 Remove trailing spaces in every file but the ones imported from SkyEye, AOSP or generated 2014-12-07 21:13:22 +01:00
Lioncash
b2af87c0e8 Add static to some variables 2014-12-07 21:13:20 +01:00
archshift
3b0bf3b7a3 Update gitignore to exclude project/editor files 2014-12-07 21:13:18 +01:00
Tony Wasserka
31c473b68b citra GLFW: Ignore minimal window size hints.
GLFW provides no proper support for this, hence we just allow any window size to be used.
2014-12-07 21:13:15 +01:00
Tony Wasserka
8efe1fd1e5 EmuWindow: Add some explicit documentation and set proper minimal client area size. 2014-12-07 21:13:12 +01:00
Tony Wasserka
534655fc01 citra-qt: Small cleanup. 2014-12-07 21:13:09 +01:00
Tony Wasserka
113a614202 EmuWindow: Add a TODO.
Implementing this function currently is not critical, as we don't perform any configuration changes, yet.

However, the interface is a good starting point for adding this functionality.
2014-12-07 21:13:06 +01:00
Tony Wasserka
d58d0087fa MathUtil: Make Rectangle work with unsigned types. 2014-12-07 21:13:02 +01:00
Tony Wasserka
a6b05dc89e OpenGL Renderer: Cleanup viewport extent calculation. 2014-12-07 21:12:59 +01:00