mirror of
https://github.com/sfall-team/sfall.git
synced 2026-07-27 16:52:34 -07:00
Updated Polish translation
Added char* variant functions to Logging.cpp.
This commit is contained in:
@@ -10,7 +10,7 @@ SaveSfallDataFail=B
|
||||
PartyLvlMsg=Lvl:
|
||||
PartyACMsg=AC:
|
||||
PartyAddictMsg=Uzależniony
|
||||
NPCPickupFail=%s nie można podnieść przedmiotu.
|
||||
NPCPickupFail=%s nie może podnieść przedmiotu.
|
||||
|
||||
PartyOrderAttackHuman=Zajmę się tym.|Okej, zrozumiałem.|No to mamy plan.
|
||||
PartyOrderAttackCreature=::Warknięcie::
|
||||
|
||||
@@ -156,7 +156,7 @@ void __declspec(naked) interpretError(const char* fmt, ...) {
|
||||
|
||||
long __fastcall tile_num(long x, long y) {
|
||||
__asm push ebx; // don't delete (bug in tile_num_)
|
||||
WRAP_WATCOM_FCALL2(tile_num_, x, y)
|
||||
WRAP_WATCOM_FCALL2(tile_num_, x, y);
|
||||
__asm pop ebx;
|
||||
}
|
||||
|
||||
|
||||
+15
-1
@@ -29,11 +29,18 @@ namespace sfall
|
||||
static int DebugTypes = 0;
|
||||
static std::ofstream Log;
|
||||
|
||||
void dlog(const std::string& a) {
|
||||
void dlog(const char* a) {
|
||||
Log << a;
|
||||
Log.flush();
|
||||
}
|
||||
|
||||
void dlog(const char* a, int type) {
|
||||
if (isDebug && (type == DL_MAIN || (type & DebugTypes))) {
|
||||
Log << a;
|
||||
Log.flush();
|
||||
}
|
||||
}
|
||||
|
||||
void dlog(const std::string& a, int type) {
|
||||
if (isDebug && (type == DL_MAIN || (type & DebugTypes))) {
|
||||
Log << a;
|
||||
@@ -41,6 +48,13 @@ void dlog(const std::string& a, int type) {
|
||||
}
|
||||
}
|
||||
|
||||
void dlogr(const char* a, int type) {
|
||||
if (isDebug && (type == DL_MAIN || (type & DebugTypes))) {
|
||||
Log << a << "\n";
|
||||
Log.flush();
|
||||
}
|
||||
}
|
||||
|
||||
void dlogr(const std::string& a, int type) {
|
||||
if (isDebug && (type == DL_MAIN || (type & DebugTypes))) {
|
||||
Log << a << "\n";
|
||||
|
||||
+3
-1
@@ -30,8 +30,10 @@
|
||||
namespace sfall
|
||||
{
|
||||
|
||||
void dlog(const std::string& msg);
|
||||
void dlog(const char* msg);
|
||||
void dlog(const char* msg, int type);
|
||||
void dlog(const std::string& msg, int type);
|
||||
void dlogr(const char* msg, int type);
|
||||
void dlogr(const std::string& msg, int type);
|
||||
void dlog_f(const char* fmt, int type, ...);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user