mirror of
https://gitlab.com/shinovon/re3-symbian.git
synced 2026-05-22 17:47:20 +03:00
I removed the log I wrote. There was already one in the project, so it wasn’t necessary
This commit is contained in:
parent
cf80610ce0
commit
c3120900b4
4 changed files with 1 additions and 46 deletions
|
|
@ -1,34 +0,0 @@
|
|||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
#include "log.h"
|
||||
|
||||
void InitLog()
|
||||
{
|
||||
FILE* f = fopen("E:\\re3_log.txt", "w");
|
||||
if(f) fclose(f);
|
||||
}
|
||||
|
||||
void Log(const char* txt)
|
||||
{
|
||||
FILE* f = fopen("E:\\re3_log.txt", "a");
|
||||
if(f){
|
||||
fprintf(f, "%s\n", txt);
|
||||
fclose(f);
|
||||
}
|
||||
}
|
||||
|
||||
void Logf(const char* fmt, ...)
|
||||
{
|
||||
FILE* f = fopen("E:\\re3_log.txt", "a");
|
||||
if(!f) return;
|
||||
|
||||
char buf[256];
|
||||
|
||||
va_list args;
|
||||
va_start(args, fmt);
|
||||
vsnprintf(buf, sizeof(buf), fmt, args);
|
||||
va_end(args);
|
||||
|
||||
fprintf(f, "%s\n", buf);
|
||||
fclose(f);
|
||||
}
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
#pragma once
|
||||
|
||||
void InitLog();
|
||||
void Log(const char* txt);
|
||||
void Logf(const char* fmt, ...);
|
||||
|
|
@ -38,8 +38,6 @@
|
|||
#include "Text.h"
|
||||
#include "Timer.h"
|
||||
|
||||
#include "log.h"
|
||||
|
||||
psGlobalType psGlobal;
|
||||
|
||||
uint32 gGameState = 0;
|
||||
|
|
@ -336,10 +334,7 @@ public:
|
|||
iPeriodic->Start(aInterval, aInterval, TCallBack(CCContainer::LoopCallBack, this));
|
||||
}
|
||||
|
||||
void ConstructL(const TRect& aRect, CAknAppUi* aAppUi) {
|
||||
InitLog();
|
||||
Log("App start");
|
||||
|
||||
void ConstructL(const TRect& aRect, CAknAppUi* aAppUi) {
|
||||
iAppUi = aAppUi;
|
||||
CreateWindowL();
|
||||
iAppUi->SetOrientationL(CAknAppUiBase::EAppUiOrientationLandscape);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue