diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..49bc779 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -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. diff --git a/.github/workflows/header-update.yml b/.github/workflows/header-update.yml new file mode 100644 index 0000000..99c7021 --- /dev/null +++ b/.github/workflows/header-update.yml @@ -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 diff --git a/include b/include index 4c675e9..9a9aac2 160000 --- a/include +++ b/include @@ -1 +1 @@ -Subproject commit 4c675e998261276b2c3f0f13422e4713a3943b6a +Subproject commit 9a9aac298dc96e87bf250a26aa722e30bd685377 diff --git a/src/ModLoader.cpp b/src/ModLoader.cpp index 9a04cb2..8625c73 100644 --- a/src/ModLoader.cpp +++ b/src/ModLoader.cpp @@ -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(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; }