Commit Graph

277 Commits (e1fbac3ca13d37d2625c11d30cfdece4327b446b)

Author SHA1 Message Date
Lioncash 3c474a7d31 backend: Add logging subentry for ldr
Fixes an assertion upon executing citra in debug mode.
11 years ago
Subv 8e2b248e05 Build: Fixed some warnings 11 years ago
archshift ef24e72b26 Asserts: break/crash program, fit to style guide; log.h->assert.h
Involves making asserts use printf instead of the log functions (log functions are asynchronous and, as such, the log won't be printed in time)
As such, the log type argument was removed (printf obviously can't use it, and it's made obsolete by the file and line printing)

Also removed some GEKKO cruft.
11 years ago
bunnei ca22ee3239 Merge pull request #526 from purpasmart96/citra_stubs
Services: Stub some functions
11 years ago
purpasmart96 60ce36f721 Services: Stub some functions 11 years ago
chinhodado 34cce345a7 Fix a wrong file name in a comment 11 years ago
Yuri Kunde Schlesner fc11aff955 Common: Fix SCOPE_EXIT to actually create unique identifiers. 11 years ago
archshift 1f109c6b49 Added HID_SPVR service and split HID_U implementation into service/hid/hid.xxx 11 years ago
archshift 228843c43e Logging: Log all called service functions (under trace). Compile out all trace logs under release for performance. 11 years ago
bunnei e6864a1f41 Merge pull request #431 from yuriks/thread-queue-cleanup
Common: Clean up ThreadQueueList
11 years ago
Yuri Kunde Schlesner 122c2bb324 Common: Clean up ThreadQueueList
Replace all the C-style complicated buffer management with a std::deque.
In addition to making the code easier to understand it also adds support
for non-POD IdTypes.

Also clean the rest of the code to follow our code style.
11 years ago
bunnei 3eca33c6a4 Merge pull request #425 from Subv/coretiming
Ported the CoreTiming namespace from PPSSPP
11 years ago
Subv 9bf82beb4c CoreTiming: Ported the CoreTiming namespace from PPSSPP
Implemented the required calls to make it work.

CoreTiming: Added a new logging class Core_Timing.
11 years ago
bunnei 5217e3f873 Merge pull request #421 from linkmauve/remove-dead-platforms
Remove dead platform #ifdefs to make the code more readable.
11 years ago
bunnei 088863c921 Merge pull request #376 from Subv/arc_reorder
Archives: Change the folder layout of some archives.
11 years ago
Emmanuel Gil Peyrot 6b411c63c9 Common: Remove dead platform #ifdefs to make the code more readable.
Symbian, Xbox, Blackberry and iOS got removed.
FreeBSD and Android kept due to them potentially being able to run Citra in the future.
The iOS specific part also got removed from PPSSPP in order to fix a bug there.
11 years ago
Emmanuel Gil Peyrot 66e06f65c4 Common: Use std::abs instead of abs, using abs with cmath fails on some systems. 11 years ago
Emmanuel Gil Peyrot ffe4cc9c5a Common: Remove the unused x86-specific 128-bit float type. 11 years ago
Subv 71a063f45c Archives: Changed the way paths are built for the archives.
Each archive now takes a mount point of either NAND or SDMC, and builds its own directory structure there, trying to simulate an HLE-friendly hardware layout
11 years ago
Subv cfd7b219f6 SaveDataCheck: Move the files to nand/title
under /nand/title/high/low/content/00000000.app.romfs
11 years ago
Subv 3bc9f5509b Archives: Change the folder layout of some archives.
This is to better represent the hardware layout, they are still aren't quite accurate, but this better and will help a bit when implementing the other archives like NAND-RO and NAND-RW
11 years ago
Subv aade417b14 Archives: Reduced duplicate code in RomFS and SaveCheck.
Fixed a few warnings and cleaned up the code
11 years ago
Subv 97a7381d29 SOC_U: Preliminary implementation of sockets.
Stubbed CreateMemoryBlock

Using Berkeley sockets, and Winsock2.2 on Windows.
So far ftpony creates the socket and accepts incoming connections

SOC_U: Renamed functions to maintain consistency

Also prevents possible scope errors / conflicts with the actual Berkeley socket functions

SOCU: Close all the opened sockets when cleaning up SOCU
11 years ago
bunnei 29da5da951 Merge pull request #369 from darkf/mingw_
Fix MinGW build (2)
11 years ago
darkf 5d10b212ec Fix MSVC-related #defines and add CMakeLists comment 11 years ago
darkf 8ba9ac0f74 Fix merge conflicts 11 years ago
Subv 2c89d4d5cd Archives: Implemented ExtSaveData and SharedExtSaveData
They will be stored in /extsavedata/SDMC and /extsavedata/NAND respectively.
Also redirect some APT_A functions to their APT_U equivalents.
Implemented the gamecoin.dat file in SharedExtSaveData in the PTM module.
Implemented formatting the savegame.
Retake a previous savegame if it exists instead of reporting them as not formatted every time a game is loaded.
11 years ago
bunnei 2188af4a65 Merge pull request #322 from chinhodado/master
More warning cleanups
11 years ago
bunnei 0de6a08d75 Merge pull request #291 from purpasmart96/license
License change
11 years ago
Chin 0199a7d9ef More warning cleanups 11 years ago
purpasmart96 ebfd831ccb License change 11 years ago
Tony Wasserka 95be6a09b2 BitField: Add an explicit Assign method.
This is useful when doing crazy stuff like inheriting from BitField.
11 years ago
Yuri Kunde Schlesner 82528ba7df Common: Add a clone of std::make_unique 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 ac87c3b0d0 Restore the original console color after logging a message.
Fixes #277
11 years ago
Yuri Kunde Schlesner 4d2a6f8b9b Remove old logging system 11 years ago
Yuri Kunde Schlesner 0e0a007a25 Add configurable per-class log filtering 11 years ago
Yuri Kunde Schlesner 0600e2d8b5 Convert old logging calls to new logging macros 11 years ago
Yuri Kunde Schlesner 6390c66e95 Implement text path trimming for shorter paths. 11 years ago
Yuri Kunde Schlesner 6b0fb62c47 Re-add coloring to the console logging output. 11 years ago
Yuri Kunde Schlesner 616d874443 New logging system 11 years ago
Yuri Kunde Schlesner 04b1f2936c Add SCOPE_EXIT macro to conveniently execute cleanup actions 11 years ago
Yuri Kunde Schlesner eda30c36ee Added missing include in common_funcs.h 11 years ago
Yuri Kunde Schlesner 8a681cdf3d Remove redundant include from common_funcs.h 11 years ago
bunnei a6791e4fc7 Merge pull request #267 from bunnei/apt-shared-font
APT shared font loading
11 years ago
bunnei 6fe61d3deb APT_U: Added GetSharedFont service function. 11 years ago
Tony Wasserka 33e61ef514 Merge pull request #261 from neobrain/boost
Add Boost as a submodule and add some minor cleanups using Boost.Range
11 years ago
bunnei 5bac72282a Common: Add "sysdata" to GetUserPath and cleanup. 11 years ago
archshift 4763fca9f8 Explicitly specify LE strings to iconv, fixes paths in Steel Diver 11 years ago
Yuri Kunde Schlesner 521e1cb7e0 Remove unused NDMA module 11 years ago
Tony Wasserka 0cd27a511e Some code cleanup. 11 years ago
Tony Wasserka 27280f178b Fix some headers to include their dependencies properly. 11 years ago
Tony Wasserka 3d8c6e61be StringUtil: Perform some minimal cleanup. 11 years ago
Rohit Nirmal 8a62423970 Change NULLs to nullptrs. 11 years ago
darkf 459502e48c Fix MinGW build 11 years ago
Emmanuel Gil Peyrot f8c05e53c4 Remove unused includes to common/thread.h 11 years ago
Emmanuel Gil Peyrot 739bb58c3a Remove tabs in all files except in skyeye imports and in generated GL code 11 years ago
Emmanuel Gil Peyrot f5d38649c7 Remove trailing spaces in every file but the ones imported from SkyEye, AOSP or generated 11 years ago
bunnei 40acd63631 Merge pull request #165 from neobrain/viewport-scaling
Stretch emulation output to render window and be display density independent
11 years ago
Lioncash 1a8f466217 Remove extraneous semicolons 11 years ago
Tony Wasserka 5785f764ab EmuWindow: Add some explicit documentation and set proper minimal client area size. 11 years ago
Tony Wasserka 6a6464807a 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.
11 years ago
Tony Wasserka e02ff0121f MathUtil: Make Rectangle work with unsigned types. 11 years ago
Tony Wasserka 19bb01c223 EmuWindow: Better document the purpose of OnMinimalClientAreaChangeRequest. 11 years ago
Tony Wasserka 182476c96a 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.
11 years ago
Tony Wasserka ded9c8a826 EmuWindow: Add documentation. 11 years ago
Tony Wasserka 722ce22589 EmuWindow: Add support for specifying minimal client area sizes. 11 years ago
Tony Wasserka bd8f491e4c Fixup EmuWindow interface and implementations thereof. 11 years ago
Kevin Hartman 221a9b023d 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.
11 years ago
Tony Wasserka c8d933a142 Add a GUI logging channel.
Replace asserts with _dbg_assert_.
11 years ago
Lioncash 827e7a1898 emu_window: Fix initializer list order.
Gets rid of a warning on OSX.
11 years ago
archshift 1f7c4ab7f6 Use std::u16string for conversion between UTF-8 and UTF-16, FS:USER functions 11 years ago
Gareth Poole 38df9e96dd Renamed souce files of services to match port names 11 years ago
Yuri Kunde Schlesner d72708c1f5 Add `override` keyword through the code.
This was automated using `clang-modernize`.
11 years ago
Yuri Kunde Schlesner da564d3fe0 Fix compile errors in Clang 11 years ago
Tony Wasserka a7a57c04c6 Merge pull request #150 from lioncash/typo
bit_field: Fix a typo in the sample usage.
11 years ago
Lioncash 2dce9b2ead bit_field: Fix a typo in the sample usage. 11 years ago
archshift 7fa4dbd0c6 Removed uses of raw c-string manipulation functions. 11 years ago
bunnei ce8390ac03 Merge pull request #133 from archshift/sdmc-enabled
Use config files to store whether SDMC is enabled or not, auto-create SDMC dir.
11 years ago
Yuri Kunde Schlesner b75ac24391 Use std sized types instead of platform specific typedefs 11 years ago
archshift a7c7946867 Common: Return from CreateFullPath early if the directory creation fails 11 years ago
bunnei a171000cbe Merge pull request #108 from archshift/config
Configuration files
11 years ago
archshift e6594f9f53 Added configuration file system.
Uses QSettings on citra-qt, and inih on citra-cli.
11 years ago
Emmanuel Gil Peyrot fbd72fd6bf Common: Add a helper function to generate a 8.3 filename from a long one.
Core: Fix the SDMC Directory implementation to make blargSnes work.
11 years ago
Lioncash ca2f0de08a Fix warnings in core and common 11 years ago
bunnei ee7cfc71bd Merge pull request #118 from lioncash/chunk-file
chunk_file: General cleanup
11 years ago
Lioncash ff442d6cf9 chunk_file: General cleanup
- Remove unnecessary ifdefs
- Remove commented out code. Can be retrieved later if needed.
11 years ago
archshift 1966f7b0ad Use the citra user path for the sdmc directory 11 years ago
Emmanuel Gil Peyrot 6b7b36a874 Common: Rename the File namespace to FileUtil, to match the filename and prevent collisions. 11 years ago
Emmanuel Gil Peyrot edaf59a759 Common: Return the number of items read/written in IOFile’s methods instead of a boolean. 11 years ago
Kevin Hartman 02fd19b2f6 Added support for multiple input device types for KeyMap and connected Qt. 11 years ago
Kevin Hartman 4a94ec934a Initial HID PAD work, with GLFW only. 11 years ago
bunnei 532a9e80a0 Merge pull request #99 from archshift/ext-check
loader.cpp: improved file extension checking, made Upper/LowerStr useful, moved string_util into Common namespace
11 years ago
bunnei d79fe3ebaa Merge pull request #103 from archshift/prune
Prune redundant includes
11 years ago
bunnei 249a567834 Merge pull request #104 from archshift/removal
Removed fixed_size_queue.h
11 years ago
bunnei 8891c27425 Merge pull request #101 from lioncash/inf-loop
Common: Fix a potential infinite loop in StringUtil's ReplaceAll
11 years ago
archshift 727bad24a2 Removed fixed_size_queue.h
It's unused and doesn't look like it compiles anyway :/
11 years ago
archshift 9d7cc2bedc common: Prune all redundant includes 11 years ago
archshift 8fe5f2e2fe Moved common_types::Rect from common to Common namespace 11 years ago