summaryrefslogtreecommitdiff
path: root/src/common (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #888 from lioncash/capsGravatar bunnei2018-08-012-0/+2
|\ | | | | service: Add capture services
| * service: Add capture servicesGravatar Lioncash2018-08-012-0/+2
| | | | | | | | | | Adds the basic skeleton for the capture services based off information provided by Switch Brew.
* | service: Add bpc and pcv servicesGravatar Lioncash2018-08-012-0/+4
|/ | | | | Adds the basic skeleton for the remaining pcv-related services based off information on Switch Brew.
* Merge pull request #864 from FearlessTobi/port-3973Gravatar bunnei2018-07-311-2/+30
|\ | | | | Port #3973 from Citra: "Remove polymorphism issue"
| * remove polymorphism issueGravatar B3n302018-07-291-2/+30
| |
* | Merge pull request #875 from lioncash/fgmGravatar bunnei2018-07-312-0/+2
|\ \ | | | | | | service: Add fgm services
| * | service: Add fgm servicesGravatar Lioncash2018-07-312-0/+2
| | | | | | | | | | | | | | | Adds the basic skeleton for the fgm services based off the information provided by Switch Brew.
* | | service: Add the pcie serviceGravatar Lioncash2018-07-312-0/+2
|/ / | | | | | | | | Adds the basic skeleton of the pcie service based off information on Switch Brew.
* | Port #3758 from Citra (#852): Add missing std::string import in text_formatterGravatar Tobias2018-07-301-0/+1
| |
* | Merge pull request #861 from FearlessTobi/port-3972Gravatar bunnei2018-07-302-81/+31
|\ \ | | | | | | Port #3972 from Citra: "common/timer: use std::chrono, avoid platform-dependent code"
| * | Port #3972 from Citra: "common/timer: use std::chrono, avoid ↵Gravatar zhupengfei2018-07-292-81/+31
| |/ | | | | | | platform-dependent code"
* | Merge pull request #862 from FearlessTobi/port-3997Gravatar bunnei2018-07-301-3/+5
|\ \ | | | | | | Port #3997 from Citra: "common/string_utils: replace boost::transform with std counterpart"
| * | common/string_utils: replace boost::transform with std counterpartGravatar zhupengfei2018-07-291-3/+5
| |/ | | | | | | Note: according to cppreference it is necessary to convert char to unsigned char when using std::tolower and std::toupper, otherwise the behaviour would be undefined.
* | Merge pull request #865 from FearlessTobi/port-3732Gravatar bunnei2018-07-302-4/+2
|\ \ | | | | | | Port #3732 from Citra: "common: Fix compilation on ARM"
| * | Port #3732 from Citra: "common: Fix compilation on ARM"Gravatar Cameron Cawley2018-07-292-4/+2
| |/
* | Merge pull request #857 from lioncash/wlanGravatar bunnei2018-07-302-0/+2
|\ \ | | | | | | service: Add wlan services
| * | service: Add wlan servicesGravatar Lioncash2018-07-282-0/+2
| |/ | | | | | | | | Adds the basic skeleton for the wlan services based off the information on Switch Brew.
* / service: Add btm servicesGravatar Lioncash2018-07-282-0/+2
|/ | | | | Adds the skeleton for the btm services based off the information on Switch Brew.
* Merge pull request #847 from lioncash/ncmGravatar bunnei2018-07-282-0/+2
|\ | | | | service: Add ncm services
| * service: Add ncm servicesGravatar Lioncash2018-07-272-0/+2
| | | | | | | | | | Adds the basic skeleton for the ncm services based off information on Switch Brew.
* | Merge pull request #846 from lioncash/miiGravatar bunnei2018-07-282-0/+2
|\ \ | |/ |/| service: Add mii services
| * service: Add mii servicesGravatar Lioncash2018-07-272-0/+2
| | | | | | | | | | Adds the skeleton for the mii services based off information provided by Switch Brew
* | Merge pull request #845 from lioncash/nfcGravatar bunnei2018-07-272-0/+2
|\ \ | | | | | | service: Add nfc services
| * | service: Add nfc servicesGravatar Lioncash2018-07-272-0/+2
| |/ | | | | | | | | Adds the skeleton of the nfc service based off the information provided on Switch Brew.
* / service/lbl: Implement EnableVrMode, DisableVrMode and GetVrModeGravatar Lioncash2018-07-272-0/+2
|/ | | | | Implements these functions according to the information available on Switch Brew.
* service: Add ldn servicesGravatar Lioncash2018-07-262-0/+2
| | | | Adds ldn services based off information provided by Switch Brew.
* VFS Regression and Accuracy Fixes (#776)Gravatar Zach Hilman2018-07-232-1/+13
| | | | | | | | | | | | | | | | * Regression and Mode Fixes * Review Fixes * string_view correction * Add operator& for FileSys::Mode * Return std::string from SanitizePath * Farming Simulator Fix * Use != With mode operator&
* string_util: Get rid of separate resize() in CPToUTF16(), UTF16ToUTF8(), ↵Gravatar Lioncash2018-07-221-20/+22
| | | | | | | | | | CodeToUTF8() and UTF8ToUTF16() There's no need to perform the resize separately here, since the constructor allows presizing the buffer. Also move the empty string check before the construction of the string to make the early out more straightforward.
* string_util: Use emplace_back() in SplitString() instead of push_back()Gravatar Lioncash2018-07-221-2/+3
| | | | | | | | | | | | | This is equivalent to doing: push_back(std::string("")); which is likely not to cause issues, assuming a decent std::string implementation with small-string optimizations implemented in its design, however it's still a little unnecessary to copy that buffer regardless. Instead, we can use emplace_back() to directly construct the empty string within the std::vector instance, eliminating any possible overhead from the copy.
* string_util: Remove unnecessary std::string instance in TabsToSpaces()Gravatar Lioncash2018-07-222-8/+7
| | | | | | We can just use the variant of std::string's replace() function that can replace an occurrence with N copies of the same character, eliminating the need to allocate a std::string containing a buffer of spaces.
* Merge pull request #768 from lioncash/string-viewGravatar bunnei2018-07-222-40/+55
|\ | | | | file_util, vfs: Use std::string_view where applicable
| * file_util, vfs: Use std::string_view where applicableGravatar Lioncash2018-07-222-40/+55
| | | | | | | | | | Avoids unnecessary construction of std::string instances where applicable.
* | Merge pull request #765 from lioncash/fileGravatar bunnei2018-07-221-24/+14
|\ \ | |/ |/| file_util: Remove goto usages from Copy()
| * file_util: Remove goto usages from Copy()Gravatar Lioncash2018-07-211-24/+14
| | | | | | | | | | | | We can just leverage std::unique_ptr to automatically close these for us in error cases instead of jumping to the end of the function to call fclose on them.
* | file_util: Use a u64 to represent number of entriesGravatar Lioncash2018-07-212-13/+13
| | | | | | | | | | This avoids a truncating cast on size. I doubt we'd ever traverse a directory this large, however we also shouldn't truncate sizes away.
* | file_util: std::move FST entries in ScanDirectoryTree()Gravatar Lioncash2018-07-211-1/+1
|/ | | | Avoids unnecessary copies when building up the FST entries.
* Merge pull request #759 from lioncash/redundantGravatar bunnei2018-07-211-2/+1
|\ | | | | file_util: Remove redundant duplicate return in GetPathWithoutTop()
| * file_util: Remove explicit type from std::min() in GetPathWithoutTop()Gravatar Lioncash2018-07-211-1/+1
| | | | | | | | | | Given both operands are the same type, there won't be an issue with overload selection that requires making this explicit.
| * file_util: Remove redundant duplicate return in GetPathWithoutTop()Gravatar Lioncash2018-07-211-1/+0
| |
* | Merge pull request #758 from lioncash/syncGravatar bunnei2018-07-212-86/+0
|\ \ | | | | | | common: Remove synchronized_wrapper.h
| * | common: Remove synchronized_wrapper.hGravatar Lioncash2018-07-212-86/+0
| |/ | | | | | | This is entirely unused in the codebase.
* / file_util: Use an enum class for GetUserPath()Gravatar Lioncash2018-07-213-50/+51
|/ | | | | | | | | | | | | Instead of using an unsigned int as a parameter and expecting a user to always pass in the correct values, we can just convert the enum into an enum class and use that type as the parameter type instead, which makes the interface more type safe. We also get rid of the bookkeeping "NUM_" element in the enum by just using an unordered map. This function is generally low-frequency in terms of calls (and I'd hope so, considering otherwise would mean we're slamming the disk with IO all the time) so I'd consider this acceptable in this case.
* Merge pull request #743 from lioncash/viewGravatar bunnei2018-07-204-57/+56
|\ | | | | logging: Use std::string_view where applicable
| * logging/filter: Use std::string_view in ParseFilterString()Gravatar Lioncash2018-07-202-41/+40
| | | | | | | | | | | | | | | | Allows avoiding constructing std::string instances, since this only reads an arbitrary sequence of characters. We can also make ParseFilterRule() internal, since it doesn't depend on any private instance state of Filter
| * logging/backend: Add missing standard includesGravatar Lioncash2018-07-202-4/+3
| | | | | | | | | | A few inclusions were being satisfied indirectly. To prevent breakages in the future, include these directly.
| * logging/backend: Use std::string_view in RemoveBackend() and GetBackend()Gravatar Lioncash2018-07-202-12/+13
| | | | | | | | | | | | These can just use a view to a string since its only comparing against two names in both cases for matches. This avoids constructing std::string instances where they aren't necessary.
* | param_package: Take std::string by value in string-based Set() functionGravatar Lioncash2018-07-202-4/+6
| | | | | | | | | | Allows avoiding string copies by letting the strings be moved into the function calls.
* | param_package: Use std::unordered_map's insert_or_assign instead of map indexingGravatar Lioncash2018-07-201-3/+3
| | | | | | | | | | | | | | | | | | | | | | This avoids a redundant std::string construction if a key doesn't exist in the map already. e.g. data[key] requires constructing a new default instance of the value in the map (but this is wasteful, since we're already setting something into the map over top of it).
* | param_package: Get rid of file-static std::string constructionGravatar Lioncash2018-07-201-3/+4
|/ | | | Avoids potential dynamic allocation occuring during program launch
* Merge pull request #711 from lioncash/swapGravatar bunnei2018-07-191-50/+50
|\ | | | | common/swap: Minor changes