Commit graph

967 commits

Author SHA1 Message Date
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
Tony Wasserka
a85f69dded EmuWindow: Better document the purpose of OnMinimalClientAreaChangeRequest. 2014-12-07 21:12:56 +01:00
Tony Wasserka
ddb9800259 EmuWindow: Remove window title getters/setters.
The window title is none of the emulation core's business. The GUI code is free to put whatever it wants there.
Providing properly thread-safe window title getters and setters is a mess anyway.
2014-12-07 21:12:52 +01:00
Tony Wasserka
e2d82c0a2f EmuWindow: Add documentation. 2014-12-07 21:12:47 +01:00
Tony Wasserka
476b7c8d4b EmuWindow: Add support for specifying minimal client area sizes. 2014-12-07 21:12:43 +01:00
Tony Wasserka
cb14fcdd65 Fixup EmuWindow interface and implementations thereof. 2014-12-07 21:12:40 +01:00
Kevin Hartman
1bdf8f254e Viewport scaling and display density independence
The view is scaled to be as large as possible, without changing the aspect, within the bounds of the window.
On "retina" displays, or other displays where window units != pixels, the view should no longer draw incorrectly.
2014-12-07 21:12:37 +01:00
Tony Wasserka
5ce2cb9ef4 Add a GUI logging channel.
Replace asserts with _dbg_assert_.
2014-12-07 21:12:34 +01:00
Lioncash
60d1b459ec Fix documentation of parameters 2014-12-07 21:12:32 +01:00
Lioncash
aaabed0ead directory_sdmc: Fix a signed/unsigned mismatch comparison 2014-12-07 21:12:29 +01:00
Lioncash
f00e099846 system: Get rid of an unnecessary enum typedef 2014-12-07 21:12:27 +01:00
Lioncash
faff2b448d Remove extraneous semicolons 2014-12-07 21:12:24 +01:00
Lioncash
00996c8271 core: Mark some hle functions as static
These functions are not referred to by their linkage name outside of the translation unit, so they can be marked as static.
2014-12-07 21:12:19 +01:00
bunnei
232f0e1ca2 Archive: Fixed to not destroy archive handle on close. 2014-12-07 21:12:14 +01:00
bunnei
8a40ffa7ae Archive: Fixed close archive before freeing. 2014-12-07 21:12:11 +01:00
bunnei
04f33c1eaa FS_User: Support FileSye::Path in a more generic way.
added a todo to kernel archive
2014-12-07 21:12:08 +01:00
bunnei
94fe465d45 FileSys: Updated backend code to use FileSys::Path instead of string for paths. 2014-12-07 21:12:05 +01:00
bunnei
3c7aac0e88 FileSys: Added DebugStr method to Path class. 2014-12-07 21:12:01 +01:00
archshift
3e16cacb52 Add missing boss:U service, needed according to Nintendo Zone logs. 2014-12-07 21:11:59 +01:00
Lioncash
37cc83c5c3 mem_map: Add missing prototype for Write64 2014-12-07 21:11:56 +01:00
Lioncash
63a2fc4554 emu_window: Fix initializer list order.
Gets rid of a warning on OSX.
2014-12-07 21:11:53 +01:00
Lioncash
8f4866a8ec vertex_shader: Fix control reaches end of function warning 2014-12-07 21:11:51 +01:00