Skip to content

Commit

Permalink
Merge pull request #112 from piotrmacha/union-fix-code
Browse files Browse the repository at this point in the history
Fix switch-case in union/sdk/getting_started.md
  • Loading branch information
kamilkrzyskow authored Feb 29, 2024
2 parents 37c5ecd + 4e2847f commit 1014dd0
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 1014dd0

Please sign in to comment.