translate the IP to a country

using http://dev.maxmind.com/geoip/legacy/geolite/
code from https://github.com/maxmind/geoip-api-csharp2
This commit is contained in:
Matthias Mailänder
2013-08-07 19:06:02 +02:00
parent 00839cb77b
commit 781c680ad3
14 changed files with 6197 additions and 3 deletions

View File

@@ -34,7 +34,7 @@ FILES=('OpenRA.Game.exe' 'OpenRA.Editor.exe' 'OpenRA.Utility.exe' \
'cg' 'glsl' 'mods/ra' 'mods/cnc' 'mods/d2k' \
'AUTHORS' 'COPYING' 'HACKING' 'INSTALL' 'CHANGELOG' \
'README.html' 'CONTRIBUTING.html' 'DOCUMENTATION.html' \
'global mix database.dat')
'global mix database.dat' 'GeoIP.dll' 'GeoIP.dat')
echo "Copying files..."
for i in "${FILES[@]}"; do

View File

@@ -94,6 +94,8 @@ Section "Client" Client
File "${SRCDIR}\Tao.*.dll"
File "${SRCDIR}\SharpFont.dll"
File "${SRCDIR}\global mix database.dat"
File "${SRCDIR}\GeoIP.dll
File "${SRCDIR}\GeoIP.dat"
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
CreateDirectory "$SMPROGRAMS\$StartMenuFolder"
@@ -280,6 +282,8 @@ Function ${UN}Clean
Delete $INSTDIR\cgGL.dll
Delete $INSTDIR\zlib1.dll
Delete "$INSTDIR\global mix database.dat"
Delete $INSTDIR\GeoIP.dat
Delete $INSTDIR\GeoIP.dll
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenRA"
Delete $INSTDIR\uninstaller.exe
RMDir $INSTDIR