str_format(CSkyb::UserDirPath, sizeof(CSkyb::UserDirPath), "%s", m_aUserdir);
and this is the definition:
class CSkyb
{
public:
static char UserDirPath[512];
bool IsStandardString(const char *pStr);
char *GetUserDirPath();
};
namespace NSkyb
{
static char UserDirectory[512];
}
and assigned the value somewhere:
str_copy(NSkyb::UserDirectroy,m_aUserDir)
but when i try to read the value of NSkyb::UserDirectory somewhere else, the value is gone (edited)namespace NSkyb
{
static char UserDirectory[512];
}
and assigned the value somewhere:
str_copy(NSkyb::UserDirectroy,m_aUserDir)
but when i try to read the value of NSkyb::UserDirectory somewhere else, the value is gone (edited)g_Config
you just need to include the header#define MYSTR "my string"
and then put it in your globals.h that you include whereever you need itg_Config
you just need to include the header extern IStorage *CreateStorage(int StorageType, int NumArgs, const char **ppArguments);
extern IStorage *CreateLocalStorage();
extern IStorage *CreateTempStorage(const char *pDirectory);
virtual IOHANDLE OpenFile(const char *pFilename, int Flags, int Type, char *pBuffer = nullptr, int BufferSize = 0) = 0;
virtual bool FindFile(const char *pFilename, const char *pPath, int Type, char *pBuffer, int BufferSize) = 0;
int
constant named ERROR
is already in the scope in http.cpp
int x = ERROR;
after #include <curl/curl.h>
in http.cpp
of current master than this compiles, so one of the includes must add this constant which clashes with the constant you addedvirtual bool FindFile(const char *pFilename, const char *pPath, int Type, char *pBuffer, int BufferSize) = 0;
IOHANDLE file = io_open(abuff, IOFLAG_WRITE);
io_write(file, "hello", 10);
io_close(file);
IOHANDLE file = io_open(abuff, IOFLAG_WRITE);
io_write(file, "hello", 10);
io_close(file);
str_length
to get the length of the string that you want to writem_SelectedSpectatorID
outside of spectator.h
? (edited)m_SelectedSpectatorID
outside of spectator.h
? (edited)aBuf[0] = '\0';
mem_zero(aBuf, sizeof(aBuf));
mem_zero(aBuf, sizeof(aBuf));
int
constant named ERROR
is already in the scope in http.cpp
str_comp
compares the contents, read the comment in system.h
0
when the strings match0
when the strings match NETMSG_RCON_AUTH_STATUS
/ protocol7::NETMSG_RCON_AUTH_OFF
supposed to be used to specify the end of rcon command sending already or should we also send NETMSG_RCON_CMD_GROUP_END
when a client is logged out? Are NETMSG_RCON_CMD_GROUP_END
without matching NETMSG_RCON_CMD_GROUP_START
allowed/no-op or would we have to prevent that case explicitly? struct CAccount
{
char m_aUsername[NSkyb::MAXIMUM_USERNAME_LENGTH];
char m_aPassword[NSkyb::MAXIMUM_PASSWORD_LENGTH];
}m_Account;
bool ReadMoney(char *Username = m_Account.m_aUsername, char *Password = m_Account.m_aPassword);
struct CAccount
{
char m_aUsername[NSkyb::MAXIMUM_USERNAME_LENGTH];
char m_aPassword[NSkyb::MAXIMUM_PASSWORD_LENGTH];
}m_Account;
bool ReadMoney(char *Username = m_Account.m_aUsername, char *Password = m_Account.m_aPassword);
struct CAccount
{
char m_aUsername[NSkyb::MAXIMUM_USERNAME_LENGTH];
char m_aPassword[NSkyb::MAXIMUM_PASSWORD_LENGTH];
}m_Account;
bool ReadMoney(char *Username = m_Account.m_aUsername, char *Password = m_Account.m_aPassword);
CTextCursor::m_LineCount
variable is only updated after the cursor is rendered. For calculating the selection quads we need to check LineCount
instead, which is updated while the cursor is being rendered. Regression from #7733.
3e61d0d
Extract local variable Line
- Robyt3
9b24820
Fix potentially incorrect chat background for censored messages - Robyt3
5b2ef36
Remove unnecessary temporary variables - Robyt3
df12d58
Remove unnecessary default argument for TextEx
- Robyt3
4fded18
Calculate chat message height using text render function - Robyt3
d897573
Fix chat background width calculation when scoreboard is open - Robyt3
a873485
Fix multi-line text selection not rendered correctly anymore - Robyt3
a7ac29d
Merge pull request #7798 from Robyt3/Textrender-Selection-Fix - def-
3b10500
Merge pull request #7797 from Robyt3/Chat-Render-Improvements - def-