mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 14:37:08 +00:00
moved tsc and asm utilities to rx
This commit is contained in:
parent
bd215fab92
commit
640df36c48
121 changed files with 706 additions and 1225 deletions
|
|
@ -20,7 +20,7 @@
|
|||
#include "cellos/sys_event.h"
|
||||
#include "cellos/sys_fs.h"
|
||||
|
||||
#include "util/asm.hpp"
|
||||
#include "rx/asm.hpp"
|
||||
#include <algorithm>
|
||||
#include <functional>
|
||||
#include <shared_mutex>
|
||||
|
|
@ -1490,7 +1490,7 @@ error_code sceNpTrophyGetGameProgress(u32 context, u32 handle,
|
|||
const u32 trp_count = ctxt->tropusr->GetTrophiesCount();
|
||||
|
||||
// Round result to nearest (TODO: Check 0 trophies)
|
||||
*percentage = trp_count ? utils::rounded_div(unlocked * 100, trp_count) : 0;
|
||||
*percentage = trp_count ? rx::rounded_div(unlocked * 100, trp_count) : 0;
|
||||
|
||||
if (trp_count == 0 || trp_count > 128)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue