about summary refs log tree commit diff stats
path: root/data/maps/the_plaza/connections.txtpb
blob: 6da201ca6571541f32a346affa1f51ef2368b3e3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
generated by cgit-pink 1.4.1 (git 2.36.1) at 2025-11-29 15:00:41 +0000
 


 0);
    wai_getExecutablePath(buf.data(), length, NULL);

    std::filesystem::path exec_path(buf);
    return new std::filesystem::path(exec_path.parent_path());
  }();

  return *executable_directory;
}

std::string GetAbsolutePath(std::string_view path) {
  return (GetExecutableDirectory() / path).string();
}

bool IsLocationWinCondition(const Location& location) {
  switch (AP_GetVictoryCondition()) {
    case kTHE_END:
      return location.ap_location_name ==
             "Orange Tower Seventh Floor - THE END";
    case kTHE_MASTER:
      return location.ap_location_name ==
             "Orange Tower Seventh Floor - THE MASTER";
    case kLEVEL_2:
      return location.ap_location_name == "Second Room - LEVEL 2";
  }
}