virustotalop / bizhawk

Automatically exported from code.google.com/p/bizhawk
1 stars 0 forks source link

Relative path changes in lua during forms.button clickEvent #405

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Load a rom, load the attached sample script in the lua console
2. Watch the lua console output
3. Click the button in the lua form

What is the expected output? What do you see instead?
At the start of the script "lua_test.txt" is created next to the .lua file and 
filled with "Waiting...". The contents of the file are displayed on the console 
every frame as part of the frame loop. Clicking the button in the form should 
write "Success!" to the same file, but the relative path during the click event 
is different than during the frame loop causing a second "lua_test.txt" file to 
be created next to the bizhawk exe. 

If the path was the same, "Waiting..." would be replaced with "Success!", and 
this would be displayed on the lua console. 

Original issue reported on code.google.com by pjga...@gmail.com on 7 Mar 2015 at 5:12

Attachments: