Bridge to execute Lua in Windows PCSX-Redux from WSL/Gemini using %APPDATA%.
- Directory: Ensure
C:\Users\acurr\AppData\Roaming\pcsx-effect-editor\lua_cliexists. - Emulator: In PCSX-Redux, run
dofile('tools/watcher.lua').- The script uses
os.getenv("APPDATA")to find the bridge folder.
- The script uses
- Bridge Path (Windows):
%APPDATA%\pcsx-effect-editor\lua_cli\ - Bridge Path (WSL):
/mnt/c/Users/acurr/AppData/Roaming/pcsx-effect-editor/lua_cli/ - Input:
incoming.lua(MUST end with-- runto execute) - Output:
response.txt
- Write Lua to
/mnt/c/Users/acurr/AppData/Roaming/pcsx-effect-editor/lua_cli/incoming.lua.- Crucial: Append
-- runto the end of the file.
- Crucial: Append
- Poll for
/mnt/c/Users/acurr/AppData/Roaming/pcsx-effect-editor/lua_cli/response.txt. - Read result. (Note: The watcher overwrites this file on each run).