If you cannot find it, run the game once, change a setting (like volume), close the game, and search your computer for sm64config.txt .
When the SM64 executable launches, it reads this file. When you close the game, it overwrites the file with any changes made via console commands or modified in-game settings.
How do I reset controls to default? · Issue #471 · sm64pc/sm64ex