Commit Graph

2447 Commits

Author SHA1 Message Date
NPO c21d794482 Running Lua Script on the main GUI thread
Switched running the LUA script from the emuThread to the main window / main GUI thread... Should have just done this from the start, this makes things much simpler to implement, and will make future planned GUI functions much easier to add.
2024-10-28 13:15:56 -04:00
NPO a312d4d2e7 Update Lua_Docs.md 2024-10-28 09:22:12 -04:00
NPO b16912a96c Changed MelonPrint to print,
Renamed "MelonPrint" to just "print",
TIL you can redefine pretty much any lua funct...
Also fixed the lua console not re-opening after closing it the first time.
2024-10-27 08:33:03 -04:00
NPO a6dd2362c2 Code Clean Up
Pass 1-3 should be ready for another round of review.
2024-10-23 13:27:12 -04:00
NPO c1921f9a2e Clean LuaMain
Round 1-2 of code clean up
2024-10-23 13:14:49 -04:00
NPO cc8b7f0083 Merge branch 'master' of https://github.com/NPO-197/melonDS-lua 2024-10-23 12:44:23 -04:00
NPO db78366131 Code Clean Up
Round one of clean up
2024-10-23 12:44:21 -04:00
NPO b828181922
Update Lua_Docs.md 2024-10-22 10:54:16 -04:00
NPO f16fe763a3 Create Lua_Docs.md
Created a basic Documentation of currently implemented lua functions.
2024-10-22 10:48:24 -04:00
NPO d92fb25ecb replaced QString with const char* while passing args 2024-10-19 09:17:49 -04:00
NPO bc40d89fad Update LuaMain.cpp 2024-10-18 16:06:41 -04:00
NPO 3ee3abf99c Update LuaMain.cpp 2024-10-18 14:02:50 -04:00
NPO 5376f5a1e6 Update LuaMain.cpp 2024-10-18 11:00:41 -04:00
NPO 92fc1f9573 Update LuaMain.cpp 2024-10-18 10:52:13 -04:00
NPO ba82d9352b Fixing qpainter font to work on MacOS 2024-10-18 08:18:33 -04:00
NPO 4f4619db83 Update LuaScriptTest.lua 2024-10-17 18:07:54 -04:00
NPO 4f1b1d12e0 fixed LuaSaveState 2024-10-17 09:09:08 -04:00
NPO 7283efcb03 Fixed some broken functions, added Lua test script to tools
Note I only plan to add files to the tools folder that are helpful for quickly testing the implemented Lua functions. (they aren't used in the build.)
2024-10-16 19:36:22 -04:00
NPO 487b80c06a
Update CMakeLists.txt & build-ubuntu.yml
Fixed Compile errors on github actions.
2024-10-15 17:36:49 -04:00
NPO f144f754ae Using `lua_getextraspace(` instead of redefining lua_State
Thanks to @edo9300 for catching this!
2024-09-29 15:26:39 -04:00
NPO 1cdf447b9c Update CMakeLists.txt 2024-09-28 18:57:24 -04:00
NPO e7e15a636a Update CMakeLists.txt 2024-09-28 18:52:23 -04:00
NPO 0a1e4207ad Update flake.nix 2024-09-28 18:48:28 -04:00
NPO 5c00b0ba58 Update CMakeLists.txt 2024-09-28 18:37:09 -04:00
NPO 226053bb95 Update CMakeLists.txt 2024-09-28 18:34:36 -04:00
NPO fbfbf51e77 Update vcpkg.json 2024-09-28 18:28:10 -04:00
NPO 11909c3290 Update build-ubuntu.yml 2024-09-28 14:01:08 -04:00
NPO 5eccaae561
Update CMakeLists.txt find lua package... 2024-09-28 13:37:18 -04:00
NPO 8d0de893dd New Class "LuaBundle"
Refactored code to make use of new LuaBundle class, this is to bring the implementation closer inline with how EmuThread is implemented, and should now be compatible with multiple emuInstances, if needed. also should make adding support for multiple lua scripts a bit easier as well.
2024-09-27 14:35:36 -04:00
NPO 2f19ab8bb5 Next Attempt (2024)!
-Still lots todo! but I have a (mostly) working version up and running!
2024-09-25 13:18:13 -04:00
RSDuck 2eb6d44c2c prevent use after free through focusOutEvent when window is closed 2024-09-24 20:08:07 +02:00
CasualPokePlayer 2179ca2a41
Set the correct save type for Puzzler World USA (#2156)
Fixes #1804
2024-09-18 20:58:55 +02:00
RSDuck 7ac2eb2d71 attempt at fixing Windows build 2024-09-15 07:38:28 +02:00
RSDuck a3d696121e rework gdb packet parsing
it should be a bit more robust now
2024-09-15 07:30:53 +02:00
Nadia Holmquist Pedersen 50d32f3c96 flake: clean up dependencies a bit
* qt6.* instead of kdePackages.*
* use an extra-cmake-modules that depends on Qt6 rather than 5, and
  exclude it on macOS
2024-09-13 05:43:39 +02:00
RSDuck 74f479ce6d gdb stub config setup fixes 2024-09-11 14:41:22 +02:00
Jakly f719438a6e
Improve calculation of light colors (#1967)
* maintain precision until all lights are calculated

fixes lugia on the soul silver title screen

* small optimization

* small note

* small cleanup/notes

shouldn't need to check that every time, since the variable shouldn't be able to overflow

* hw doesn't cap difflevel at 255

Should it cap at all?
Can vtx colors overflow...?

* diffuse level appears to be shifted right by 9

fixes some minor inaccuracies

* improve specular lighting a little

* small improvement to diffuse lighting

fixes a few off by ones
- finding by azusa

* small tweaks

* handle overflows of diffuse lighting properly

-credits to azusa once more

* attempt at improving specular lighting calcs

still far from correct, but its a start.
fixes: https://github.com/melonDS-emu/melonDS/issues/1545

* meh

* improve specular lighting further

* add notes

* theory: add half vec instead of subt 1

* implement azusa's specular lighting algorithm

* fix minor edge case with spec lighting

* give proper credit in comments

* fix some bugs/misc tweaks

* more quirky overflow/underflow handling

* fix a spec lighting edgecase

remove some redundant parentheses

* fix an edge case with light vector calcs

* spec recip uses a different calc for light dir?

also remove a check that shouldn't be mathematically possible to trigger

* nvm that thing i thought couldn't trigger was required

also move reciprocal calc into the light vector calc function since i might as well now ig

* replace a bunch of stuff with much *much* simpler algorithms

* misc cleanup

PARENTHESES WOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO

* leave a note abt shininess table's default value being incorrect
2024-09-10 16:13:51 +02:00
Nadia Holmquist Pedersen 268c4f14c1 vcpkg: support building on Linux 2024-09-06 22:50:12 +02:00
Nadia Holmquist Pedersen d18524d5ac Nix: Add dev shell for building using vcpkg 2024-09-06 19:44:48 +02:00
Nadia Holmquist Pedersen 277b151ada update vcpkg and nixpkgs 2024-09-06 13:39:42 +02:00
Alex 4f6498c99c
Fix "Ejected GBA cart" not adding a newline (#2140) 2024-08-21 13:39:34 +02:00
Jesse Talavera 824eb370e4
Fix the build when the JIT is disabled (#2139) 2024-08-19 15:21:34 +02:00
Arisotura 0e6235a7c4 LAN: remember player name and max players setting 2024-08-15 13:34:27 +02:00
Arisotura 5b986d3111 wifi: add hack to facilitate multiplayer connections (extend post-beacon interval when connection is being initiated) 2024-08-14 16:47:08 +02:00
Nadia Holmquist Pedersen 2fff4c0b5a vcpkg: build qtbase with harfbuzz enabled, fixes windows widget drawing 2024-08-14 06:42:06 +02:00
Nadia Holmquist Pedersen deb1ba2bb2 README: Update build instructions to include enet and qtsvg
(input and battery dialogs don't render correctly without qtsvg, we
should have been installing it)
2024-08-13 08:40:10 +02:00
Nadia Holmquist Pedersen f54b6311c1 ubuntu... 2024-08-13 08:05:36 +02:00
Nadia Holmquist Pedersen cb6f60c383 ci: Linux runners should install qtsvg for proper bundling 2024-08-13 07:59:38 +02:00
Nadia Holmquist Pedersen c6cab9ed41 mac-libs.rb: Make bundling a bit smarter
* Resolve symlinks to avoid including the same thing twice (like
  version-numered dylib symlinks)
* Look in all Qt prefix paths for plugins - the package may not
  necessarily have the same path
* reduce install_name_tool invocations to make it a bit faster
* change dylib IDs to remove original source path
2024-08-13 07:53:09 +02:00
Nadia Holmquist Pedersen e290c42360 flake: add wayland to library path like nixpkgs does 2024-08-11 04:54:05 +02:00