summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2018-07-20arm_test_common: Get rid of truncation warningsLioncash
Explicitly cast the value to a u8 to show that this is intentional.
2018-07-20arm_test_common: Make file static variable a member variable of the testing ↵Lioncash
environment Gets rid of file-static behavior.
2018-07-20arm_test_common: Add missing header guardLioncash
2018-07-20Merge pull request #740 from Subv/acc_crashbunnei
HLE/ACC: Stub IManagerForApplication::GetAccountId to return an error.
2018-07-20Merge pull request #738 from lioncash/signbunnei
gl_state: Get rid of mismatched sign conversions in Apply()
2018-07-20Merge pull request #737 from lioncash/movebunnei
filesys/loader: std::move VirtualFile instances in constructors where applicable
2018-07-20Merge pull request #736 from lioncash/nullbunnei
audout_u/audren_u: Ensure null terminators are written out in ListAudioOutsImpl(), ListAudioDeviceName(), and GetActiveAudioDeviceName()
2018-07-20Merge pull request #735 from lioncash/video-unusedbunnei
maxwell_3d: Remove unused variable within GetStageTextures()
2018-07-20Merge pull request #734 from lioncash/threadbunnei
thread: Convert ThreadStatus into an enum class
2018-07-20Merge pull request #733 from lioncash/dirsbunnei
partition_filesystem: Return pfs_dirs member variable within GetSubdirectories()
2018-07-20Merge pull request #732 from lioncash/unusedbunnei
nso: Minor changes
2018-07-20Merge pull request #731 from lioncash/shadowbunnei
gl_shader_decompiler: Eliminate variable and declaration shadowing
2018-07-20HLE/ACC: Stub IManagerForApplication::GetAccountId to return an error.Subv
And make IManagerForApplication::CheckAvailability always return false. Returning a bogus id from GetAccountId causes games to crash on boot. We should investigate this with a hwtest and either stub it properly or implement it.
2018-07-20gl_state: Make references const where applicable in Apply()Lioncash
2018-07-20gl_state: Get rid of mismatched sign conversionsLioncash
While we're at it, amend the loop variable type to be the same width as that returned by the .size() call.
2018-07-20loader/{nca, nro}: std::move VirtualFile in the constructors where applicableLioncash
This avoids unnecessary atomic reference count increments and decrements
2018-07-20vfs_offset: std::move file and name parameters of OffsetVfsFileLioncash
Avoids potentially unnecessary atomic reference count incrementing and decrementing, as well as string copying.
2018-07-19Merge pull request #730 from lioncash/stringbunnei
gl_shader_decompiler: Remove unnecessary const from return values
2018-07-19audren_u: Use a std::array instead of std::string for holding the audio ↵Lioncash
interface/device name std::string doesn't include the null-terminator in its data() + size() range. This ensures that the null-terminator will also be written to the buffer
2018-07-19audout_u: Use a std::array instead of std::string for holding the audio ↵Lioncash
interface name Uses a type that doesn't potentially dynamically allocate, and ensures that the name of the interface is properly null-terminated when writing it to the buffer.
2018-07-19maxwell_3d: Remove unused variable within GetStageTextures()Lioncash
2018-07-19thread: Convert ThreadStatus into an enum classLioncash
Makes the thread status strongly typed, so implicit conversions can't happen. It also makes it easier to catch mistakes at compile time.
2018-07-19partition_filesystem: Return pfs_dirs member variable within GetSubdirectories()Lioncash
This should be returned here, otherwise pfs_dirs is effectively only ever added to, but never read.
2018-07-19nso: Silence implicit sign conversion warningsLioncash
2018-07-19nso: Remove unused function ReadSegment()Lioncash
2018-07-19gl_shader_decompiler: Eliminate variable and declaration shadowingLioncash
Ensures that no identifiers are being hidden, which also reduces compiler warnings.
2018-07-19gl_shader_decompiler: Remove unnecessary const from return valuesLioncash
This adds nothing from a behavioral point of view, and can inhibit the move constructor/RVO
2018-07-19pl_u: Simplify WriteBuffer() calls in GetSharedFontInOrderOfPriority()Lioncash
With the new overload, we can simply pass the container directly.
2018-07-19Merge pull request #726 from lioncash/overloadbunnei
hle_ipc: Introduce generic WriteBuffer overload for multiple container types
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-19hle_ipc: Introduce generic WriteBuffer overload for multiple container typesLioncash
This introduces a slightly more generic variant of WriteBuffer(). Notably, this variant doesn't constrain the arguments to only accepting std::vector instances. It accepts whatever adheres to the ContiguousContainer concept in the C++ standard library. This essentially means, std::array, std::string, and std::vector can be used directly with this interface. The interface no longer forces you to solely use containers that dynamically allocate. To ensure our overloads play nice with one another, we only enable the container-based WriteBuffer if the argument is not a pointer, otherwise we fall back to the pointer-based one.
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