forked from gillian-guide/GTAIV.EFLC.FusionFix-GFWL
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
55 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule modupdater
added at
5fb996
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |