summaryrefslogtreecommitdiff
path: root/src/common
AgeCommit message (Collapse)Author
2016-11-30Merge pull request #2228 from freiro/winver_fixYuri Kunde Schlesner
Move WINVER definition to cmake and a bit of cleanup
2016-11-30WINVER definition moved to CMake and cleanupfreiro
2016-11-30Set client SDK version to Service APIsmailwl
2016-11-29Build: Fixed a few warnings.Subv
2016-11-27Merge pull request #2168 from mailwl/micSebastian Valle
MIC_U: Stub service funcions
2016-11-26Move to AppData/Roaming/Citra/freiro
2016-11-26Removed /user/ from pathfreiro
2016-11-25MIC_U: Stub service funcionsmailwl
2016-11-24Switch to AppData/Roamingfreiro
2016-11-19Return by value and other fixesfreiro
2016-11-19Win32 move default user folder location to AppDatafreiro
2016-11-15Merge pull request #2172 from jroweboy/fix-mingwbunnei
Fix mingw compilation support
2016-11-13Add mingw compile supportJames Rowe
2016-11-12Round the rectangle size to prevent float to int casting issuesJames Rowe
And other minor style changes
2016-11-05Add default hotkey to swap primary screens.James Rowe
Also minor style changes
2016-11-05Rework frame layouts to use a max rectangle instead of hardcoded calculationsJames Rowe
2016-11-05LargeFrameLayout + SwappedSonofUgly
Make small screen stay at 1x, and large screen maintain its aspect ratio.
2016-11-05Support additional screen layouts.James Rowe
Allows users to choose a single screen layout or a large screen layout. Adds a configuration option to change the prominent screen.
2016-10-27common: use system bswap* functions on more BSDsJan Beich
2016-10-27common: use system CPUID routine on DragonFly as wellJan Beich
2016-10-27common: some FreeBSD headers are incomplete to avoid namespace pollutionJan Beich
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; ^ [...]
2016-10-27common: convert to standard stat()/fstat() interfacesAnthony J. Bentley
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.
2016-10-27common: stat64 is non-standard, hide on a random UnixJan Beich
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.
2016-10-27common: only FreeBSD has thread affinity compatible with LinuxJan Beich
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.
2016-10-27common: define routines to set thread name on more BSDsJan Beich
src/common/thread.cpp:123:5: error: use of undeclared identifier 'pthread_setname_np' pthread_setname_np(pthread_self(), szThreadName); ^ 1 error generated.
2016-10-20Fix typosRicardo de Almeida Gonzaga
2016-10-07Merge pull request #2024 from JamePeng/update-boss-codebunnei
Update the stub code of BOSS
2016-10-02Update the stub code of BOSSJamePeng
2016-09-29Common: Remove dangerous Vec[234] array constructorsYuri Kunde Schlesner
They're not currently used, and it's easy to accidentally pass a single pointer argument to them, causing an out-of-bounds read.
2016-09-21Remove special rules for Windows.h and library includesYuri Kunde Schlesner
2016-09-21Use negative priorities to avoid special-casing the self-includeYuri Kunde Schlesner
2016-09-21Remove empty newlines in #include blocks.Emmanuel Gil Peyrot
This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation.
2016-09-18Manually tweak source formatting and then re-run clang-formatYuri Kunde Schlesner
2016-09-18Sources: Run clang-format on everything.Emmanuel Gil Peyrot
2016-09-15microprofile: Double buffer size to 16MB.bunnei
2016-09-13Common: readdir_r() is deprecated, switch to readdir().Emmanuel Gil Peyrot
2016-07-23Protection against a resize of size 0Alexandre LittleWhite Laurent
2016-06-25Remove superfluous std::move in return std::move(local_var)scurest
2016-06-19Fix recursive scanning of directoriesYuri Kunde Schlesner
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.
2016-06-10Merge pull request #1789 from wwylele/input-refactorbunnei
Refactor input mapping & implement circle pad modifier
2016-05-30Merge pull request #1751 from linkmauve/no-recursive-readdirbunnei
Make recursive FileUtil functions take a maximum recursion
2016-05-27common_funcs: Provide rotr and rotl for MSVCMerryMage
2016-05-21Common: Make recursive FileUtil functions take a maximum recursionEmmanuel Gil Peyrot
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!
2016-05-15fixup! fixup! Refactor input systemwwylele
2016-05-15fixup! Refactor input systemwwylele
2016-05-15implement circle pad modifierwwylele
2016-05-15Refactor input subsystemwwylele
2016-05-08swap: Get rid of pointer casting for swapping structsLioncash
These shouldn't haphazardly convert types
2016-05-08swap: Get rid of undefined behavior in swapf and swapdLioncash
This isn't well-defined in C++.
2016-05-08swap: Remove unused methodsLioncash
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.