Skip to content

Commit 5fb434c

Browse files
authored
HOTFIX
Olympus extension added too many export lines in export.lua
1 parent fa7ac63 commit 5fb434c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

extensions/olympus/extension.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
_ = get_translation(__name__.split('.')[1])
2121

22-
OLYMPUS_EXPORT_LINE = r"pcall(function() local olympusLFS=require('lfs');dofile(olympusLFS.writedir()..[[Mods\Services\Olympus\Scripts\OlympusCameraControl.lua]]); end,nil)"
22+
OLYMPUS_EXPORT_LINE = "pcall(function() local olympusLFS=require('lfs');dofile(olympusLFS.writedir()..[[Mods\\Services\\Olympus\\Scripts\\OlympusCameraControl.lua]]); end,nil)\n"
2323
ANSI_ESCAPE_RE = re.compile(r'\x1B(?:[@-Z\\-_]|\[[0-?]*[ -/]*[@-~])')
2424

2525
server_ports: dict[int, str] = dict()
@@ -219,6 +219,7 @@ async def prepare_exports_lua(self):
219219
lines = await infile.readlines()
220220
except FileNotFoundError:
221221
lines = []
222+
222223
if OLYMPUS_EXPORT_LINE not in lines:
223224
lines.append(OLYMPUS_EXPORT_LINE)
224225
async with aiofiles.open(export_file, mode='w', encoding='utf-8') as outfile:

0 commit comments

Comments
 (0)