public static TryGetFileVersion ( string filePath, System.Version &fileVersion ) : bool | ||
filePath | string | |
fileVersion | System.Version | |
리턴 | bool |
public Version GetGtaVersion() { var installedGtaVersion = new Version(0, 0); var gtaExeFilePath = Path.Combine(_settings.GtaPath, "GTA5.exe"); Util.TryGetFileVersion(gtaExeFilePath, ref installedGtaVersion); return(installedGtaVersion); }
public Version GetModVersion() { var installedModVersion = new Version(0, 0); var modDllFilePath = Path.Combine(_settings.GtaPath, "scripts", "Gta5EyeTracking.dll"); Util.TryGetFileVersion(modDllFilePath, ref installedModVersion); return(installedModVersion); }