summaryrefslogtreecommitdiff
path: root/src/common (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Rework frame layouts to use a max rectangle instead of hardcoded calculationsGravatar James Rowe2016-11-052-250/+100
|
* LargeFrameLayout + SwappedGravatar SonofUgly2016-11-051-50/+36
| | | Make small screen stay at 1x, and large screen maintain its aspect ratio.
* Support additional screen layouts.Gravatar James Rowe2016-11-055-73/+382
| | | | | Allows users to choose a single screen layout or a large screen layout. Adds a configuration option to change the prominent screen.
* common: use system bswap* functions on more BSDsGravatar Jan Beich2016-10-271-2/+5
|
* common: use system CPUID routine on DragonFly as wellGravatar Jan Beich2016-10-271-2/+2
|
* common: some FreeBSD headers are incomplete to avoid namespace pollutionGravatar Jan Beich2016-10-271-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | In file included from src/common/x64/cpu_detect.cpp:16: /usr/include/machine/cpufunc.h:66:17: error: unknown type name 'u_int' static __inline u_int ^ /usr/include/machine/cpufunc.h:67:6: error: unknown type name 'u_int' bsfl(u_int mask) ^ /usr/include/machine/cpufunc.h:69:2: error: unknown type name 'u_int' u_int result; ^ /usr/include/machine/cpufunc.h:75:17: error: unknown type name 'u_long'; did you mean 'long'? static __inline u_long ^ /usr/include/machine/cpufunc.h:76:6: error: unknown type name 'u_long'; did you mean 'long'? bsfq(u_long mask) ^ /usr/include/machine/cpufunc.h:78:2: error: use of undeclared identifier 'u_long'; did you mean 'long'? u_long result; ^ [...]
* common: convert to standard stat()/fstat() interfacesGravatar Anthony J. Bentley2016-10-271-15/+10
| | | | | | | | | | | | | Most modern Unix environments use 64-bit off_t by default: OpenBSD, FreeBSD, OS X, and Linux libc implementations such as Musl. glibc is the lone exception; it can default to 32 bits but this is configurable by setting _FILE_OFFSET_BITS. Avoiding the stat64()/fstat64() interfaces is desirable because they are nonstandard and not implemented on many systems (including OpenBSD and FreeBSD), and using 64 bits for stat()/fstat() is either the default or trivial to set up.
* common: stat64 is non-standard, hide on a random UnixGravatar Jan Beich2016-10-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | src/common/file_util.cpp:79:19: error: variable has incomplete type 'struct stat64' struct stat64 file_info; ^ src/common/file_util.cpp:79:12: note: forward declaration of 'stat64' struct stat64 file_info; ^ src/common/file_util.cpp:99:19: error: variable has incomplete type 'struct stat64' struct stat64 file_info; ^ src/common/file_util.cpp:99:12: note: forward declaration of 'stat64' struct stat64 file_info; ^ src/common/file_util.cpp:342:19: error: variable has incomplete type 'struct stat64' struct stat64 buf; ^ src/common/file_util.cpp:342:12: note: forward declaration of 'stat64' struct stat64 buf; ^ src/common/file_util.cpp:359:19: error: variable has incomplete type 'struct stat64' struct stat64 buf; ^ src/common/file_util.cpp:359:12: note: forward declaration of 'stat64' struct stat64 buf; ^ 4 errors generated.
* common: only FreeBSD has thread affinity compatible with LinuxGravatar Jan Beich2016-10-271-1/+5
| | | | | | | | | | | src/common/thread.cpp:90:5: error: unknown type name 'cpu_set_t'; did you mean 'cpuset_t'? cpu_set_t cpu_set; ^~~~~~~~~ cpuset_t /usr/include/sys/_cpuset.h:48:24: note: 'cpuset_t' declared here typedef struct _cpuset cpuset_t; ^ 1 error generated.
* common: define routines to set thread name on more BSDsGravatar Jan Beich2016-10-271-2/+4
| | | | | | | src/common/thread.cpp:123:5: error: use of undeclared identifier 'pthread_setname_np' pthread_setname_np(pthread_self(), szThreadName); ^ 1 error generated.
* Fix typosGravatar Ricardo de Almeida Gonzaga2016-10-202-2/+2
|
* Merge pull request #2024 from JamePeng/update-boss-codeGravatar bunnei2016-10-072-0/+2
|\ | | | | Update the stub code of BOSS
| * Update the stub code of BOSSGravatar JamePeng2016-10-022-0/+2
| |
* | Common: Remove dangerous Vec[234] array constructorsGravatar Yuri Kunde Schlesner2016-09-291-3/+0
|/ | | | | They're not currently used, and it's easy to accidentally pass a single pointer argument to them, causing an out-of-bounds read.
* Remove special rules for Windows.h and library includesGravatar Yuri Kunde Schlesner2016-09-213-1/+3
|
* Use negative priorities to avoid special-casing the self-includeGravatar Yuri Kunde Schlesner2016-09-2110-11/+11
|
* Remove empty newlines in #include blocks.Gravatar Emmanuel Gil Peyrot2016-09-2132-54/+13
| | | | | | | This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation.
* Manually tweak source formatting and then re-run clang-formatGravatar Yuri Kunde Schlesner2016-09-1815-61/+32
|
* Sources: Run clang-format on everything.Gravatar Emmanuel Gil Peyrot2016-09-1851-3389/+4172
|
* microprofile: Double buffer size to 16MB.Gravatar bunnei2016-09-151-1/+1
|
* Common: readdir_r() is deprecated, switch to readdir().Gravatar Emmanuel Gil Peyrot2016-09-131-6/+2
|
* Protection against a resize of size 0Gravatar Alexandre LittleWhite Laurent2016-07-231-4/+3
|
* Remove superfluous std::move in return std::move(local_var)Gravatar scurest2016-06-251-1/+1
|
* Fix recursive scanning of directoriesGravatar Yuri Kunde Schlesner2016-06-192-17/+12
| | | | | | ForeachDirectoryEntry didn't actually do anything with the `recursive` parameter, and the corresponding callback parameter was shadowing the actual recursion counters in the user functions.
* Merge pull request #1789 from wwylele/input-refactorGravatar bunnei2016-06-104-23/+232
|\ | | | | Refactor input mapping & implement circle pad modifier
| * fixup! fixup! Refactor input systemGravatar wwylele2016-05-152-7/+7
| |
| * fixup! Refactor input systemGravatar wwylele2016-05-152-20/+24
| |
| * implement circle pad modifierGravatar wwylele2016-05-152-4/+22
| |
| * Refactor input subsystemGravatar wwylele2016-05-154-23/+210
| |
* | Merge pull request #1751 from linkmauve/no-recursive-readdirGravatar bunnei2016-05-302-24/+36
|\ \ | | | | | | Make recursive FileUtil functions take a maximum recursion
| * | Common: Make recursive FileUtil functions take a maximum recursionGravatar Emmanuel Gil Peyrot2016-05-212-24/+36
| |/ | | | | | | | | | | | | | | | | | | Fixes #1115. Also improves the performances of DiskArchive’s directory implementation a lot, simply by not going through the entire tree instead of just listing the first level files. Thanks to JayRoxFox for rebasing this on current master!
* / common_funcs: Provide rotr and rotl for MSVCGravatar MerryMage2016-05-271-12/+18
|/
* swap: Get rid of pointer casting for swapping structsGravatar Lioncash2016-05-081-5/+5
| | | | These shouldn't haphazardly convert types
* swap: Get rid of undefined behavior in swapf and swapdGravatar Lioncash2016-05-081-14/+18
| | | | This isn't well-defined in C++.
* swap: Remove unused methodsGravatar Lioncash2016-05-081-28/+0
| | | | | | | Also gets rid of pointer data variants as this prevents the use of the regular swapping routines as unary predicates in std lib functions. They also cast to stricter alignment types, which is undefined behavior.
* Merge pull request #1736 from MerryMage/sdl2-sinkGravatar bunnei2016-05-072-1/+3
|\ | | | | AudioCore: SDL2 Sink
| * AudioCore: SDL2 SinkGravatar MerryMage2016-05-072-1/+3
| |
* | VideoCore: Run include-what-you-use and fix most includes.Gravatar Emmanuel Gil Peyrot2016-04-306-5/+14
|/
* Common: Remove section measurement from profiler (#1731)Gravatar Yuri Kunde Schlesner2016-04-295-259/+6
| | | | This has been entirely superseded by MicroProfile. The rest of the code can go when a simpler frametime/FPS meter is added to the GUI.
* Make Citra build with MICROPROFILE_ENABLED set to 0 (#1709)Gravatar Henrik Rydgård2016-04-281-0/+4
| | | | | | | | | | | | * Make Citra build with MICROPROFILE_ENABLED set to 0 * Buildfix with microprofile kept on * moc did not like a dialog to conditionally exist. * Cleanup * Fix end of line
* assert: Allow UNREACHABLE_MSG to have just one argumentGravatar Sam Spilsbury2016-04-241-1/+1
|
* Merge pull request #1576 from smspillaz/fix-build-errors-03272016Gravatar bunnei2016-04-241-0/+2
|\ | | | | Fix various build errors encountered on Clang 3.9 on OS X
| * assert: Add _MSG variations for UNREACHABLE and UNIMPLEMENTEDGravatar Sam Spilsbury2016-04-231-0/+2
| |
* | Protect use of std::is_trivially_copyable to compile with GCC 4.9Gravatar LittleWhite2016-04-231-0/+4
|/
* Merge pull request #1672 from wwylele/win-driver-fixGravatar bunnei2016-04-191-3/+12
|\ | | | | Fix driver root identification on Windows
| * fix driver root identification on WindowsGravatar wwylele2016-04-151-3/+12
| |
* | Merge pull request #1666 from MerryMage/barrierGravatar bunnei2016-04-141-24/+22
|\ \ | | | | | | Thread: Correct Common::Barrier implementation
| * | Thread: Make Barrier reusableGravatar MerryMage2016-04-141-5/+5
| | |
| * | common/thread: Correct code styleGravatar MerryMage2016-04-141-21/+19
| |/
* | Merge pull request #1665 from lioncash/fileGravatar bunnei2016-04-142-47/+22
|\ \ | | | | | | IOFile: Minor API changes