Skip to content

Commit

Permalink
Fix switch-case in union/sdk/getting_started.md
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrmacha committed Feb 29, 2024
1 parent 8e15b79 commit 4e2847f
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions docs/zengin/union/sdk/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,21 @@ void Game_Init() {

CStringA gothicVersion;
switch (Union.GetEngineVersion()) {
case Engine_G1: gothicVersion = "Gothic I";
case Engine_G1A: gothicVersion = "Gothic Sequel";
case Engine_G2: gothicVersion = "Gothic II";
case Engine_G2A: gothicVersion = "Gothic II NoTR";
case Engine_G1:
gothicVersion = "Gothic I";
break;
case Engine_G1A:
gothicVersion = "Gothic Sequel";
break;
case Engine_G2:
gothicVersion = "Gothic II";
break;
case Engine_G2A:
gothicVersion = "Gothic II NoTR";
break;
default:
gothicVersion = "Not possible case. Engine version doesn't match any known engine.";
break;
}

CStringA message = "Plugin: " + myPlugin->GetName() + "\n";
Expand Down

0 comments on commit 4e2847f

Please sign in to comment.