Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
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
43 changes: 43 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
name: Bug report
about: Create a report to help us improve
title: "[BUG REPORT] "
labels: bug
assignees: AmeliaCute, EltyDev

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
```



```


**Expected behavior**
```



```

**Screenshots / Videos**
If applicable, add screenshots to help explain your problem.

FLiAPI Version: `1.10`

Mod list:
```
-
-

```


**Additional context**
Add any other context about the problem here.
36 changes: 36 additions & 0 deletions .github/workflows/header-update.yml
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On est bien d'accord ça sert à utiliser les headers de la main dans le cas où on push dans la main ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My bad j'avais pas vu mais en fait ça sert juste à pas fuck up notre include tu sais comme les trois premières releases de l'api où les include étaient vieux de trois mois T*T

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Après, à la place on pourrait dans le CD avant de build, récupérer le dernier commit de FantasyLifeI-ModLoader-Headers/main et le push puis build

Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: "Update submodule to latest"

on:
pull_request:
branches: [ "master" ]

permissions:
contents: write

jobs:
update-submodule:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
token: ${{ secrets.GITHUB_TOKEN }}

- name: Config user
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"

- name: Update submodule
run: |
git submodule set-branch --branch main include
git submodule update --init --remote include
git add include
if ! git diff --staged --quiet; then
git commit -m "[skip ci] update include submodule to latest main"
git push origin HEAD:${{github.head_ref}}
else
echo "No update required"
fi
2 changes: 1 addition & 1 deletion include
Submodule include updated 3 files
+9 −7 GameData.hpp
+3 −3 Offset.h
+2 −1 Utils.hpp
8 changes: 2 additions & 6 deletions src/ModLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,15 @@ DWORD WINAPI ModLoader::init(LPVOID lpParam) {
patcher.add(new EventHook(EventType::ClickEvent, 0x657DC32));
patcher.applyPatches(baseAddress);
gameData = new GameData(reinterpret_cast<uintptr_t>(GetModuleHandle(nullptr)));
gameData->initOthersData();

gameCache = new GameCache();
modEnvironnement = new ModEnvironnement("../../Content/Mods");
modEnvironnement->PreLoad();

gameCache->PostLoadCache();
gameData->initOthersData();
modEnvironnement->PostLoad();

UGDSRequestQuestConfig* test = nullptr;
gameData->waitObject(&test, "GDSRequestQuestConfig", 1);
logger->error(test->m_dataMap.Data.Count);


return 0;
}

Expand Down