Updated Polish translation

Added char* variant functions to Logging.cpp.
This commit is contained in:
NovaRain
2021-10-14 09:25:15 +08:00
parent ecd574063a
commit b475bf91fb
4 changed files with 20 additions and 4 deletions
+1 -1
View File
@@ -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::
+1 -1
View File
@@ -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
View File
@@ -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
View File
@@ -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, ...);