1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-02-02 19:56:13 +01:00

Split declarations and definitions to improve compile times when editing (#13332)

* Split FileStream declarations and definitions

* Split JobPool declarations and definitions

* Split StringBuilder declarations and definitions

* Split StringReader declarations and definitions

* Split ZoomLevel declarations and definitions

* Fix missing include in FileClassifier.cpp

* Remove pragma once from source files

* Fix missing include in StringBuilder.h

* Update Xcode project

* Fix compilation of tests

Co-authored-by: Michael Steenbeek <m.o.steenbeek@gmail.com>
This commit is contained in:
Hielke Morsink
2020-11-07 13:42:04 +01:00
committed by GitHub
parent 92a5f1aa24
commit f0c1ea1d37
49 changed files with 823 additions and 637 deletions

View File

@@ -15,6 +15,9 @@
#include <gtest/gtest.h>
#ifndef _WIN32
# include "openrct2/core/File.h"
# include "openrct2/platform/platform.h"
const language_descriptor LanguagesDescriptors[] = {};
#endif
@@ -124,3 +127,20 @@ const unsigned char LanguagePackTest::LanguageZhTW[] = {
0x59, 0x20, 0x20, 0x20, 0x20, 0x3a, 0xe6, 0xaf, 0x8f, 0xe8, 0xbb, 0x8a, 0xe5, 0x8d, 0xa1, 0x34, 0xe4, 0xbd, 0x8d, 0xe4,
0xb9, 0x98, 0xe5, 0xae, 0xa2, 0x0a, 0x00,
};
#ifndef _WIN32
bool platform_ensure_directory_exists(const utf8* path)
{
return true;
}
bool platform_directory_exists(const utf8* path)
{
return true;
}
bool File::Exists(const std::string& path)
{
return true;
}
#endif