View Single Post
Old 7th February 2019, 22:06   #1  |  Link
silverwing
Registered User
 
Join Date: Nov 2017
Location: Russia, Nizhny Novgorod
Posts: 25
One avisynth script for different bitness (64 and 32). How?

Hi, All!

Two Avisynth+ (and two MEGUI, respectively) are installed on my system: 64 bit and 32 bit.
At the moment, I am making two scripts depending on the bitness of avisynth, because the DLLs are different. Both scripts perform the same task.
Here is an example:

(32 bit)
Code:
...
LoadPlugin ("D:\Megui_X86\tools\avisynth_plugin\mvtools2.dll")
... etc
(64 bit)
Code:
...
LoadPlugin ("D:\Megui_X64\tools\avisynth_plugin\mvtools2.dll")
... etc
I want a strange one: make one universal avisynth script that will work in both cases (32 bit and 64 bit).
Something like this (IMHO, GScipt can do if-else):
Code:
if (avisynth_bitness == 64) 
   PluginPath = "D:\Megui_X64\tools\avisynth_plugin\"
else
   PluginPath = "D:\Megui_X86\tools\avisynth_plugin\"
LoadPlugin($PluginPath + "mvtools2.dll")
Is it possible like that? If possible, please help with an example or give a specific link where you can read about it.

Thank you for attention.
(Sorry for my bad English)
silverwing is offline   Reply With Quote