Config()->m_SvPort
might be outdatedm_NetServer
s binaddr# TODO: this currently hangs
# def test_huffman_empty():
# huffman.decompress(b'')
let octocrab = octocrab::instance();
// Returns the first page of all issues.
let mut page = octocrab
.issues("XAMPPRocky", "octocrab")
.list()
// Optional Parameters
.creator("XAMPPRocky")
.state(params::State::All)
.per_page(50)
.send()
.await?;
// Go through every page of issues. Warning: There's no rate limiting so
// be careful.
loop {
for issue in &page {
println!("{}", issue.title);
}
page = match octocrab
.get_page::<models::issues::Issue>(&page.next)
.await?
{
Some(next_page) => next_page,
None => break,
}
}
let octocrab = octocrab::instance();
// Returns the first page of all issues.
let mut page = octocrab
.issues("XAMPPRocky", "octocrab")
.list()
// Optional Parameters
.creator("XAMPPRocky")
.state(params::State::All)
.per_page(50)
.send()
.await?;
// Go through every page of issues. Warning: There's no rate limiting so
// be careful.
loop {
for issue in &page {
println!("{}", issue.title);
}
page = match octocrab
.get_page::<models::issues::Issue>(&page.next)
.await?
{
Some(next_page) => next_page,
None => break,
}
}
https://api.github.com/repos/user/repo/contents/
, check if the JSON contains the files "Cargo.lock"/"Cargo.toml" (edited)curl
and jq
the only acceptable tools for api usagewhile IFS=, read -r col1 col2 col3; do echo "$col1"; done < file.csv
src/engine/client/backend/opengl/backend_opengl.cpp:1599: undefined reference to `__stack_chk_fail'
Still testing if this fixes the build..dll
files from x86
directory into the DDNet directory.dll
files from x86
directory into the DDNet directory a0c6ef0
Revert "Execute CFGFLAG_GAME configs from map load on the client" - Robyt3m_Zoom = pow(ZoomStep, g_Config.m_ClDefaultZoom - 10)
if ZoomStep = std::cos((30.0f * pi) / 180.0f)
(about 0.866025, the constant the game uses)
then u can reverse it w this
m_ConsoleZoom = std::log(m_pClient->m_Camera.m_Zoom * std::pow(ZoomStep, 10)) / std::log(ZoomStep)
zoom+
or zoom-
in the console, it takes your number and puts into a function that outputs a better number for math when rendering (m_pClient->m_Camera.m_Zoom
)
but that's silly, this number should be calculated & cached by the code using it & m_Zoom should instead be that console value, imo
but a way to sidestep the problem is to apply this other fn whenever you want the console zoom value, using m_Zoom as inputm_Zoom = pow(ZoomStep, g_Config.m_ClDefaultZoom - 10)
if ZoomStep = std::cos((30.0f * pi) / 180.0f)
(about 0.866025, the constant the game uses)
then u can reverse it w this
m_ConsoleZoom = std::log(m_pClient->m_Camera.m_Zoom * std::pow(ZoomStep, 10)) / std::log(ZoomStep)
zoom+
or zoom-
in the console, it takes your number and puts into a function that outputs a better number for math when rendering (m_pClient->m_Camera.m_Zoom
)
but that's silly, this number should be calculated & cached by the code using it & m_Zoom should instead be that console value, imo
but a way to sidestep the problem is to apply this other fn whenever you want the console zoom value, using m_Zoom as input m_ConsoleZoom = std::log(m_pClient->m_Camera.m_Zoom * std::pow(ZoomStep, 10)) / std::log(ZoomStep)
m_ConsoleZoom = std::log(m_pClient->m_Camera.m_Zoom * std::pow(ZoomStep, 10)) / std::log(ZoomStep)
m_Zoom
to m_RawZoom
(or leave it) and add m_ConsoleZoom
to CCamera
m_Zoom
to m_RawZoom
(or leave it) and add m_ConsoleZoom
to CCamera
pow(ZoomStep, g_Config.m_ClDefaultZoom - 10)
whenever i needed to do math using this valuepow(ZoomStep, g_Config.m_ClDefaultZoom - 10)
whenever i needed to do math using this value m_Zoom
to m_RawZoom
(or leave it) and add m_ConsoleZoom
to CCamera
*
should also be shown in the tooltip to reset the zoom to default.HANDLE
and Windows API functions instead of FILE *
and standard library functions in all Windows IO function implementations.
Using CreateFileW
instead of _wfsopen
to open files is necessary, as only CreateFileW
allows specifying all necessary sharing flags. The sharing flags FILE_SHARE_READ
and FILE_SHARE_WRITE
were previously already specified by using _SH_DENYNO
with _wfsopen
, but FILE_SHARE_DELETE
can only be set when using `Crea...fseek
limitation is int
SetFilePointer
has a really weird interface to handle 64 bit sizeCLockScope
lock_trylock
is indeed unused, there other ones notlock_wait
and lock_unlock
GetData
return nullptr
and GetDataSize
return 0
for the respective index.
Internally the decompressed size is set to -1
for data which failed to load, so loading of those data will not be attempted again because it would only fail again and can cause additional log messages.
LoadSkin
overload w/ CImageInfo
is a life saver as wellshared_ptr
to a subclass of IJob
, either the sub-thread does the finishing operation on its own (probably with some synchronization) or the main thread checks if the job is done and then uses the result (edited)OnCompletion
handler I thinkm_WriterFinishJobs
is used in the editorWriterFinishJobs
IGraphics::CORNER_I*
) are currently not used anywhere and also only supported when using Draw4
.
They also feel clunky to use due to the inverted corners being drawn outside of the specified rectangle area.
Here is how the inverted round corners would look like (on color pickers because it's the only place where we use Draw4
):
!inverted corners
## Che...