game: default to 8181 for the nrepl in the subtitle editor

This commit is contained in:
Tyler Wilding
2024-06-02 13:02:43 -04:00
parent a657d6b4bf
commit a7a0147e99
2 changed files with 1 additions and 4 deletions
@@ -197,7 +197,7 @@ void SubtitleEditor::draw_repl_options() {
ImGui::Text("REPL Connected, should be good to go!");
ImGui::PopStyleColor();
} else {
if (ImGui::Button("Connect to REPL")) {
if (ImGui::Button("Connect to REPL on Port 8181")) {
m_repl.connect();
if (!m_repl.is_connected()) {
ImGui::PushStyleColor(ImGuiCol_Text, m_error_text_color);
@@ -8,9 +8,6 @@
SubtitleEditorReplClient::SubtitleEditorReplClient() {
int port = 8181;
if (g_game_version == GameVersion::Jak2) {
port = 8182;
}
m_repl = std::make_unique<ReplClient>(port);
}