diff options
Diffstat (limited to 'games-strategy/hedgewars/files/hedgewars-0.9.0-debug-file.patch')
-rw-r--r-- | games-strategy/hedgewars/files/hedgewars-0.9.0-debug-file.patch | 96 |
1 files changed, 96 insertions, 0 deletions
diff --git a/games-strategy/hedgewars/files/hedgewars-0.9.0-debug-file.patch b/games-strategy/hedgewars/files/hedgewars-0.9.0-debug-file.patch new file mode 100644 index 000000000000..0bf26eb716db --- /dev/null +++ b/games-strategy/hedgewars/files/hedgewars-0.9.0-debug-file.patch @@ -0,0 +1,96 @@ +Index: QTfrontend/game.cpp +=================================================================== +--- QTfrontend/game.cpp (revision 510) ++++ QTfrontend/game.cpp (revision 512) +@@ -204,6 +204,7 @@ + QStringList HWGame::setArguments() + { + QStringList arguments; ++ arguments << cfgdir->absolutePath(); + arguments << resolutions[0][config->vid_Resolution()]; + arguments << resolutions[1][config->vid_Resolution()]; + arguments << "16"; // bpp +Index: QTfrontend/hwmap.cpp +=================================================================== +--- QTfrontend/hwmap.cpp (revision 510) ++++ QTfrontend/hwmap.cpp (revision 512) +@@ -15,6 +15,7 @@ + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ + ++#include "hwconsts.h" + #include "hwmap.h" + + HWMap::HWMap() : +@@ -35,6 +36,7 @@ + QStringList HWMap::setArguments() + { + QStringList arguments; ++ arguments << cfgdir->absolutePath(); + arguments << QString("%1").arg(ipc_port); + arguments << "landpreview"; + return arguments; +Index: hedgewars/hwengine.dpr +=================================================================== +--- hedgewars/hwengine.dpr (revision 510) ++++ hedgewars/hwengine.dpr (revision 512) +@@ -176,27 +176,27 @@ + {$ENDIF} + + case ParamCount of +-11: begin +- val(ParamStr(1), cScreenWidth, c); +- val(ParamStr(2), cScreenHeight, c); +- cBitsStr:= ParamStr(3); ++12: begin ++ val(ParamStr(2), cScreenWidth, c); ++ val(ParamStr(3), cScreenHeight, c); ++ cBitsStr:= ParamStr(4); + val(cBitsStr, cBits, c); +- val(ParamStr(4), ipcPort, c); +- cFullScreen:= ParamStr(5) = '1'; +- isSoundEnabled:= ParamStr(6) = '1'; +- cLocaleFName:= ParamStr(7); +- val(ParamStr(8), cInitVolume, c); +- val(ParamStr(9), cTimerInterval, c); +- PathPrefix:= ParamStr(10); +- cShowFPS:= ParamStr(11) = '1'; ++ val(ParamStr(5), ipcPort, c); ++ cFullScreen:= ParamStr(6) = '1'; ++ isSoundEnabled:= ParamStr(7) = '1'; ++ cLocaleFName:= ParamStr(8); ++ val(ParamStr(9), cInitVolume, c); ++ val(ParamStr(10), cTimerInterval, c); ++ PathPrefix:= ParamStr(11); ++ cShowFPS:= ParamStr(12) = '1'; + for p:= Succ(Low(TPathType)) to High(TPathType) do + if p <> ptMapCurrent then Pathz[p]:= PathPrefix + '/' + Pathz[p]; + AddClouds + end; +- 2: begin +- val(ParamStr(1), ipcPort, c); ++ 3: begin ++ val(ParamStr(2), ipcPort, c); + GameType:= gmtLandPreview; +- if ParamStr(2) <> 'landpreview' then OutError(errmsgShouldntRun, true); ++ if ParamStr(3) <> 'landpreview' then OutError(errmsgShouldntRun, true); + end + else + OutError(errmsgShouldntRun, true) +Index: hedgewars/uMisc.pas +=================================================================== +--- hedgewars/uMisc.pas (revision 510) ++++ hedgewars/uMisc.pas (revision 512) +@@ -253,9 +253,10 @@ + + {$IFDEF DEBUGFILE} + {$I-} +-for i:= 0 to 7 do ++if ParamCount > 0 then ++ for i:= 0 to 7 do + begin +- Assign(f, 'debug' + inttostr(i) + '.txt'); ++ Assign(f, ParamStr(1) + '/debug' + inttostr(i) + '.txt'); + rewrite(f); + if IOResult = 0 then break + end; |