- 20 Sep, 2018 1 commit
-
-
Lioncash authored
Qt provides an overload of tr() that operates on quantities in relation to pluralization. This also allows the translation to adapt based on the target language rules better. For example, the previous code would result in an incorrect translation for the French language (which doesn't use the pluralized version of "result" in the case of a total of zero. While in English it's correct to use the pluralized version of "result", that is, "results" --- For example: English: "0 results" French: "0 résultat" (uses the singular form) In French, the noun being counted is singular if the quantity is 0 or 1. In English, on the other hand, if the noun being counted has a quantity of 0 or N > 1, then the noun is pluralized. --- For another example in a language that has different counting methods than the above, consider English and Irish. Irish has a special form of of a grammatical number called a dual. Which alters how a word is written when N of something is 2. This won't appear in this case with a direct number "2", but it would change if we ever used "Two" to refer to two of something. For example: English: "Zero results" Irish: "Toradh ar bith" English: "One result" Irish: "Toradh amháin" English: "Two results" Irish: "Dhá thorthaí" <- Dual case Which is an important distinction to make between singular and plural, because in other situations, "two" on its own would be written as "dó" in Irish. There's also a few other cases where the order the words are placed *and* whether or not the plural or singular variant of the word is used *and* whether or not the word is placed after or between a set of numbers can vary. Counting in Irish also differs depending on whether or not you're counting things (like above) or counting people, in which case an entirely different set of numbers are used. It's not important for this case, but it's provided as an example as to why one should never assume the placement of values in text will be like that of English or other languages. Some languages have very different ways to represent counting, and breaking up the translated string like this isn't advisable because it makes it extremely difficult to get right depending on what language a translator is translating text into due to the ambiguity of the strings being presented for translation. In this case a translator would see three fragmented strings on Transifex (and not necessarily grouped beside one another, but even then, it would still be annoying to decipher): - "of" - "result" - "results" There is no way a translator is going to know what those sets of words are actually used for unless they look at the code to see what is being done with them (which they shouldn't have to do).
-
- 19 Sep, 2018 17 commits
-
-
David authored
* Reworked incorrect nifm stubs Need confirmation on `CreateTemporaryNetworkProfile`, unsure which game uses it but according to reversing. It should return a uuid which we currently don't do. Any 0 client id is considered an invalid client id. GetRequestState 0 is considered invalid. * Fixups for nifm
-
bunnei authored
gl_rasterizer: Fix StartAddress handling with indexed draw calls.
-
bunnei authored
Fixed GetAccountId stub, Added error code for OpenDirectory and added ActivateNpadWithRevision
-
bunnei authored
Removed the use of rp.MakeBuilder in the yuzu codebase
-
David Marcec authored
With these, `Nintendo Entertainment System - Nintendo Switch Online` loads
-
Markus Wick authored
We uploaded the wrong data before. So the offset on the host GPU pointer may work for the first vertices, the last ones run out bounds. Let's just offset the upload instead.
-
David Marcec authored
-
David Marcec authored
Due to keeping the code style consistent in the yuzu codebase. `rb = rp.MakeBuilder(...)` was replaced with `rb{ctx, ...}`
-
bunnei authored
Implemented IProfile::GetImageSize
-
bunnei authored
audio_core: Replace includes with forward declarations where applicable.
-
bunnei authored
Implemented GetDefaultDisplayResolution
-
bunnei authored
core/core_cpu: Replace exclusive monitor include with forward declaration
-
bunnei authored
svc_wrap: Convert the PARAM macro into a function
-
bunnei authored
Stubbed ActivateConsoleSixAxisSensor & StartConsoleSixAxisSensor
-
bunnei authored
gl_shader_decompiler: Avoid truncation warnings within LD_A and ST_A code
-
bunnei authored
shader_decompiler: Implemented (Partialy) Control Codes and CSETP
-
bunnei authored
shader_decompiler: Asserts for Texture Instructions
-
- 18 Sep, 2018 15 commits
-
-
Philippe Babin authored
* Fix bug where default username value for yuzu_cmd create an userprofile with uninitialize data as username * Fix format * Apply code review changes * Remove nullptr check
-
bunnei authored
kernel/svc: Handle invalid address cases within svcArbitrateLock() and svcArbitrateUnlock()
-
bunnei authored
arm_interface: Remove ARM11-isms from the CPU interface
-
bunnei authored
arm_dynarmic: Correct ExclusiveWrite128()'s operation
-
David Marcec authored
-
David Marcec authored
-
David Marcec authored
-
David Marcec authored
-
David Marcec authored
-
Lioncash authored
This can just be a regular function, getting rid of the need to also explicitly undef the define at the end of the file. Given FuncReturn() was already converted into a function, it's #undef can also be removed.
-
Lioncash authored
Previously the second half of the value being written would overwrite the first half. Thankfully this wasn't a bug that was being encountered, as the function is currently unused.
-
Lioncash authored
This modifies the CPU interface to more accurately match an AArch64-supporting CPU as opposed to an ARM11 one. Two of the methods don't even make sense to keep around for this interface, as Adv Simd is used, rather than the VFP in the primary execution state. This is essentially a modernization change that should have occurred from the get-go.
-
Lioncash authored
We already have a ResultCode constant for the case of an invalid address, so we can just use it instead of re-rolling that ResultCode type.
-
Lioncash authored
The kernel does the equivalent of the following check before proceeding: if (address + 0x8000000000 < 0x7FFFE00000) { return ERR_INVALID_MEMORY_STATE; } which is essentially what our IsKernelVirtualAddress() function does. So we should also be checking for this. The kernel also checks if the given input addresses are 4-byte aligned, however our Mutex::TryAcquire() and Mutex::Release() functions already handle this, so we don't need to add code for this case.
-
FernandoS27 authored
-
- 17 Sep, 2018 7 commits
-
-
Lioncash authored
These are internally stored as u64 values, so using u32 here causes truncation warnings. Instead, we can just use u64 and preserve the bit width.
-
bunnei authored
Implemented (Partialy) Shader Header
-
Lioncash authored
We don't need to include this as a dependency within the header. A regular forward declaration will suffice here.
-
FernandoS27 authored
-
FernandoS27 authored
-
FernandoS27 authored
-
Lioncash authored
This isn't used within this header and isn't necessary.
-