clang-format

This commit is contained in:
Anonymous Maarten 2024-12-29 18:10:03 +01:00
parent 7ee594b3bd
commit dfdc780173
3 changed files with 15 additions and 12 deletions

View File

@ -531,7 +531,8 @@ void IsleApp::LoadConfig()
iniConfig = new char[strlen(prefPath) + strlen("isle.ini") + 1](); iniConfig = new char[strlen(prefPath) + strlen("isle.ini") + 1]();
strcat(iniConfig, prefPath); strcat(iniConfig, prefPath);
strcat(iniConfig, "isle.ini"); strcat(iniConfig, "isle.ini");
} else { }
else {
iniConfig = new char[strlen("isle.ini") + 1]; iniConfig = new char[strlen("isle.ini") + 1];
strcpy(iniConfig, "isle.ini"); strcpy(iniConfig, "isle.ini");
} }

View File

@ -184,7 +184,9 @@ MxLong RegistrationBook::HandleKeyPress(SDL_Keycode p_key)
m_name[0][m_unk0x280.m_cursorPos] = m_alphabet[key - 'A']->Clone(); m_name[0][m_unk0x280.m_cursorPos] = m_alphabet[key - 'A']->Clone();
if (m_name[0][m_unk0x280.m_cursorPos] != NULL) { if (m_name[0][m_unk0x280.m_cursorPos] != NULL) {
m_alphabet[key - SDLK_A]->GetAction()->SetUnknown24(m_alphabet[key - SDLK_A]->GetAction()->GetUnknown24() + 1); m_alphabet[key - SDLK_A]->GetAction()->SetUnknown24(
m_alphabet[key - SDLK_A]->GetAction()->GetUnknown24() + 1
);
m_name[0][m_unk0x280.m_cursorPos]->Enable(TRUE); m_name[0][m_unk0x280.m_cursorPos]->Enable(TRUE);
m_name[0][m_unk0x280.m_cursorPos]->SetTickleState(MxPresenter::e_repeating); m_name[0][m_unk0x280.m_cursorPos]->SetTickleState(MxPresenter::e_repeating);
m_name[0][m_unk0x280.m_cursorPos]->SetPosition(m_unk0x280.m_cursorPos * 23 + 343, 121); m_name[0][m_unk0x280.m_cursorPos]->SetPosition(m_unk0x280.m_cursorPos * 23 + 343, 121);