Skip to content

Commit

Permalink
solves the issue maybe
Browse files Browse the repository at this point in the history
  • Loading branch information
SandeMC committed Oct 21, 2024
1 parent 02ba4c5 commit 328e36b
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@
[submodule "shaders/GTAIV.EFLC.FusionShaders"]
path = shaders/GTAIV.EFLC.FusionShaders
url = https://github.com/Parallellines0451/GTAIV.EFLC.FusionShaders
ignore = dirty
ignore = dirty
[submodule "external/modupdater"]
path = external/modupdater
url = https://github.com/ThirteenAG/modupdater
1 change: 1 addition & 0 deletions external/modupdater
Submodule modupdater added at 5fb996
Empty file added external/updater/123.txt
Empty file.
12 changes: 12 additions & 0 deletions premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ workspace "GTAIV.EFLC.FusionFix"
includedirs { "external/hooking" }
includedirs { "external/injector/include" }
includedirs { "external/inireader" }
includedirs { "external/modupdater/dist" }
includedirs { "source/gxt/src" }
libdirs { "external/modupdater/dist" }
files { "external/hooking/Hooking.Patterns.h", "external/hooking/Hooking.Patterns.cpp" }
files { "external/injector/safetyhook/include/**.hpp", "external/injector/safetyhook/src/**.cpp" }
files { "external/injector/zydis/**.h", "external/injector/zydis/**.c" }
Expand Down Expand Up @@ -102,6 +104,16 @@ workspace "GTAIV.EFLC.FusionFix"
end
targetdir ("bin")
end

filter "configurations:Debug"
defines { "DEBUG" }
symbols "On"
links { "libmodupdater_debug_win32.lib" }

filter "configurations:Release"
defines { "NDEBUG" }
optimize "On"
links { "libmodupdater_release_win32.lib" }

project "GTAIV.EFLC.FusionFix"
setpaths("H:/SteamLibrary/steamapps/common/Grand Theft Auto IV/GTAIV/", "GTAIV.exe", "plugins/")
38 changes: 38 additions & 0 deletions source/modupdater.ixx
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
module;

#include <common.hxx>
#include "libmodupdater.h"

export module contributing;

import common;
import settings;

class ModUpdater
{
public:
static inline bool bInitialized = false;

static void Initialize()
{
if (!bInitialized)
{
bInitialized = true;
HMODULE hm = NULL;
GetModuleHandleExW(GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS | GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT, (LPCWSTR)&FusionFix::onInitEvent, &hm);
muSetUpdateURL(hm, rsc_UpdateUrl);
//muSetDevUpdateURL(hm, "");
//muSetAlwaysUpdate(hm, true);
//muSetSkipUpdateCompleteDialog(hm, true);
muInit();
}
}

ModUpdater()
{
FusionFix::onInitEventAsync() += []()
{
return;
};
}
} ModUpdater;

0 comments on commit 328e36b

Please sign in to comment.