mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-23 14:54:30 +01:00
Rename snake_case functions in openrct2/src folder
Co-authored-by: duncanspumpkin <duncans_pumpkin@hotmail.co.uk>
This commit is contained in:
@@ -265,7 +265,7 @@ public:
|
||||
InitWidgets();
|
||||
|
||||
sub_6AB211();
|
||||
reset_selected_object_count_and_size();
|
||||
ResetSelectedObjectCountAndSize();
|
||||
|
||||
widgets[WIDX_FILTER_TEXT_BOX].string = _filter_string;
|
||||
|
||||
@@ -293,9 +293,9 @@ public:
|
||||
*/
|
||||
void OnClose() override
|
||||
{
|
||||
unload_unselected_objects();
|
||||
UnloadUnselectedObjects();
|
||||
EditorLoadSelectedObjects();
|
||||
editor_object_flags_free();
|
||||
EditorObjectFlagsFree();
|
||||
|
||||
if (_loadedObject != nullptr)
|
||||
_loadedObject->Unload();
|
||||
@@ -356,12 +356,12 @@ public:
|
||||
WindowClose(*this);
|
||||
if (gScreenFlags & SCREEN_FLAGS_EDITOR)
|
||||
{
|
||||
finish_object_selection();
|
||||
FinishObjectSelection();
|
||||
}
|
||||
if (gScreenFlags & SCREEN_FLAGS_TRACK_MANAGER)
|
||||
{
|
||||
game_notify_map_change();
|
||||
game_unload_scripts();
|
||||
GameNotifyMapChange();
|
||||
GameUnloadScripts();
|
||||
title_load();
|
||||
}
|
||||
break;
|
||||
@@ -594,7 +594,7 @@ public:
|
||||
|
||||
if (gScreenFlags & SCREEN_FLAGS_TRACK_MANAGER)
|
||||
{
|
||||
const auto objectSelectResult = window_editor_object_selection_select_object(
|
||||
const auto objectSelectResult = WindowEditorObjectSelectionSelectObject(
|
||||
0, INPUT_FLAG_EDITOR_OBJECT_SELECT, listItem->repositoryItem);
|
||||
if (!objectSelectResult.Successful)
|
||||
return;
|
||||
@@ -614,7 +614,7 @@ public:
|
||||
inputFlags |= INPUT_FLAG_EDITOR_OBJECT_SELECT;
|
||||
|
||||
_gSceneryGroupPartialSelectError = std::nullopt;
|
||||
const auto objectSelectResult = window_editor_object_selection_select_object(0, inputFlags, listItem->repositoryItem);
|
||||
const auto objectSelectResult = WindowEditorObjectSelectionSelectObject(0, inputFlags, listItem->repositoryItem);
|
||||
if (!objectSelectResult.Successful)
|
||||
{
|
||||
StringId error_title = (inputFlags & INPUT_FLAG_EDITOR_OBJECT_SELECT) ? STR_UNABLE_TO_SELECT_THIS_OBJECT
|
||||
@@ -1161,7 +1161,7 @@ private:
|
||||
sortFunc = VisibleListSortRideName;
|
||||
break;
|
||||
default:
|
||||
log_warning("Wrong sort type %d, leaving list as-is.", _listSortType);
|
||||
LOG_WARNING("Wrong sort type %d, leaving list as-is.", _listSortType);
|
||||
break;
|
||||
}
|
||||
if (sortFunc != nullptr)
|
||||
@@ -1577,7 +1577,7 @@ void EditorLoadSelectedObjects()
|
||||
loadedObject = objManager.LoadObject(descriptor);
|
||||
if (loadedObject == nullptr)
|
||||
{
|
||||
log_error("Failed to load entry %s", std::string(descriptor.GetName()).c_str());
|
||||
LOG_ERROR("Failed to load entry %s", std::string(descriptor.GetName()).c_str());
|
||||
}
|
||||
else if (!(gScreenFlags & SCREEN_FLAGS_EDITOR))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user