AYasinAkalin / MELE_quickIniEditor

A terminal application allowing users and modders to modify .ini and Coalesced_*.bin files of ME Legendary Edition easily without replacing the whole file; losing possible early modifications in process. (ME3 is not supported)
GNU General Public License v3.0
3 stars 0 forks source link

`NoModificationsMadeError` exception is not raised if any modification line is present #15

Open AYasinAkalin opened 3 years ago

AYasinAkalin commented 3 years ago

Current situation: This exception is raised by execute() function in worker.py when there are no modification lines are detected.

Desired situation: If ALL those modification lines contain just duplicates and won't be reflected so no file will be changed. When this occurs, program prints out Success! File(s) copied! message instead of ~Warning! No modifications detected....~ Warning! No file(s) copied!.

Proposed solution: Conditions for Success! File(s) copied! should be more strict. Add a counter for file changes inside modificationDetector.ps1 to add more check for the message.