CE-Programming / CEmu

Third-party TI-84 Plus CE / TI-83 Premium CE emulator, focused on developer features
https://ce-programming.github.io/CEmu
Other
1.05k stars 77 forks source link

Variables that start with `r` show up as `Ans` in the Variable Viewer #466

Closed LogicalJoe closed 1 year ago

LogicalJoe commented 1 year ago

What's wrong, and with what software version?

Operating System: MacOS Ventura 13.3.1 (a) CEmu version: CEmu v2.0dev (git: 851a59e) Describe your issue:
Any variable that starts with the letter r shows up as Ans in the Variable Viewer.

What are the steps to reproduce this issue?

  1. Send variable (AppVar) with a name that starts with r to the calculator
  2. Open the Variable Viewer

Any logs, error output, screenshot, other comments...?

This is because Ans (token 072h) and r (font character 072h) are the same, so when generating the file name it checks the first character and Ans takes precedence. https://github.com/CE-Programming/CEmu/blob/badbf3c0cbc377115977eb4a4c3f0c619849649c/core/vat.c#L176-L180

captain-calc commented 1 year ago

Pull request with possible fix here: https://github.com/CE-Programming/CEmu/pull/467