Support XP Better
This commit is contained in:
parent
4c847bc0dc
commit
6b5663506c
|
@ -4,7 +4,7 @@
|
||||||
<datafile>
|
<datafile>
|
||||||
<name>libeay32.dll</name>
|
<name>libeay32.dll</name>
|
||||||
<filename>libeay32.dll</filename>
|
<filename>libeay32.dll</filename>
|
||||||
<origname>C:\Users\User\Documents\git\UGP\UGP.gmx\\\datafiles\libeay32.dll</origname>
|
<origname>C:\Users\Li\Documents\git\UGP\UGP.gmx\\\datafiles\libeay32.dll</origname>
|
||||||
<exists>-1</exists>
|
<exists>-1</exists>
|
||||||
<size>1207808</size>
|
<size>1207808</size>
|
||||||
<exportAction>2</exportAction>
|
<exportAction>2</exportAction>
|
||||||
|
@ -18,7 +18,7 @@
|
||||||
<datafile>
|
<datafile>
|
||||||
<name>UGP.dll</name>
|
<name>UGP.dll</name>
|
||||||
<filename>UGP.dll</filename>
|
<filename>UGP.dll</filename>
|
||||||
<origname>C:\Users\User\Documents\git\UGP\UGP.gmx\\\datafiles\UGP.dll</origname>
|
<origname>C:\Users\Li\Documents\git\UGP\UGP.gmx\\\datafiles\UGP.dll</origname>
|
||||||
<exists>-1</exists>
|
<exists>-1</exists>
|
||||||
<size>97280</size>
|
<size>97280</size>
|
||||||
<exportAction>2</exportAction>
|
<exportAction>2</exportAction>
|
||||||
|
@ -32,7 +32,7 @@
|
||||||
<datafile>
|
<datafile>
|
||||||
<name>ModuleDownloader.exe</name>
|
<name>ModuleDownloader.exe</name>
|
||||||
<filename>ModuleDownloader.exe</filename>
|
<filename>ModuleDownloader.exe</filename>
|
||||||
<origname>C:\Users\User\Documents\git\UGP\UGP.gmx\\\datafiles\ModuleDownloader.exe</origname>
|
<origname>C:\Users\Li\Documents\git\UGP\UGP.gmx\\\datafiles\ModuleDownloader.exe</origname>
|
||||||
<exists>-1</exists>
|
<exists>-1</exists>
|
||||||
<size>2146816</size>
|
<size>2146816</size>
|
||||||
<exportAction>2</exportAction>
|
<exportAction>2</exportAction>
|
||||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -91,6 +91,13 @@ global.MD5 = external_define("UGP.dll","MD5",dll_cdecl,ty_string,1,ty_string);
|
||||||
global.setBinKey = external_define("UGP.dll","SetBinKey",dll_cdecl,ty_real,3,ty_string, ty_string, ty_string);
|
global.setBinKey = external_define("UGP.dll","SetBinKey",dll_cdecl,ty_real,3,ty_string, ty_string, ty_string);
|
||||||
global.generateGM6Key = external_define("UGP.dll","GenerateGM6Key",dll_cdecl,ty_string,1,ty_string);
|
global.generateGM6Key = external_define("UGP.dll","GenerateGM6Key",dll_cdecl,ty_string,1,ty_string);
|
||||||
|
|
||||||
|
|
||||||
|
global.getAppDataFolder = external_define("UGP.dll","GetAppDataFolder",dll_cdecl,ty_string,0);
|
||||||
|
global.getLocalAppDataFolder = external_define("UGP.dll","GetLocalAppDataFolder",dll_cdecl,ty_string,0);
|
||||||
|
|
||||||
|
global.APPDATA = external_call(global.getAppDataFolder);
|
||||||
|
global.LOCALAPPDATA = external_call(global.getLocalAppDataFolder);
|
||||||
|
|
||||||
global.download_exports = false;
|
global.download_exports = false;
|
||||||
|
|
||||||
instance_create((room_width-(44/2))-10, (room_height-(44/2))-10, obj_mute);
|
instance_create((room_width-(44/2))-10, (room_height-(44/2))-10, obj_mute);
|
||||||
|
|
|
@ -9,7 +9,7 @@ key = argument1;
|
||||||
|
|
||||||
if(argument2)
|
if(argument2)
|
||||||
{
|
{
|
||||||
dll_path = environment_get_variable("APPDATA")+"\GameMaker\libeay32.dll";
|
dll_path = global.APPDATA+"\GameMaker\libeay32.dll";
|
||||||
if(file_exists(dll_path))
|
if(file_exists(dll_path))
|
||||||
file_delete(dll_path);
|
file_delete(dll_path);
|
||||||
//export_include_file_location("libeay32.dll", dll_path);
|
//export_include_file_location("libeay32.dll", dll_path);
|
||||||
|
@ -28,7 +28,7 @@ xmlData[0] = name;
|
||||||
xmlData[1] = key;
|
xmlData[1] = key;
|
||||||
xmlData[2] = "GameMaker for Windows";
|
xmlData[2] = "GameMaker for Windows";
|
||||||
xmlData[3] = chr($0a)+chr($09)+'rvunnwPVsFRMqCuuQ0u3cifBmlwEdRNvZZW3G6gYYEb1/Qs4p3PTUPmewyVck8YrhLZA'+chr($0a)+chr($09)+'Dc70u0IEX03KrCwz8RsQLITCa4iDJ6bkn+PjtUQeGNAr3haNpmPw0/v/v9K6haLXMaVy'+chr($0a)+chr($09)+'4QbSG4+JX5uqefP12xCvJGMMI+dkHDEgOBk='+chr($0a)+chr($09);
|
xmlData[3] = chr($0a)+chr($09)+'rvunnwPVsFRMqCuuQ0u3cifBmlwEdRNvZZW3G6gYYEb1/Qs4p3PTUPmewyVck8YrhLZA'+chr($0a)+chr($09)+'Dc70u0IEX03KrCwz8RsQLITCa4iDJ6bkn+PjtUQeGNAr3haNpmPw0/v/v9K6haLXMaVy'+chr($0a)+chr($09)+'4QbSG4+JX5uqefP12xCvJGMMI+dkHDEgOBk='+chr($0a)+chr($09);
|
||||||
plistPath = environment_get_variable("LOCALAPPDATA")+"\GameMaker8.1\license.plist";
|
plistPath = global.LOCALAPPDATA+"\GameMaker8.1\license.plist";
|
||||||
plistFile = file_text_open_write(plistPath);
|
plistFile = file_text_open_write(plistPath);
|
||||||
|
|
||||||
//datetime_str = string_replace(string_format(current_day,2,0)," ","0")+"/"+string_replace(string_format(current_month,2,0)," ","0")+"/"+string(current_year mod 100);
|
//datetime_str = string_replace(string_format(current_day,2,0)," ","0")+"/"+string_replace(string_format(current_month,2,0)," ","0")+"/"+string(current_year mod 100);
|
||||||
|
|
|
@ -9,7 +9,7 @@ key = argument1;
|
||||||
|
|
||||||
if(argument2)
|
if(argument2)
|
||||||
{
|
{
|
||||||
dll_path = environment_get_variable("APPDATA")+"\GameMaker-HTML5\libeay32.dll";
|
dll_path = global.APPDATA+"\GameMaker-HTML5\libeay32.dll";
|
||||||
if(file_exists(dll_path))
|
if(file_exists(dll_path))
|
||||||
file_delete(dll_path);
|
file_delete(dll_path);
|
||||||
//export_include_file_location("libeay32.dll", dll_path);
|
//export_include_file_location("libeay32.dll", dll_path);
|
||||||
|
@ -29,7 +29,7 @@ xmlData[0] = name;
|
||||||
xmlData[1] = key;
|
xmlData[1] = key;
|
||||||
xmlData[2] = "GameMaker for HTML5";
|
xmlData[2] = "GameMaker for HTML5";
|
||||||
xmlData[3] = chr($0a)+chr($09)+'rvunnwPVsFRMqCuuQ0u3cifBmlwEdRNvZZW3G6gYYEb1/Qs4p3PTUPmewyVck8YrhLZA'+chr($0a)+chr($09)+'Dc70u0IEX03KrCwz8RsQLITCa4iDJ6bkn+PjtUQeGNAr3haNpmPw0/v/v9K6haLXMaVy'+chr($0a)+chr($09)+'4QbSG4+JX5uqefP12xCvJGMMI+dkHDEgOBk='+chr($0a)+chr($09);
|
xmlData[3] = chr($0a)+chr($09)+'rvunnwPVsFRMqCuuQ0u3cifBmlwEdRNvZZW3G6gYYEb1/Qs4p3PTUPmewyVck8YrhLZA'+chr($0a)+chr($09)+'Dc70u0IEX03KrCwz8RsQLITCa4iDJ6bkn+PjtUQeGNAr3haNpmPw0/v/v9K6haLXMaVy'+chr($0a)+chr($09)+'4QbSG4+JX5uqefP12xCvJGMMI+dkHDEgOBk='+chr($0a)+chr($09);
|
||||||
plistPath = environment_get_variable("LOCALAPPDATA")+"\GameMaker-HTML5\license.plist";
|
plistPath = global.LOCALAPPDATA+"\GameMaker-HTML5\license.plist";
|
||||||
plistFile = file_text_open_write(plistPath);
|
plistFile = file_text_open_write(plistPath);
|
||||||
|
|
||||||
//datetime_str = string_replace(string_format(current_day,2,0)," ","0")+"/"+string_replace(string_format(current_month,2,0)," ","0")+"/"+string(current_year mod 100);
|
//datetime_str = string_replace(string_format(current_day,2,0)," ","0")+"/"+string_replace(string_format(current_month,2,0)," ","0")+"/"+string(current_year mod 100);
|
||||||
|
|
|
@ -21,7 +21,7 @@ old_version = argument8
|
||||||
|
|
||||||
if(do_libeay32)
|
if(do_libeay32)
|
||||||
{
|
{
|
||||||
dll_path = environment_get_variable("APPDATA")+"\GameMaker-Studio\libeay32.dll";
|
dll_path = global.APPDATA+"\GameMaker-Studio\libeay32.dll";
|
||||||
if(file_exists(dll_path))
|
if(file_exists(dll_path))
|
||||||
file_delete(dll_path);
|
file_delete(dll_path);
|
||||||
//export_include_file_location("libeay32.dll", dll_path);
|
//export_include_file_location("libeay32.dll", dll_path);
|
||||||
|
@ -73,7 +73,7 @@ xmlData[5] = key;
|
||||||
xmlData[6] = "GameMaker:Studio";
|
xmlData[6] = "GameMaker:Studio";
|
||||||
xmlData[7] = chr($0a)+chr($09)+'rvunnwPVsFRMqCuuQ0u3cifBmlwEdRNvZZW3G6gYYEb1/Qs4p3PTUPmewyVck8YrhLZA'+chr($0a)+chr($09)+'Dc70u0IEX03KrCwz8RsQLITCa4iDJ6bkn+PjtUQeGNAr3haNpmPw0/v/v9K6haLXMaVy'+chr($0a)+chr($09)+'4QbSG4+JX5uqefP12xCvJGMMI+dkHDEgOBk='+chr($0a)+chr($09);
|
xmlData[7] = chr($0a)+chr($09)+'rvunnwPVsFRMqCuuQ0u3cifBmlwEdRNvZZW3G6gYYEb1/Qs4p3PTUPmewyVck8YrhLZA'+chr($0a)+chr($09)+'Dc70u0IEX03KrCwz8RsQLITCa4iDJ6bkn+PjtUQeGNAr3haNpmPw0/v/v9K6haLXMaVy'+chr($0a)+chr($09)+'4QbSG4+JX5uqefP12xCvJGMMI+dkHDEgOBk='+chr($0a)+chr($09);
|
||||||
|
|
||||||
plistPath = environment_get_variable("LOCALAPPDATA")+"\GameMaker-Studio\license.plist";
|
plistPath = global.LOCALAPPDATA+"\GameMaker-Studio\license.plist";
|
||||||
plistFile = file_text_open_write(plistPath);
|
plistFile = file_text_open_write(plistPath);
|
||||||
|
|
||||||
file_text_write_string(plistFile,'<?xml version="1.0" encoding="UTF-8"?>'+chr($0a));
|
file_text_write_string(plistFile,'<?xml version="1.0" encoding="UTF-8"?>'+chr($0a));
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<sound>
|
<sound>
|
||||||
<kind>1</kind>
|
<kind>1</kind>
|
||||||
<extension>.mid</extension>
|
<extension>.mid</extension>
|
||||||
<origname>C:\Users\User\Documents\git\UGP\UGP.gmx\\\sound\audio\snd_mus.mid</origname>
|
<origname>C:\Users\Li\Documents\git\UGP\UGP.gmx\\\sound\audio\snd_mus.mid</origname>
|
||||||
<effects>0</effects>
|
<effects>0</effects>
|
||||||
<volume>1</volume>
|
<volume>1</volume>
|
||||||
<pan>0</pan>
|
<pan>0</pan>
|
||||||
|
|
|
@ -3,6 +3,8 @@
|
||||||
|
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
#include <shlwapi.h>
|
||||||
|
#include <Shlobj.h>
|
||||||
|
|
||||||
char* GetMachineGuid()
|
char* GetMachineGuid()
|
||||||
{
|
{
|
||||||
|
@ -19,7 +21,12 @@ char* GetMachineGuid()
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
printf("Hello World!");
|
char szPath[MAX_PATH];
|
||||||
|
|
||||||
|
SHGetFolderPathA(NULL, CSIDL_LOCAL_APPDATA, NULL, 0, szPath);
|
||||||
|
printf("local %s\n", szPath);
|
||||||
|
SHGetFolderPathA(NULL, CSIDL_APPDATA, NULL, 0, szPath);
|
||||||
|
printf("common %s\n", szPath);
|
||||||
GetMachineGuid();
|
GetMachineGuid();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||||
<ConfigurationType>Application</ConfigurationType>
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
<UseDebugLibraries>true</UseDebugLibraries>
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
<PlatformToolset>v143</PlatformToolset>
|
<PlatformToolset>v141_xp</PlatformToolset>
|
||||||
<CharacterSet>Unicode</CharacterSet>
|
<CharacterSet>Unicode</CharacterSet>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||||
|
|
|
@ -9,25 +9,15 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Test", "Test\Test.vcxproj",
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
Debug|x64 = Debug|x64
|
|
||||||
Debug|x86 = Debug|x86
|
Debug|x86 = Debug|x86
|
||||||
Release|x64 = Release|x64
|
|
||||||
Release|x86 = Release|x86
|
Release|x86 = Release|x86
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
{F1AB918F-7AF0-4536-A779-286A3A709558}.Debug|x64.ActiveCfg = Debug|x64
|
|
||||||
{F1AB918F-7AF0-4536-A779-286A3A709558}.Debug|x64.Build.0 = Debug|x64
|
|
||||||
{F1AB918F-7AF0-4536-A779-286A3A709558}.Debug|x86.ActiveCfg = Debug|Win32
|
{F1AB918F-7AF0-4536-A779-286A3A709558}.Debug|x86.ActiveCfg = Debug|Win32
|
||||||
{F1AB918F-7AF0-4536-A779-286A3A709558}.Debug|x86.Build.0 = Debug|Win32
|
{F1AB918F-7AF0-4536-A779-286A3A709558}.Debug|x86.Build.0 = Debug|Win32
|
||||||
{F1AB918F-7AF0-4536-A779-286A3A709558}.Release|x64.ActiveCfg = Release|Win32
|
|
||||||
{F1AB918F-7AF0-4536-A779-286A3A709558}.Release|x64.Build.0 = Release|Win32
|
|
||||||
{F1AB918F-7AF0-4536-A779-286A3A709558}.Release|x86.ActiveCfg = Release|Win32
|
{F1AB918F-7AF0-4536-A779-286A3A709558}.Release|x86.ActiveCfg = Release|Win32
|
||||||
{F1AB918F-7AF0-4536-A779-286A3A709558}.Release|x86.Build.0 = Release|Win32
|
{F1AB918F-7AF0-4536-A779-286A3A709558}.Release|x86.Build.0 = Release|Win32
|
||||||
{3B3E009B-BCEF-4259-AAAC-B7CD9DEEFD86}.Debug|x64.ActiveCfg = Debug|x64
|
|
||||||
{3B3E009B-BCEF-4259-AAAC-B7CD9DEEFD86}.Debug|x64.Build.0 = Debug|x64
|
|
||||||
{3B3E009B-BCEF-4259-AAAC-B7CD9DEEFD86}.Debug|x86.ActiveCfg = Debug|Win32
|
{3B3E009B-BCEF-4259-AAAC-B7CD9DEEFD86}.Debug|x86.ActiveCfg = Debug|Win32
|
||||||
{3B3E009B-BCEF-4259-AAAC-B7CD9DEEFD86}.Release|x64.ActiveCfg = Release|Win32
|
|
||||||
{3B3E009B-BCEF-4259-AAAC-B7CD9DEEFD86}.Release|x64.Build.0 = Release|Win32
|
|
||||||
{3B3E009B-BCEF-4259-AAAC-B7CD9DEEFD86}.Release|x86.ActiveCfg = Release|Win32
|
{3B3E009B-BCEF-4259-AAAC-B7CD9DEEFD86}.Release|x86.ActiveCfg = Release|Win32
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
|
|
@ -43,7 +43,7 @@
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||||
<UseDebugLibraries>true</UseDebugLibraries>
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
<PlatformToolset>v143</PlatformToolset>
|
<PlatformToolset>v141_xp</PlatformToolset>
|
||||||
<CharacterSet>Unicode</CharacterSet>
|
<CharacterSet>Unicode</CharacterSet>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||||
|
@ -92,8 +92,8 @@
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
<ClCompile>
|
<ClCompile>
|
||||||
<WarningLevel>Level3</WarningLevel>
|
<WarningLevel>Level3</WarningLevel>
|
||||||
<SDLCheck>true</SDLCheck>
|
<SDLCheck>false</SDLCheck>
|
||||||
<PreprocessorDefinitions>WIN32;_CRT_SECURE_NO_WARNINGS;_DEBUG;UNIVERSALGAMEMAKERPATCHERDLL_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;_CRT_SECURE_NO_WARNINGS;_CRT_SECURE_NO_WARNINGS;WIN32;_DEBUG;UNIVERSALGAMEMAKERPATCHERDLL_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
<ConformanceMode>true</ConformanceMode>
|
<ConformanceMode>true</ConformanceMode>
|
||||||
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
|
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
|
||||||
|
@ -111,7 +111,7 @@
|
||||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
<SDLCheck>true</SDLCheck>
|
<SDLCheck>true</SDLCheck>
|
||||||
<PreprocessorDefinitions>WIN32;_CRT_SECURE_NO_WARNINGS;NDEBUG;UNIVERSALGAMEMAKERPATCHERDLL_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;_CRT_SECURE_NO_WARNINGS;WIN32;_CRT_SECURE_NO_WARNINGS;NDEBUG;UNIVERSALGAMEMAKERPATCHERDLL_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
<ConformanceMode>true</ConformanceMode>
|
<ConformanceMode>true</ConformanceMode>
|
||||||
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
<PrecompiledHeaderFile>
|
<PrecompiledHeaderFile>
|
||||||
|
@ -130,9 +130,9 @@
|
||||||
<ClCompile>
|
<ClCompile>
|
||||||
<WarningLevel>Level3</WarningLevel>
|
<WarningLevel>Level3</WarningLevel>
|
||||||
<SDLCheck>true</SDLCheck>
|
<SDLCheck>true</SDLCheck>
|
||||||
<PreprocessorDefinitions>_DEBUG;UNIVERSALGAMEMAKERPATCHERDLL_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;_DEBUG;UNIVERSALGAMEMAKERPATCHERDLL_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
<ConformanceMode>true</ConformanceMode>
|
<ConformanceMode>true</ConformanceMode>
|
||||||
<PrecompiledHeader>Use</PrecompiledHeader>
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
|
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
|
@ -147,9 +147,9 @@
|
||||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
<SDLCheck>true</SDLCheck>
|
<SDLCheck>true</SDLCheck>
|
||||||
<PreprocessorDefinitions>NDEBUG;UNIVERSALGAMEMAKERPATCHERDLL_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;NDEBUG;UNIVERSALGAMEMAKERPATCHERDLL_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
<ConformanceMode>true</ConformanceMode>
|
<ConformanceMode>true</ConformanceMode>
|
||||||
<PrecompiledHeader>Use</PrecompiledHeader>
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
|
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
|
|
|
@ -1,13 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
|
||||||
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
|
|
||||||
<LocalDebuggerCommand>C:\Users\User\Desktop\UGP\UGP\UGP.exe</LocalDebuggerCommand>
|
|
||||||
<LocalDebuggerWorkingDirectory>C:\Users\User\Desktop\UGP\UGP</LocalDebuggerWorkingDirectory>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
|
||||||
<LocalDebuggerCommand>C:\Users\User\Desktop\UGP\UGP\UGP.exe</LocalDebuggerCommand>
|
|
||||||
<LocalDebuggerWorkingDirectory>C:\Users\User\Desktop\UGP\UGP</LocalDebuggerWorkingDirectory>
|
|
||||||
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
|
|
||||||
</PropertyGroup>
|
|
||||||
</Project>
|
|
|
@ -2,14 +2,32 @@
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include "md5.h"
|
#include "md5.h"
|
||||||
#include "gm6.h"
|
#include "gm6.h"
|
||||||
|
#include <shlwapi.h>
|
||||||
|
#include <shlobj.h>
|
||||||
|
|
||||||
#define GMSTR __declspec(dllexport) char* __cdecl
|
#define GMSTR __declspec(dllexport) char* __cdecl
|
||||||
#define GMREAL __declspec(dllexport) double __cdecl
|
#define GMREAL __declspec(dllexport) double __cdecl
|
||||||
|
|
||||||
|
static char appdata[MAX_PATH];
|
||||||
|
static char appdatalocal[MAX_PATH];
|
||||||
static char md5str[33];
|
static char md5str[33];
|
||||||
static BYTE guid[0x1028];
|
static BYTE guid[0x1028];
|
||||||
static char gm6key[31];
|
static char gm6key[31];
|
||||||
|
|
||||||
|
GMSTR GetAppDataFolder(void)
|
||||||
|
{
|
||||||
|
memset(appdata, 0, sizeof(appdata));
|
||||||
|
SHGetFolderPathA(NULL, CSIDL_APPDATA, NULL, 0, appdata);
|
||||||
|
return appdata;
|
||||||
|
}
|
||||||
|
|
||||||
|
GMSTR GetLocalAppDataFolder(void)
|
||||||
|
{
|
||||||
|
memset(appdatalocal, 0, sizeof(appdatalocal));
|
||||||
|
SHGetFolderPathA(NULL, CSIDL_LOCAL_APPDATA, NULL, 0, appdatalocal);
|
||||||
|
return appdatalocal;
|
||||||
|
}
|
||||||
|
|
||||||
GMSTR GetMachineGuid(void)
|
GMSTR GetMachineGuid(void)
|
||||||
{
|
{
|
||||||
HKEY hk;
|
HKEY hk;
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
||||||
|
|
||||||
#define KEY_LEN (0xC)
|
#define KEY_LEN (0xC)
|
||||||
//#define STANDALONE 1
|
//#define STANDALONE 1
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue