the old code has a major problem where it tried to memcpy data after unmaping which
in some cases results in unexpected crashes as mapped.pData may point to invalid memory
after unmaping
Signed-off-by: 3makJoud <5+3makjoud@noreply.neolegacy.dev>
Everything on C_4JInput resolves through the joypad map, so a caller that wants to
know which physical button moved - a rebinding screen, say - has nowhere to ask.
GetGameJoypadMapsRaw is the same idea for the map itself. GetGameJoypadMaps applies
the button swap on the way out, and for pad 0's setting regardless of which pad you
asked about, which is wrong for anything copying maps around.
* feat: CMakeSettings.json
* chore: remove visual studio stuff
chore: move .clang-format to main directory
* feat: new file structure, easier to implement as a submodule within existing projects
* chore: we actually include some code now...
* chore: remove prebuilt libraries (oops)
* feat: new shader building script using cmake
* chore: add debug postfix specifier
* fix: forgot that windows builds use 4J_Render_PC for the render library
* fix: didn't add the output directory (where shaders are saved to) to the include directories of 4J_Render
fix(storage): thumbnails would be assumed to exist for certain saves even if the file was missing
fix(storage): save files didn't properly delete due to incorrectly assumed conventions
feat(storage): save titles are now encoded into the name of the save files
feat(storage): added functionality to delete save files
chore(storage): document functions which don't have to be implemented, as they're unused for the Windows platform
chore(storage): rename some variables to be more accurate with the binaries
fix(render): in vs2012, m_backBufferTexture cannot be initialized in a header
fix(storage): in CDLC::GetMountedPath, m_szMountPath and m_szDirectoryPath were mixed up
fix(storage): in CSaveGame::SetSaveTitle, there was a wide string to narrow string mismatch
fix: Renderer::CaptureThumbnail now can capture thumbnails correctly
fix: renderTargetViews and renderTargetShaderResourceViews are no longer null
fix: texture saving functions were using BGRA instead of RGBA format