mirror of
https://github.com/thunderbrewhq/squall.git
synced 2025-12-12 18:42:28 +00:00
fix(registry): squash some warnings, try to get it to compile on mac
This commit is contained in:
parent
6d502fbc23
commit
ec79f16a9a
1 changed files with 2 additions and 2 deletions
|
|
@ -50,7 +50,7 @@ bool GetDefaultsAndKeyPath(const char* key, const char* name, uint32_t flags, NS
|
|||
|
||||
if (name && *name) {
|
||||
if (key && *key) {
|
||||
length = SStrPrintf(path, size, "%s/%s", key, name);
|
||||
length = SStrPrintf(path, size, "%s/%s", nextcomponent, name);
|
||||
} else {
|
||||
length = SStrCopy(path, name, size);
|
||||
}
|
||||
|
|
@ -84,7 +84,7 @@ id GetObject(const char* keyname, const char* valuename, uint32_t flags) {
|
|||
}
|
||||
|
||||
bool SetObject(const char* key, const char* name, uint32_t flags, NSObject* object) {
|
||||
NSUserDefaults* defaults
|
||||
NSUserDefaults* defaults;
|
||||
char path[STORM_MAX_PATH];
|
||||
if (!GetDefaultsAndKeyPath(keyname, valuename, flags, &defaults, path, STORM_MAX_PATH)) {
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue