Skip to content

Commit 9873909

Browse files
committed
hacky champions workaround
1 parent ff91770 commit 9873909

File tree

3 files changed

+37
-1
lines changed

3 files changed

+37
-1
lines changed

.github/workflows/release.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Release Geode Mod
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
release:
8+
name: Release mod
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- uses: hiimjasmine00/release-geode-mod@main
15+
with:
16+
token: ${{ secrets.GITHUB_TOKEN }}
17+
draft: true

src/champions.hpp

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// INCREDIBLY HACKY WORKAROUND
2+
// to get Champions support working
3+
// until Champions releases
4+
5+
#pragma once
6+
7+
#include <Geode/loader/Dispatch.hpp>
8+
9+
// required for GEODE_EVENT_EXPORT
10+
#define MY_MOD_ID "ninxout.champions"
11+
12+
namespace champions {
13+
inline geode::Result<bool> inChampionsGame() GEODE_EVENT_EXPORT(&inChampionsGame, ());
14+
inline geode::Result<bool> isQueueing() GEODE_EVENT_EXPORT(&isQueueing, ());
15+
inline geode::Result<int> getLastQueue() GEODE_EVENT_EXPORT(&getLastQueue, ());
16+
inline geode::Result<GJGameLevel*> getChampionsLevel() GEODE_EVENT_EXPORT(&getChampionsLevel, ());
17+
}
18+
19+
#undef MY_MOD_ID

src/managers/Observer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#include "Observer.hpp"
22
#include <managers/RPCManager.hpp>
33

4-
#include <ninxout.champions/include/api/include.hpp>
4+
#include <champions.hpp>
55

66
#ifndef GEODE_IS_WINDOWS
77
#include <cxxabi.h>

0 commit comments

Comments
 (0)