summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2018-07-19Merge pull request #725 from lioncash/bytesbunnei
pl_u: Specify correct size for buffers in GetSharedFontInOrderOfPriority()
2018-07-19Merge pull request #728 from Subv/acc_profilebunnei
HLE/ACC: Change the default user id and small improvements to the way we handle profiles
2018-07-19Merge pull request #727 from Subv/acc_usersbunnei
HLE/ACC: Write a single whole user id in ListAllUsers and ListOpenUsers.
2018-07-19Merge pull request #724 from lioncash/printfbunnei
pl_u: Remove printf specifier in log call in a log call in GetSharedFontInOrderOfPriority()
2018-07-19Merge pull request #723 from lioncash/gdbbunnei
gdbstub: Get rid of a few signed/unsigned comparisons
2018-07-19Merge pull request #722 from lioncash/signedbunnei
hid: Resolve a signed/unsigned comparison warning
2018-07-19Merge pull request #721 from lioncash/svcbunnei
svc: Correct always true assertion case in SetThreadCoreMask
2018-07-19Merge pull request #719 from lioncash/docsbunnei
loader: Amend Doxygen comments
2018-07-19Merge pull request #718 from lioncash/readbunnei
loader/nso: Check if read succeeded in IdentifyFile() before checking magic value
2018-07-19Merge pull request #717 from lioncash/explicitbunnei
hle/service: Make constructors explicit where applicable
2018-07-19HLE/ACC: Return an IProfile that is consistent with what was requested.Subv
The default username for now is "yuzu". We should eventually allow the creation of users in the emulator and have the ability to modify their parameters.
2018-07-19HLE/ACC: Change the default user id to be consistent with what we tell games ↵Subv
on startup. In IApplicationFunctions::PopLaunchParameter we tell the games that they were launched as user id 1.
2018-07-19HLE/ACC: Write a single whole user id in ListAllUsers and ListOpenUsers.Subv
We only emulate a single user id for now.
2018-07-19Merge pull request #716 from lioncash/constructbunnei
nvflinger: Emplace Display instances directly
2018-07-19Merge pull request #715 from lioncash/const-refbunnei
nvdrv: Take std::string by const reference in GetDevice()
2018-07-19Merge pull request #720 from Subv/getentrytype_rootSebastian Valle
Filesystem: Return EntryType::Directory for the root directory.
2018-07-19pl_u: Specify correct size for buffers in GetSharedFontInOrderOfPriority()Lioncash
This WriteBuffer overload expects its size argument to be in bytes, not elements.
2018-07-19svc: Correct always true assertion case in SetThreadCoreMaskLioncash
The reason this would never be true is that ideal_processor is a u8 and THREADPROCESSORID_DEFAULT is an s32. In this case, it boils down to how arithmetic conversions are performed before performing the comparison. If an unsigned value has a lesser conversion rank (aka smaller size) than the signed type being compared, then the unsigned value is promoted to the signed value (i.e. u8 -> s32 happens before the comparison). No sign-extension occurs here either. An alternative phrasing: Say we have a variable named core and it's given a value of -2. u8 core = -2; This becomes 254 due to the lack of sign. During integral promotion to the signed type, this still remains as 254, and therefore the condition will always be true, because no matter what value the u8 is given it will never be -2 in terms of 32 bits. Now, if one type was a s32 and one was a u32, this would be entirely different, since they have the same bit width (and the signed type would be converted to unsigned instead of the other way around) but would still have its representation preserved in terms of bits, allowing the comparison to be false in some cases, as opposed to being true all the time. --- We also get rid of two signed/unsigned comparison warnings while we're at it.
2018-07-19pl_u: Remove printf specifier in log call in a log call in ↵Lioncash
GetSharedFontInOrderOfPriority() This can just use the fmt specifiers and be type-agnostic.
2018-07-19Merge pull request #714 from lioncash/indexSebastian Valle
hle_ipc: Amend usage of buffer_index within one of HLERequestContext's WriteBuffer() overloads
2018-07-19Merge pull request #712 from lioncash/fspbunnei
fsp_srv: Misc individual changes
2018-07-19gdbstub: Get rid of a few signed/unsigned comparisonsLioncash
Ensures both operands in comparisons are the same signedness.
2018-07-19hid: Use a ranged-for loops in UpdatePadCallbackLioncash
Modernizes the loops themselves while also getting rid of a signed/unsigned comparison in a loop condition.
2018-07-19hid: Use HID_NUM_LAYOUTS constant for indicating size of the layouts arrayLioncash
Gets rid of the use of a magic constant
2018-07-19Merge pull request #713 from lioncash/filesysbunnei
filesystem: Minor changes
2018-07-19Merge pull request #711 from lioncash/swapbunnei
common/swap: Minor changes
2018-07-19Merge pull request #710 from lioncash/unusedbunnei
common/common_funcs: Remove unused rotation functions
2018-07-19Merge pull request #694 from lioncash/warnbunnei
loader/{nro, nso}: Resolve compilation warnings
2018-07-19Filesystem: Return EntryType::Directory for the root directory.Subv
It is unknown if this is correct behavior, but it makes sense and fixes a regression with Stardew Valley.
2018-07-19loader: Amend Doxygen commentsLioncash
These weren't adjusted when VFS was introduced
2018-07-19Merge pull request #709 from lioncash/thread-localbunnei
common/misc: Deduplicate code in GetLastErrorMsg()
2018-07-19loader/nso: Check if read succeeded in IdentifyFile() before checking magic ↵Lioncash
value We should always assume the filesystem is volatile and check each IO operation. While we're at it reorganize checks so that early-out errors are near one another.
2018-07-19hle/service: Make constructors explicit where applicableLioncash
Prevents implicit construction and makes these lingering non-explicit constructors consistent with the rest of the other classes in services.
2018-07-19nvflinger: Emplace Display instances directlyLioncash
We can use emplace_back to construct the Display instances directly, instead of constructing them separately and copying them, avoiding the need to copy std::string and std::vector instances that are part of the Display struct.
2018-07-19Merge pull request #705 from lioncash/string-refbunnei
file_util: return string by const reference for GetExeDirectory()
2018-07-19Merge pull request #704 from lioncash/stringbunnei
string_util: Remove AsciiToHex()
2018-07-19Merge pull request #703 from lioncash/constbunnei
savedata_factory: Make SaveDataDescriptor's DebugInfo() function a const member function
2018-07-19Merge pull request #702 from lioncash/initializebunnei
partition_filesystem: Ensure all class members of PartitionFilesystem are initialized
2018-07-19Merge pull request #701 from lioncash/movingbunnei
content_archive: Minor changes
2018-07-19nvdrv: Take std::string by const reference in GetDevice()Lioncash
This is only ever used as a lookup into the device map, so we don't need to take the std::string instance by value here.
2018-07-19hle_ipc: Amend usage of buffer_index within one of HLERequestContext's ↵Lioncash
WriteBuffer() overloads Previously, the buffer_index parameter was unused, causing all writes to use the buffer index of zero, which is not necessarily what is wanted all the time. Thankfully, all current usages don't use a buffer index other than zero, so this just prevents a bug before it has a chance to spring.
2018-07-19fsp_srv: Remove unnecessary vector construction in IFile's Write() functionLioncash
We can avoid constructing a std::vector here by simply passing a pointer to the original data and the size of the copy we wish to perform to the backend's Write() function instead, avoiding copying the data where it's otherwise not needed.
2018-07-19fsp_srv: Remove unnecessary std::vector construction in IDirectory's Read() ↵Lioncash
function We were using a second std::vector as a buffer to convert another std::vector's data into a byte sequence, however we can just use pointers to the original data and use them directly with WriteBuffer, which avoids copying the data at all into a separate std::vector. We simply cast the pointers to u8* (which is allowed by the standard, given std::uint8_t is an alias for unsigned char on platforms that we support).
2018-07-19Merge pull request #699 from lioncash/vfsbunnei
vfs: Deduplicate accumulation code in VfsDirectory's GetSize()
2018-07-19Merge pull request #697 from bunnei/disable-depth-cullbunnei
gl_state: Temporarily disable culling and depth test.
2018-07-19filesystem: std::move VirtualDir instance in VfsDirectoryServiceWrapper's ↵Lioncash
constructor Avoids unnecessary atomic reference count incrementing and decrementing
2018-07-19filesystem: Use std::string's empty() function instead of comparing against ↵Lioncash
a literal This is simply a basic value check as opposed to potentially doing string based operations (unlikely, but still, avoiding it is free).
2018-07-19filesystem: Remove pragma disabling global optimizationsLioncash
This was just an artifact missed during PR review.
2018-07-19fsp_srv: Make IStorage constructor explicitLioncash
Prevents implicit conversions.
2018-07-19fsp_srv: Add missing includesLioncash
Gets rid of relying on indirect inclusions.