Skip to content

Commit

Permalink
IMGMAKE: If asked to generate a .BAT file, have the .BAT file mount t…
Browse files Browse the repository at this point in the history
…he image file, not the .BAT file.
  • Loading branch information
joncampbell123 committed Sep 8, 2023
1 parent bab8b7e commit 06ed136
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ Next version:
the timer tick rate to a value close enough to vertical refresh.
This is intended for games or demos that use the system timer for
a vsync interrupt.
- IMGMAKE: Fix bug where if -bat was specified, the generated .bat
file would attempt to mount the .bat file, not the disk image.

2023.09.01
- Disable by default message confirmation after snapshot and AVI video
Expand Down
5 changes: 2 additions & 3 deletions src/dos/dos_programs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3999,10 +3999,9 @@ class IMGMAKE : public Program {
// create the batch file
if(t2 == "-bat") {
if(temp_line.length() > 3) {
t2 = temp_line.substr(0,temp_line.length()-4);
t2 = t2.append(".bat");
t2 = temp_line.substr(0,temp_line.length()-4) + ".bat";
} else {
t2 = temp_line.append(".bat");
t2 = temp_line + ".bat";
}
WriteOut("%s\n",t2.c_str());
f = fopen(t2.c_str(),"wb+");
Expand Down

0 comments on commit 06ed136

Please sign in to comment.