swe-teamteam / OpenRCT2

An open source re-implementation of RollerCoaster Tycoon 2 🎢
http://openrct2.website
GNU General Public License v3.0
0 stars 0 forks source link

Saving a game with a dot in name will not work #5

Open J-Pinelli opened 7 years ago

J-Pinelli commented 7 years ago

OS: Windows 10 Version: ? Commit/Build: ? [e.g. 426e106]

Saving a game with a dot in the name will not save the game.

Steps to reproduce:

  1. Open any park
  2. Open save menu
  3. Open dialog windows
  4. Type any name with a dot in it (ex. test.test)
  5. Try to load game
  6. The game save that was attempted is not in saved files

Screenshots / Video:

gamesavebug1 gamesavebug2

J-Pinelli commented 7 years ago

In file game.c, line 952 has a function called save_game_as(). One of the functions called within might be the problem

brocco1i commented 7 years ago

All of those functions are user-defined which are found in util.c

crorabaugh2015 commented 7 years ago

@J-Pinelli this function is only called when a user clicks Save As from the top left menu.. Apparently it is not called when a user enters a park name then clicks Save

crorabaugh2015 commented 7 years ago

The function path_remove_extension, however, is called when the user actually saves the game with a custom filename. If I can find where that call occurs then I would be able to check for an extension then, thus fixing the problem