Fix: TitleSequence spelling errors

```c++
bool TileSequenceSave(TitleSequence * seq);
bool TileSequenceAddPark(TitleSequence * seq, const utf8 * path, const
utf8 * name);
bool TileSequenceRenamePark(TitleSequence * seq, size_t index, const
utf8 * name);
```

Renamed to:

```c++
bool TitleSequenceSave(TitleSequence * seq);
bool TitleSequenceAddPark(TitleSequence * seq, const utf8 * path, const
utf8 * name);
bool TitleSequenceRenamePark(TitleSequence * seq, size_t index, const
utf8 * name);
```
This commit is contained in:
Robert Jordan 2017-10-14 17:56:09 -04:00 committed by Michael Steenbeek
parent 691fb3ab51
commit 74f1eb39a8
5 changed files with 15 additions and 15 deletions

View File

@ -297,9 +297,9 @@ static void window_title_command_editor_mouseup(rct_window *w, rct_widgetindex w
_sequence->Commands[insertIndex] = command; _sequence->Commands[insertIndex] = command;
} else { } else {
_sequence->Commands[_window_title_command_editor_index] = command; _sequence->Commands[_window_title_command_editor_index] = command;
TileSequenceSave(_sequence); TitleSequenceSave(_sequence);
} }
TileSequenceSave(_sequence); TitleSequenceSave(_sequence);
rct_window *title_editor_w = window_find_by_class(WC_TITLE_EDITOR); rct_window *title_editor_w = window_find_by_class(WC_TITLE_EDITOR);
if (title_editor_w != nullptr) { if (title_editor_w != nullptr) {

View File

@ -398,7 +398,7 @@ static void window_title_editor_mouseup(rct_window *w, rct_widgetindex widgetInd
if (w->selected_list_item >= (sint16)_editingTitleSequence->NumCommands) { if (w->selected_list_item >= (sint16)_editingTitleSequence->NumCommands) {
w->selected_list_item--; w->selected_list_item--;
} }
TileSequenceSave(_editingTitleSequence); TitleSequenceSave(_editingTitleSequence);
} }
} }
break; break;
@ -421,7 +421,7 @@ static void window_title_editor_mouseup(rct_window *w, rct_widgetindex widgetInd
*a = *b; *a = *b;
*b = tmp; *b = tmp;
w->selected_list_item++; w->selected_list_item++;
TileSequenceSave(_editingTitleSequence); TitleSequenceSave(_editingTitleSequence);
} }
} }
break; break;
@ -434,7 +434,7 @@ static void window_title_editor_mouseup(rct_window *w, rct_widgetindex widgetInd
*b = *a; *b = *a;
*a = tmp; *a = tmp;
w->selected_list_item--; w->selected_list_item--;
TileSequenceSave(_editingTitleSequence); TitleSequenceSave(_editingTitleSequence);
} }
} }
break; break;
@ -1016,7 +1016,7 @@ static void window_title_editor_add_park_callback(sint32 result, const utf8 * pa
return; return;
} }
TileSequenceAddPark(_editingTitleSequence, path, filename); TitleSequenceAddPark(_editingTitleSequence, path, filename);
} }
static void window_title_editor_rename_park(size_t index, const utf8 * name) static void window_title_editor_rename_park(size_t index, const utf8 * name)
@ -1036,7 +1036,7 @@ static void window_title_editor_rename_park(size_t index, const utf8 * name)
} }
} }
if (TileSequenceRenamePark(_editingTitleSequence, index, name)) { if (TitleSequenceRenamePark(_editingTitleSequence, index, name)) {
TileSequenceSave(_editingTitleSequence); TitleSequenceSave(_editingTitleSequence);
} }
} }

View File

@ -185,7 +185,7 @@ extern "C"
} }
} }
bool TileSequenceSave(TitleSequence * seq) bool TitleSequenceSave(TitleSequence * seq)
{ {
bool success = false; bool success = false;
utf8 * script = LegacyScriptWrite(seq); utf8 * script = LegacyScriptWrite(seq);
@ -217,7 +217,7 @@ extern "C"
return success; return success;
} }
bool TileSequenceAddPark(TitleSequence * seq, const utf8 * path, const utf8 * name) bool TitleSequenceAddPark(TitleSequence * seq, const utf8 * path, const utf8 * name)
{ {
// Get new save index // Get new save index
size_t index = SIZE_MAX; size_t index = SIZE_MAX;
@ -275,7 +275,7 @@ extern "C"
return true; return true;
} }
bool TileSequenceRenamePark(TitleSequence * seq, size_t index, const utf8 * name) bool TitleSequenceRenamePark(TitleSequence * seq, size_t index, const utf8 * name)
{ {
Guard::Assert(index < seq->NumSaves, GUARD_LINE); Guard::Assert(index < seq->NumSaves, GUARD_LINE);

View File

@ -94,9 +94,9 @@ extern "C"
* The pointer to the handle is invalid after calling this function. * The pointer to the handle is invalid after calling this function.
*/ */
void TitleSequenceCloseParkHandle(TitleSequenceParkHandle * handle); void TitleSequenceCloseParkHandle(TitleSequenceParkHandle * handle);
bool TileSequenceSave(TitleSequence * seq); bool TitleSequenceSave(TitleSequence * seq);
bool TileSequenceAddPark(TitleSequence * seq, const utf8 * path, const utf8 * name); bool TitleSequenceAddPark(TitleSequence * seq, const utf8 * path, const utf8 * name);
bool TileSequenceRenamePark(TitleSequence * seq, size_t index, const utf8 * name); bool TitleSequenceRenamePark(TitleSequence * seq, size_t index, const utf8 * name);
bool TitleSequenceRemovePark(TitleSequence * seq, size_t index); bool TitleSequenceRemovePark(TitleSequence * seq, size_t index);
bool TitleSequenceIsLoadCommand(const TitleCommand * command); bool TitleSequenceIsLoadCommand(const TitleCommand * command);

View File

@ -151,7 +151,7 @@ namespace TitleSequenceManager
seq->Path = String::Duplicate(path.c_str()); seq->Path = String::Duplicate(path.c_str());
seq->IsZip = true; seq->IsZip = true;
bool success = TileSequenceSave(seq); bool success = TitleSequenceSave(seq);
FreeTitleSequence(seq); FreeTitleSequence(seq);
size_t index = SIZE_MAX; size_t index = SIZE_MAX;