bbepis / XUnity.AutoTranslator

MIT License
1.98k stars 292 forks source link

How To Translate Genshin Impact #299

Closed hranthakobian closed 2 years ago

hranthakobian commented 2 years ago

Hello

I'm trying Genshin Impact in my native language, Armenian, but when I launch XUnity.AutoTranslator ReiPatcher it brings me a window like this and closes after a few seconds.

image

Unhandled Exception: System.UnauthorizedAccessException: Access to the path 'C:\Program Files\Genshin Impact\Genshin Impact game\ReiPatcher' is denied. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj, Boolean checkHost) at System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost) at XUnity.AutoTranslator.Setup.Program.AddFile(String fileName, Byte[] bytes, Boolean overwrite) at XUnity.AutoTranslator.Setup.Program.Main(String[] args)

zclimber commented 2 years ago

This is because of Genshin Impact is located in Program Files directory, and to modify files in it you need to run setup as administrator.

And I don't think translating Genshin Impact will work, anyway - you have to launch this game through launcher, and it will run original executable, not ReiPatcher one, and it will also check itself for modifications. See #253 for example.