Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion BUILDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,12 @@

Not recommended. Windows sucks!

`cmake .. -DCMAKE_BUILD_TYPE=Debug -G Ninja --preset windows-msvc-x64`
`cmake .. -DCMAKE_BUILD_TYPE=Debug -G Ninja --preset windows-msvc-x64`

# Linux Builds

Install dependencies:

`sudo apt install -y libsfml-dev libudev-dev libopenal-dev libvorbis-dev libflac-dev libxrandr-dev libxcursor-dev libfreetype-dev`

And maybe also libfreetype6 and libfreetype6-dev, not sure...
19 changes: 17 additions & 2 deletions include/app_finder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,9 @@ std::optional<std::string> aa::get_focused_minecraft()
#include <cassert>
#include <sys/sysctl.h>

inline ApplicationInfo aa::get_focused_application() { return osx::get_current_application(); }
ApplicationInfo aa::get_focused_application() { return osx::get_current_application(); }

inline std::optional<std::string> aa::get_focused_minecraft()
std::optional<std::string> aa::get_focused_minecraft()
{
const auto& logger = get_logger("get_focused_minecraft");

Expand Down Expand Up @@ -373,6 +373,21 @@ inline std::optional<std::string> aa::get_focused_minecraft()

#elif __linux__
// Linux specific code for getting the current application details.
ApplicationInfo aa::get_focused_application() {
ApplicationInfo ret{};
ret.name = "UNIMPLEMENTED";
ret.exec = "UNIMPLEMENTED";
ret.pid = 0;
return ret;
}

std::optional<std::string> aa::get_focused_minecraft()
{
const auto& logger = get_logger("get_focused_minecraft");

const auto s = get_focused_application();
return {};
}
#else
#error "Unsupported OS? D:"
#endif
3 changes: 2 additions & 1 deletion include/logging.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include <iostream>
#include <optional>
#include <sstream>
#include <memory>

namespace aa
{
Expand Down Expand Up @@ -208,4 +209,4 @@ void error(Ts&&... ts)
get_logger("root").error(std::forward<Ts>(ts)...);
}
} // namespace log
} // namespace aa
} // namespace aa