about summary refs log tree commit diff stats
path: root/data/maps/the_parthenon
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2026-02-04 14:41:53 -0500
committerStar Rauchenberger <fefferburbia@gmail.com>2026-02-04 14:41:53 -0500
commit432531dca528825f841f632ad0c8291a3a7dcc19 (patch)
tree9c861972a8cc47ec12f4fefe8e8f8537806e60c4 /data/maps/the_parthenon
parent263f8a079c010d688c09bc235391293b770f69e4 (diff)
downloadlingo2-archipelago-432531dca528825f841f632ad0c8291a3a7dcc19.tar.gz
lingo2-archipelago-432531dca528825f841f632ad0c8291a3a7dcc19.tar.bz2
lingo2-archipelago-432531dca528825f841f632ad0c8291a3a7dcc19.zip
Released v8.1.0
Diffstat (limited to 'data/maps/the_parthenon')
0 files changed, 0 insertions, 0 deletions
perty */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
#include "global.h"

#include <whereami.h>

#include <filesystem>
#include <string>
#include <string_view>

#include "ap_state.h"
#include "game_data.h"

const std::filesystem::path& GetExecutableDirectory() {
  static const std::filesystem::path* executable_directory = []() {
    int length = wai_getExecutablePath(NULL, 0, NULL);
    std::string buf(length, 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";
  }
}