mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-02-08 16:52:01 +00:00
Revert 1541 until the author fixes compile error.
This commit is contained in:
parent
754d7a6514
commit
a434d81490
1 changed files with 0 additions and 40 deletions
|
@ -65,7 +65,6 @@
|
||||||
#include "g_input.h"
|
#include "g_input.h"
|
||||||
#include "c_commandbuffer.h"
|
#include "c_commandbuffer.h"
|
||||||
#include "vm.h"
|
#include "vm.h"
|
||||||
#include "m_argv.h"
|
|
||||||
|
|
||||||
#define LEFTMARGIN 8
|
#define LEFTMARGIN 8
|
||||||
#define RIGHTMARGIN 8
|
#define RIGHTMARGIN 8
|
||||||
|
@ -111,9 +110,6 @@ static int TopLine, InsertLine;
|
||||||
|
|
||||||
static void ClearConsole ();
|
static void ClearConsole ();
|
||||||
|
|
||||||
static FString* RefreshFile;
|
|
||||||
static int RefreshInterval = 0;
|
|
||||||
|
|
||||||
struct GameAtExit
|
struct GameAtExit
|
||||||
{
|
{
|
||||||
GameAtExit(FString str) : Command(str) {}
|
GameAtExit(FString str) : Command(str) {}
|
||||||
|
@ -239,8 +235,6 @@ void C_InitConback(FTextureID fallback, bool tile, double brightness)
|
||||||
void C_InitConsole (int width, int height, bool ingame)
|
void C_InitConsole (int width, int height, bool ingame)
|
||||||
{
|
{
|
||||||
int cwidth, cheight;
|
int cwidth, cheight;
|
||||||
const char *v;
|
|
||||||
int i;
|
|
||||||
|
|
||||||
vidactive = ingame;
|
vidactive = ingame;
|
||||||
if (CurrentConsoleFont != NULL)
|
if (CurrentConsoleFont != NULL)
|
||||||
|
@ -256,18 +250,6 @@ void C_InitConsole (int width, int height, bool ingame)
|
||||||
CmdLine.ConCols = ConWidth / cwidth;
|
CmdLine.ConCols = ConWidth / cwidth;
|
||||||
|
|
||||||
if (conbuffer == NULL) conbuffer = new FConsoleBuffer;
|
if (conbuffer == NULL) conbuffer = new FConsoleBuffer;
|
||||||
|
|
||||||
i = Args->CheckParm ("-refreshfile");
|
|
||||||
if (i > 0 && i < (int)Args->NumArgs() - 1)
|
|
||||||
{
|
|
||||||
RefreshFile = Args->GetArgList(i + 1);
|
|
||||||
RefreshInterval = TICRATE;
|
|
||||||
v = Args->CheckValue ("-refreshinterval");
|
|
||||||
if (v != NULL && (atoi(v) != 0))
|
|
||||||
{
|
|
||||||
RefreshInterval = atoi(v);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
|
@ -552,31 +534,9 @@ void C_NewModeAdjust ()
|
||||||
int consoletic = 0;
|
int consoletic = 0;
|
||||||
void C_Ticker()
|
void C_Ticker()
|
||||||
{
|
{
|
||||||
FileReader fr;
|
|
||||||
static int lasttic = 0;
|
static int lasttic = 0;
|
||||||
long filesize = 1;
|
|
||||||
consoletic++;
|
consoletic++;
|
||||||
|
|
||||||
if (RefreshInterval > 0 && (consoletic % RefreshInterval) == 0)
|
|
||||||
{
|
|
||||||
if (fr.OpenFile (RefreshFile->GetChars()))
|
|
||||||
{
|
|
||||||
auto length = fr.GetLength();
|
|
||||||
fr.Close();
|
|
||||||
|
|
||||||
if (length > 0)
|
|
||||||
{
|
|
||||||
C_ExecFile (RefreshFile->GetChars());
|
|
||||||
|
|
||||||
// Truncate the file
|
|
||||||
FileWriter fw;
|
|
||||||
if (fw.Open (RefreshFile->GetChars())) {
|
|
||||||
fw.Close ();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (lasttic == 0)
|
if (lasttic == 0)
|
||||||
lasttic = consoletic - 1;
|
lasttic = consoletic - 1;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue