mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-06 06:32:56 +01:00
Improve multilaunch test to delete the load result
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
#include <openrct2/core/Path.hpp>
|
||||
#include <openrct2/core/String.hpp>
|
||||
#include <openrct2/OpenRCT2.h>
|
||||
#include <openrct2/ParkImporter.h>
|
||||
#include "TestData.h"
|
||||
|
||||
extern "C"
|
||||
@@ -29,7 +30,11 @@ TEST(MultiLaunchTest, all)
|
||||
bool initialised = context->Initialise();
|
||||
ASSERT_TRUE(initialised);
|
||||
|
||||
game_load_sv6_path(path.c_str());
|
||||
ParkLoadResult * plr = game_load_sv6_path(path.c_str());
|
||||
|
||||
ASSERT_EQ(ParkLoadResult_GetError(plr), PARK_LOAD_ERROR_OK);
|
||||
ParkLoadResult_Delete(plr);
|
||||
|
||||
game_load_init();
|
||||
|
||||
// Check ride count to check load was successful
|
||||
|
||||
Reference in New Issue
Block a user