1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-26 00:04:43 +01:00

add ability to set RCT2 path by command line

This commit is contained in:
IntelOrca
2016-01-12 19:08:41 +00:00
parent df2b793c0a
commit 8cf53c12af
9 changed files with 185 additions and 9 deletions

View File

@@ -129,4 +129,16 @@ namespace String
size_t srcSize = SizeOf(src);
return Memory::DuplicateArray(src, srcSize + 1);
}
utf8 * DiscardUse(utf8 * * ptr, utf8 * replacement)
{
Memory::Free(*ptr);
*ptr = replacement;
return replacement;
}
utf8 * DiscardDuplicate(utf8 * * ptr, utf8 * replacement)
{
return DiscardUse(ptr, String::Duplicate(replacement));
}
}