1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-17 20:13:07 +01:00

Write new code for loading title sequence ZIPs

This commit is contained in:
Ted John
2016-11-12 15:52:03 +00:00
parent c4926ff8d5
commit e6377b40ef
12 changed files with 384 additions and 15 deletions

View File

@@ -71,6 +71,16 @@ namespace Path
lastPathSeperator + 1;
}
utf8 * GetFileNameWithoutExtension(const utf8 * path)
{
size_t maxSize = String::SizeOf(path) + 1;
utf8 * result = Memory::Allocate<utf8>(maxSize);
GetFileNameWithoutExtension(result, maxSize, path);
size_t reducedSize = String::SizeOf(path) + 1;
result = Memory::Reallocate(result, reducedSize);
return result;
}
utf8 * GetFileNameWithoutExtension(utf8 * buffer, size_t bufferSize, const utf8 * path)
{
path = GetFileName(path);