Skip to content

Commit

Permalink
vs2019
Browse files Browse the repository at this point in the history
  • Loading branch information
ThirteenAG committed May 31, 2019
1 parent b11ff08 commit 34b7084
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 34 deletions.
4 changes: 2 additions & 2 deletions appveyor.yml
Expand Up @@ -3,10 +3,10 @@ branches:
only:
- master
skip_tags: true
image: Visual Studio 2017
image: Visual Studio 2019
configuration: Release
init:
- ps: "if (-not (Test-Path env:DXSDK_DIR)) \n{\nStart-FileDownload 'https://download.microsoft.com/download/A/E/7/AE743F1F-632B-4809-87A9-AA1BB3458E31/DXSDK_Jun10.exe' -FileName 'C:\\DXSDK_Jun10.exe'\nStart-FileDownload 'https://github.com/chocolatey/chocolatey/raw/master/src/redirects/RefreshEnv.cmd' -FileName 'C:\\RefreshEnv.cmd'\nStart-Process \"C:\\DXSDK_Jun10.exe\" \"/F /S /O /U\" -NoNewWindow -Wait\nC:\\RefreshEnv.cmd\n}"
- ps: "if (-not (Test-Path env:DXSDK_DIR)) \n{\nStart-FileDownload 'https://download.microsoft.com/download/A/E/7/AE743F1F-632B-4809-87A9-AA1BB3458E31/DXSDK_Jun10.exe' -FileName 'C:\\DXSDK_Jun10.exe'\nStart-FileDownload 'https://raw.githubusercontent.com/chocolatey/choco/master/src/chocolatey.resources/redirects/RefreshEnv.cmd' -FileName 'C:\\RefreshEnv.cmd'\nStart-Process \"C:\\DXSDK_Jun10.exe\" \"/F /S /O /U\" -NoNewWindow -Wait\nC:\\RefreshEnv.cmd\n}"
install:
- cmd: >-
git submodule update --init --recursive
Expand Down
2 changes: 1 addition & 1 deletion premake5.bat
@@ -1 +1 @@
premake5 vs2017
premake5 vs2019
Binary file modified premake5.exe
Binary file not shown.
10 changes: 7 additions & 3 deletions premake5.lua
Expand Up @@ -30,9 +30,13 @@ project "Ultimate-ASI-Loader-x86"
files { "external/MemoryModule/*.h", "external/MemoryModule/*.c" }
files { "external/ModuleList/*.hpp" }

local dxsdk = os.getenv "DXSDK_DIR" or "Error: DXSDK_DIR not set!"
includedirs { dxsdk .. "/include" }
libdirs { dxsdk .. "/lib/x86" }
if dxsdk then
includedirs { dxsdk .. "/include" }
libdirs { dxsdk .. "/lib/x86" }
else
includedirs { "C:/Program Files (x86)/Microsoft DirectX SDK (June 2010)/include" }
libdirs { "C:/Program Files (x86)/Microsoft DirectX SDK (June 2010)/lib/x86" }
end

characterset ("UNICODE")

Expand Down
59 changes: 31 additions & 28 deletions readme.md
@@ -1,51 +1,54 @@
Ultimate ASI Loader
===================
# Ultimate ASI Loader

## DESCRIPTION

DESCRIPTION
------------------------
This is a DLL file which adds ASI plugin loading functionality to any game, which uses any of the following libraries:
* d3d8.dll
* d3d9.dll
* d3d11.dll
* ddraw.dll
* dinput.dll
* dinput8.dll (x86 and x64)
* dsound.dll (x86 and x64)
* msacm32.dll
* msvfw32.dll
* version.dll (x86 and x64)
* wininet.dll (x86 and x64)
* winmm.dll
* xlive.dll

* vorbisFile.dll
* binkw32.dll

- d3d8.dll
- d3d9.dll
- d3d11.dll
- ddraw.dll
- dinput.dll
- dinput8.dll (x86 and x64)
- dsound.dll (x86 and x64)
- msacm32.dll
- msvfw32.dll
- version.dll (x86 and x64)
- wininet.dll (x86 and x64)
- winmm.dll
- xlive.dll

- vorbisFile.dll
- binkw32.dll

With the last two, it is possible to load the original dll by renaming it to 'vorbisHooked.dll' or 'binkw32Hooked.dll'.
Usually it is not required and you can simply replace the dll. Always make a backup before replacing any files.

INSTALLATION
------------------------
## INSTALLATION

In order to install it, you just need to place DLL into game directory. Usually it works as dinput8.dll, but if it's not, there is a possibility to rename it(see the list of supported names above).

## USAGE

USAGE
------------------------
Put ASI files in game root directory, 'scripts' or 'plugins' folder.
If configuration is necessary, global.ini file can be placed to 'scripts' or 'plugins' folder. It can be used alongside the chosen dll and if so, it is also possible to use dll name for ini file, e.g. version.dll/version.ini.
[See example of global.ini here](https://github.com/ThirteenAG/Ultimate-ASI-Loader/blob/master/data/scripts/global.ini).

## ADDITIONAL WINDOWED MODE FEATURE

ADDITIONAL WINDOWED MODE FEATURE
------------------------
ASI loader have built-in wndmode.dll, which can be loaded, if you create empty wndmode.ini in the folder with asi loader's dll. It will be automatically filled with example configuration at the first run of the game. Settings are not universal and should be changed in every specific case, but usually it works as is.

D3D8TO9
------------------------
## D3D8TO9

Some mods, like [SkyGfx](https://github.com/aap/skygfx_vc) require [d3d8to9](https://github.com/crosire/d3d8to9). It is also a part of ASI loader, so in order to use it, create global.ini inside scripts folder with the following content:

```
[GlobalSets]
UseD3D8to9=1
```

[See example of global.ini here](https://github.com/ThirteenAG/Ultimate-ASI-Loader/blob/master/data/scripts/global.ini#L5).

## CrashDumps

ASI loader is now capable of generating crash minidumps and crash logs. To use this feature, create a folder named `CrashDumps` in the folder with asi loader's dll. You can disable that via `DisableCrashDumps=1` ini option.

0 comments on commit 34b7084

Please sign in to comment.