mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 14:08:37 +00:00
Fix game category issues
Fix cellGameDataCheckCreate2 PARAM.SFO Fix trophy initialization for gamedata (game patch) Implement psf::assign Potentially fix cellGameSetParamString
This commit is contained in:
parent
e768bdc80f
commit
14929a1497
3 changed files with 45 additions and 29 deletions
|
|
@ -53,15 +53,30 @@ namespace psf
|
|||
// Get integer value or default value
|
||||
u32 get_integer(const registry& psf, const std::string& key, u32 def = 0);
|
||||
|
||||
// Assign new entry
|
||||
inline void assign(registry& psf, const std::string& key, entry&& _entry)
|
||||
{
|
||||
const auto found = psf.find(key);
|
||||
|
||||
if (found == psf.end())
|
||||
{
|
||||
psf.emplace(key, std::move(_entry));
|
||||
return;
|
||||
}
|
||||
|
||||
found->second = std::move(_entry);
|
||||
return;
|
||||
}
|
||||
|
||||
// Make string entry
|
||||
inline entry string(u32 max_size, const std::string& value)
|
||||
{
|
||||
return{ format::string, max_size, value };
|
||||
return {format::string, max_size, value};
|
||||
}
|
||||
|
||||
// Make array entry
|
||||
inline entry array(u32 max_size, const std::string& value)
|
||||
{
|
||||
return{ format::array, max_size, value };
|
||||
return {format::array, max_size, value};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue