1. 27 Nov, 2018 15 commits
    • Lioncash's avatar
      yuzu/configure_input: Make CallConfigureDialog a non-member template function · 0782d397
      Lioncash authored
      This doesn't depend on any part of the private interface, so it can be
      made a non-member internal function.
      0782d397
    • Lioncash's avatar
      yuzu/configure_input_player: Use a lambda expression instead of std::bind · 11cf13a6
      Lioncash authored
      std::bind is the pre-C++11 way of doing this.
      11cf13a6
    • Lioncash's avatar
      yuzu/configure_input_player: Amend constructor initializer list order · 73a48d65
      Lioncash authored
      Orders the elements the way they would actually be initialized in.
      Resolves compiler warnings with gcc and clang
      73a48d65
    • Lioncash's avatar
      53bff537
    • Lioncash's avatar
      yuzu/configure_input*: Move data members after function declarations · d67e88e5
      Lioncash authored
      The common pattern is to put the data members after the function
      interface where applicable.
      d67e88e5
    • Lioncash's avatar
      ec7ea4ae
    • bunnei's avatar
      Merge pull request #1806 from ReinUsesLisp/morton-fixup · 1cd40f10
      bunnei authored
      morton: Fixup compiler warning
      1cd40f10
    • bunnei's avatar
      Merge pull request #1804 from lioncash/cast · 11c17465
      bunnei authored
      gdbstub: Silence value truncation warning within FpuWrite()
      11c17465
    • bunnei's avatar
      Merge pull request #1805 from lioncash/resource · 852a462d
      bunnei authored
      svc: Implement svcCreateResourceLimit, svcGetResourceLimitCurrentValue(), svcGetResourceLimitLimitValue(), and svcSetResourceLimitLimitValue()
      852a462d
    • Lioncash's avatar
      svc: Implement svcSetResourceLimitLimitValue() · 5905162e
      Lioncash authored
      The opposite of the getter functions, this function sets the limit value
      for a particular ResourceLimit resource category, with the restriction
      that the  new limit value must be equal to or greater than the current
      resource value. If this is violated, then ERR_INVALID_STATE is returned.
      
      e.g.
      
      Assume:
      
      current[Events] = 10;
      limit[Events] = 20;
      
      a call to this service function lowering the limit value to 10 would be
      fine, however, attempting to lower it to 9 in this case would cause an
      invalid state error.
      5905162e
    • Lioncash's avatar
      svc: Implement svcGetResourceLimitCurrentValue() · eb559604
      Lioncash authored
      This kernel service function is essentially the exact same as
      svcGetResourceLimitLimitValue(), with the only difference being that it
      retrieves the current value for a given resource category using the
      provided resource limit handle, rather than retrieving the limiting
      value of that resource limit instance.
      
      Given these are exactly the same and only differ on returned values, we
      can extract the existing code for svcGetResourceLimitLimitValue() to
      handle both values.
      eb559604
    • ReinUsesLisp's avatar
      morton: Fixup compiler warning · 237c2026
      ReinUsesLisp authored
      237c2026
    • Lioncash's avatar
      svc: Implement svcGetResourceLimitLimitValue() · 1d6399c2
      Lioncash authored
      This kernel service function retrieves the maximum allowable value for
      a provided resource category for a given resource limit instance. Given
      we already have the functionality added to the resource limit instance
      itself, it's sufficient to just hook it up.
      
      The error scenarios for this are:
      
      1. If an invalid resource category type is provided, then ERR_INVALID_ENUM is returned.
      
      2. If an invalid handle is provided, then ERR_INVALID_HANDLE is returned (bad thing goes in, bad thing goes out, as one would expect).
      
      If neither of the above error cases occur, then the out parameter is
      provided with the maximum limit value for the given category and success
      is returned.
      1d6399c2
    • Lioncash's avatar
      svc: Implement svcCreateResourceLimit() · 4ef2af8c
      Lioncash authored
      This function simply creates a ResourceLimit instance and attempts to
      create a handle for it within the current process' handle table. If the
      kernal fails to either create the ResourceLimit instance or create a
      handle for the ResourceLimit instance, it returns a failure code
      (OUT_OF_RESOURCE, and HANDLE_TABLE_FULL respectively). Finally, it exits
      by providing the output parameter with the handle value for the
      ResourceLimit instance and returning that it was successful.
      
      Note: We do not return OUT_OF_RESOURCE because, if yuzu runs out of
      available memory, then new will currently throw. We *could* allocate the
      kernel instance with std::nothrow, however this would be inconsistent
      with how all other kernel objects are currently allocated.
      4ef2af8c
    • Lioncash's avatar
      gdbstub: Silence value truncation warning within FpuWrite() · 474c7455
      Lioncash authored
      Previously this would cause an implicit truncation warning about
      assigning a u64 value to a u32 value without an explicit cast.
      474c7455
  2. 26 Nov, 2018 11 commits
  3. 25 Nov, 2018 8 commits
  4. 24 Nov, 2018 6 commits