mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-09-10 12:02:53 +02:00
more fakeapi stuff + Disable frameskipping by default
This commit is contained in:
parent
ebbf9e4310
commit
037da0e17f
5 changed files with 23 additions and 3 deletions
|
@ -71,7 +71,9 @@ MiniFFI_GetFunctionHandle(void *libhandle, const char *func)
|
|||
CAPTURE(GetSystemMetrics);
|
||||
CAPTURE(SetCapture);
|
||||
CAPTURE(ReleaseCapture);
|
||||
CAPTURE(ShowCursor);
|
||||
CAPTURE(GetPrivateProfileString);
|
||||
CAPTURE(GetUserDefaultLangID);
|
||||
#endif
|
||||
#endif
|
||||
if (!libhandle) return 0;
|
||||
|
|
|
@ -100,9 +100,9 @@
|
|||
|
||||
|
||||
# Skip (don't draw) frames when behind
|
||||
# (default: enabled)
|
||||
# (default: disabled)
|
||||
#
|
||||
# frameSkip=true
|
||||
# frameSkip=false
|
||||
|
||||
|
||||
# Use a fixed framerate that is approx. equal to the
|
||||
|
|
|
@ -164,7 +164,7 @@ void Config::read(int argc, char *argv[])
|
|||
PO_DESC(defScreenH, int, 0) \
|
||||
PO_DESC(windowTitle, std::string, "") \
|
||||
PO_DESC(fixedFramerate, int, 0) \
|
||||
PO_DESC(frameSkip, bool, true) \
|
||||
PO_DESC(frameSkip, bool, false) \
|
||||
PO_DESC(syncToRefreshrate, bool, false) \
|
||||
PO_DESC(solidFonts, bool, false) \
|
||||
PO_DESC(subImageFix, bool, false) \
|
||||
|
|
|
@ -552,6 +552,10 @@ PREFABI BOOL
|
|||
MKXP_ReleaseCapture(void)
|
||||
NOP_VAL(true);
|
||||
|
||||
PREFABI int
|
||||
MKXP_ShowCursor(BOOL bShow)
|
||||
NOP_VAL(DUMMY_VAL);
|
||||
|
||||
PREFABI DWORD
|
||||
MKXP_GetPrivateProfileString(LPCTSTR lpAppName,
|
||||
LPCTSTR lpKeyName,
|
||||
|
@ -580,4 +584,12 @@ MKXP_GetPrivateProfileString(LPCTSTR lpAppName,
|
|||
return strlen(lpDefault);
|
||||
}
|
||||
|
||||
|
||||
// Only supports English, other languages are too
|
||||
// much work to keep in hacky code like this
|
||||
|
||||
PREFABI short // I know it's a LANGID but I don't care
|
||||
MKXP_GetUserDefaultLangID(void)
|
||||
NOP_VAL(0xC09);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -137,6 +137,9 @@ MKXP_SetCapture(HWND hWnd);
|
|||
PREFABI BOOL
|
||||
MKXP_ReleaseCapture(void);
|
||||
|
||||
PREFABI int
|
||||
MKXP_ShowCursor(BOOL bShow);
|
||||
|
||||
PREFABI DWORD
|
||||
MKXP_GetPrivateProfileString(LPCTSTR lpAppName,
|
||||
LPCTSTR lpKeyName,
|
||||
|
@ -145,4 +148,7 @@ MKXP_GetPrivateProfileString(LPCTSTR lpAppName,
|
|||
DWORD nSize,
|
||||
LPCTSTR lpFileName);
|
||||
|
||||
PREFABI short
|
||||
MKXP_GetUserDefaultLangID(void);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue