92 Commits
Author SHA1 Message Date
Fireblade 78ce519776 feat: SDL input 2026-08-07 18:24:16 -04:00
Fireblade 0349700162 Merge pull request 'input: expose unmapped button state' (#2) from Nesuwu/4JLibs:master into master
Reviewed-on: https://git.neolegacy.dev/neoStudiosLCE/4JLibs/pulls/2
2026-08-02 22:09:08 +01:00
Nesuwu 5a92910c18 input: expose unmapped button state
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.
2026-08-02 22:01:53 +02:00
Fireblade 14abb60207 fix: 4jlibs debug builds + dlc issues 2026-07-17 00:02:23 -04:00
Fireblade 8ad0c385de feat: copy save (rockefeler) 2026-06-30 22:36:42 -04:00
Fireblade f7ab07067a fix: untransposed renderer 2026-06-30 06:04:56 +01:00
Fireblade 9b25ddf575 feat: button swapping
thank you rockefeler
2026-06-29 23:49:29 -04:00
Alex 8fb036f6d6 Fix PNG text section not being written to file (#22) 2026-04-28 02:43:48 -04:00
Patoke f567d33ccb fix(input): git, am i cooked?
mixed up left thumb and right thumbs on SetJoypadValues
2026-04-21 20:52:10 -04:00
Patoke 1f3759d75c chore: use standard Windows64 platform name for Windows_Libs 2026-04-21 02:52:42 -04:00
Patoke f1425f0494 fix: remove __uint64 typedef and use the "unsigned __int64" primitive 2026-04-21 02:38:48 -04:00
gsds e0ae7b1ec1 feat: better cmake support (#21)
* 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
2026-04-21 02:07:59 -04:00
alkandgsds 576f038dd0 bare bones cmake & tiny warnings (#1)
* add cmakelist

* fix 2 warnings

* rename libs

* add the multithreaded thing

* combine libpng into render lib

---------

Co-authored-by: gsds <51339266+Patoke@users.noreply.github.com>
2026-04-18 00:41:02 -04:00
Patoke 44e6c12004 fix(storage): some save files would not load due to incorrectly assumed conventions
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
2026-03-23 23:52:49 -03:00
Patoke 8716df6eee feat(render): DoScreenGrabOnNextPresent now properly saves the file into the GameHDD folder
feat(storage): save files now filter out the file extension and all save to .ms files to avoid confusion
chore(render): make names more accurate
2026-03-09 01:15:33 -03:00
Patoke 3ead2bb093 feat(docs): add an implementation guide for more in-depth details on how to use 4JLibs expansions
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
2026-03-08 04:11:22 -03:00
gsds 53bc372890 Merge pull request #16 from kilokki/master
use correct string width in swprintf()
2026-03-04 20:16:27 -03:00
kilokki 69181ad2f0 use correct string width in swprintf() 2026-03-04 13:09:44 -08:00
Patoke d04ab2d90e chore: implement GetSaveUniqueFilename and GetSaveUniqueNumber 2026-03-04 07:43:02 -03:00
Patoke 36d18b209e feat: game can now save and display thumbnails, code rebuilt from the xbox one edition of the game
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
2026-03-04 06:51:35 -03:00
Patoke d7f4651c52 chore: add warning for non zero initialized descriptor breaking the depth stencil 2026-03-03 23:52:16 -03:00
Patoke 03f4a4bc8f chore: match some small stuff 2026-03-03 23:46:16 -03:00
Patoke a4c968e03b Merge branch 'master' of https://github.com/Patoke/4JLibs 2026-03-03 22:31:27 -03:00
gsds 9fd09272dd Merge pull request #12 from 3UR/pr-1-dxfiscool
make 4J_Render_PC accurate
2026-03-03 22:29:48 -03:00
la df6eca44b8 chore: disable profiler
was not meant to be committed
2026-03-04 08:54:03 +10:00
la 74dd43e6f6 chore: replace c style casts with static_cast to match the code conventions 2026-03-04 07:58:35 +10:00
la 32344c11b1 chore: actually do what the last commit said 2026-03-04 07:56:45 +10:00
la 94d52937a5 chore: cleaned up all of the decompiled shaders 2026-03-04 07:52:32 +10:00
dxfiscoolandla 39339e821e chore: overhaul renderer decompilation to match as closely as possible to the original
Co-authored-by: la <76826837+3UR@users.noreply.github.com>
2026-03-04 07:37:53 +10:00
la c8abc0127b chore: cleaned up all of the decompiled shaders 2026-03-04 03:50:31 +10:00
la cc6aade337 Merge branch 'Patoke:master' into master 2026-03-03 16:18:29 +10:00
Patoke 6a910a31cf fix: revert matching code for the creation of the depthStencil and renderTargetViews 2026-03-03 03:18:07 -03:00
la 43f38eaa75 Merge branch 'Patoke:master' into master 2026-03-03 15:24:21 +10:00
Patoke 7aeed74c87 fix: image format given to pnglib was PNG_FORMAT_RGBA instead of PNG_FORMAT_BGRA 2026-03-03 02:13:19 -03:00
Patoke bac13d7384 fix: forgot to initialize the totalAllocs critical section 2026-03-03 02:06:49 -03:00
la dbdb2d107b Merge branch 'Patoke:master' into master 2026-03-03 15:00:00 +10:00
Patoke 7a4e31561d chore: rename critical section variable to a more accurate one
fix: call ``Renderer::CBuffTick`` at ``C4JRender::Tick`` in release mode
2026-03-03 01:59:30 -03:00
la 28ab7dd6cc Merge branch 'Patoke:master' into master 2026-03-03 14:52:06 +10:00
Patoke 8dd19edd1a fix: for some reason the renderTarget and depthStencil code weren't matching and didn't use the proper descriptors 2026-03-03 01:47:35 -03:00
Patoke ebfeeac4f8 fix: mismatch in textureFormats definition, textures were created as DXGI_FORMAT_B8G8R8A8_UNORM but the game uses DXGI_FORMAT_R8G8B8A8_UNORM 2026-03-03 01:24:53 -03:00
la fa880572bf chore: clean up the main vertex shader and fix bugs with it 2026-03-03 12:26:40 +10:00
la 28408ca8b4 chore: add license to shaders 2026-03-03 11:17:41 +10:00
la 94a4c70b5d Merge remote-tracking branch 'upstream/master' 2026-03-03 11:15:22 +10:00
3UR ca6c22edf2 feat: decompile shader hlsl and a pre-build batch script to generate the headers with bytecode 2026-03-03 10:31:52 +10:00
3UR 9e7c956244 chore: remove generated shader files from git tracking 2026-03-03 10:27:23 +10:00
3UR 680e352324 chore: update .gitignore to include generated shader files 2026-03-03 10:18:16 +10:00
Patoke 1ba53d6413 chore: add license notice 2026-03-02 18:24:18 -03:00
gsds dd54951cf1 Merge pull request #4 from 3UR/master
Make 4J_Render more accurate
2026-03-02 17:42:19 -03:00
3UR 73fffbbcec feat: add microprofiler to the renderer 2026-03-03 05:58:08 +10:00
3UR 5b3d67063f chore: change more code conventions and clean up a bit more stuff 2026-03-03 04:13:45 +10:00