Commit graph

246 commits

Author SHA1 Message Date
cypress
f03d8fb55d NX/VITA: Remove iframetime from progdefs 2024-09-04 18:14:00 -07:00
cypress
4418a1b0de NX/VITA: Add support for light_lev 2024-09-02 19:28:32 -07:00
cypress
ad9d215d3d NX/VITA: Fix call to Draw_AlphaStretchPic 2024-09-02 19:25:45 -07:00
cypress
0f58bd2cec NX/VITA: Unify progdefs.h across all sourceports 2024-09-02 19:15:31 -07:00
cypress
cc0a33ccec NX/VITA: Use Draw_AlphaStretchPic for moneyback 2024-09-02 10:27:13 -07:00
Tyler Young
5231b5c010
Font Kerning Implementation by Cypress (#51)
* Fix function definition for Waypoints and silence unneeded developer print

* Revert "Fix function definition for Waypoints and silence unneeded developer print"

This reverts commit 4e13b00c33.

* Fix typo from ai revamp merge

* typo#2

* NX/VITA: WIP Font Kerning Implementation

* Font Kerning Implementation

---------

Co-authored-by: cypress <motolegacy@proton.me>
2024-09-01 13:23:26 -07:00
cypress
d94b1c461b NX/VITA: Move Spatialization LUT to snd_dma 2024-08-31 18:18:54 -07:00
cypress
ac8e8def16 NX/VITA: Inverse Square Sound Attenuation 2024-08-31 18:14:46 -07:00
Tyler Young
3d9454ec52
Fix typo from ai revamp merge (#50)
* Fix function definition for Waypoints and silence unneeded developer print

* Revert "Fix function definition for Waypoints and silence unneeded developer print"

This reverts commit 4e13b00c33.

* Fix typo from ai revamp merge

* typo#2
2024-08-07 16:49:28 -07:00
Tyler Young
91d516960d merge blubs micro ai revamp
tested in a round 20 game in warehouse2.
2024-08-04 20:13:17 -04:00
cypress
55ea762ab1 VITA: Fix build 2024-06-30 19:43:01 -07:00
cypress
f4f4aad889 NX/VITA: Add support for nzp_rumble builtin 2024-06-30 19:15:38 -07:00
cypress
242147e667 NX/VITA: nzp_lockviewmodel builtin 2024-06-29 18:13:50 -07:00
cypress
4fa92811be VITA: No longer pull latest vitaGL 2024-06-17 17:29:59 -07:00
Peter0x44
2638f3a1bd VITA: Fix -Wincompatible-pointer-types warning
source/main_sdl.c:234:52: warning: passing argument 2 of 'sceKernelCreateThread' from incompatible pointer type [-Wincompatible-pointer-types]
  234 |  SceUID main_thread = sceKernelCreateThread("NZP", nzp_main, 0x40, 0x800000, 0, 0, NULL);
      |                                                    ^~~~~~~~
      |                                                    |
      |                                                    int (*)(unsigned int,  char **)
In file included from /usr/local/vitasdk/arm-vita-eabi/include/psp2/kernel/threadmgr.h:28,
                 from /usr/local/vitasdk/arm-vita-eabi/include/psp2/paf/misc.h:12,
                 from /usr/local/vitasdk/arm-vita-eabi/include/psp2/paf.h:14,
                 from /usr/local/vitasdk/arm-vita-eabi/include/vitasdk.h:52,
                 from source/main_sdl.c:86:
/usr/local/vitasdk/arm-vita-eabi/include/psp2/kernel/threadmgr/thread.h:48:69: note: expected 'SceKernelThreadEntry' {aka 'int (*)(unsigned int,  void *)'} but argument is of type 'int (*)(unsigned int,  char **)'
   48 | SceUID sceKernelCreateThread(const char *name, SceKernelThreadEntry entry, int initPriority,
      |                                                ~~~~~~~~~~~~~~~~~~~~~^~~~~
2024-06-17 19:05:18 +01:00
Peter0x44
88c161c004 NX: Fix -Wdiscarded-qualifiers warning
/__w/quakespasm/quakespasm/source/gl_hud.c: In function 'HUD_WorldText':
/__w/quakespasm/quakespasm/source/gl_hud.c:691:14: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  691 |         data = COM_Parse(cl.worldmodel->entities);
      |              ^
/__w/quakespasm/quakespasm/source/gl_hud.c:699:22: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  699 |                 data = COM_Parse(data);
      |                      ^
/__w/quakespasm/quakespasm/source/gl_hud.c:714:22: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  714 |                 data = COM_Parse(data);
      |                      ^
2024-06-17 18:58:06 +01:00
Peter0x44
70bec7322b NX: Fix -Wmisleading-indentation warning
/__w/quakespasm/quakespasm/source/gl_rpart.c: In function 'QMB_InitParticles':
/__w/quakespasm/quakespasm/source/gl_rpart.c:509:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  509 |         for (i = 0 ; i < 5 ; i++)
      |         ^~~
/__w/quakespasm/quakespasm/source/gl_rpart.c:219:1: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
  219 | do {                                                                                                                                    \
      | ^~
2024-06-17 18:27:36 +01:00
Peter0x44
f47080d347 VITA/NX: Fix a -Wmisleading-identation warning
source/view.c:1174:1: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
 1174 | else
      | ^~~~
source/view.c:1181:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
 1181 |  view2->origin[0] = view->origin[0];
      |  ^~~~~
2024-06-17 18:20:26 +01:00
Peter0x44
8ada86168c VITA: Fix -Wuninititalized warning
The Vita doesn't use FSAA so it is safe to set this to zero.

source/gl_vidsdl.c: In function 'VID_SetMode':
source/gl_vidsdl.c:823:2: warning: 'fsaa_obtained' is used uninitialized in this function [-Wuninitialized]
  823 |  Con_SafePrintf ("Video mode %dx%dx%d %dHz (%d-bit z-buffer, %dx FSAA) initialized\n",
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  824 |     VID_GetCurrentWidth(),
      |     ~~~~~~~~~~~~~~~~~~~~~~
  825 |     VID_GetCurrentHeight(),
      |     ~~~~~~~~~~~~~~~~~~~~~~~
  826 |     VID_GetCurrentBPP(),
      |     ~~~~~~~~~~~~~~~~~~~~
  827 |     VID_GetCurrentRefreshRate(),
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  828 |     depthbits,
      |     ~~~~~~~~~~
  829 |     fsaa_obtained);
      |     ~~~~~~~~~~~~~~
2024-06-17 18:08:35 +01:00
Peter0x44
6a256fe327 VITA: Fix "conflicting types for LoadAchievements" warning
source/menu.c: At top level:
source/menu.c:1300:6: warning: conflicting types for 'Load_Achivements'
 1300 | void Load_Achivements (void)
      |      ^~~~~~~~~~~~~~~~
source/menu.c:604:2: note: previous implicit declaration of 'Load_Achivements' was here
  604 |  Load_Achivements();
      |  ^~~~~~~~~~~~~~~~
2024-06-17 17:18:31 +01:00
Peter0x44
b425d04291 VITA: Fix -Wpointer-sign warning
source/net_udp.c: In function 'UDP_Init':
source/net_udp.c:102:25: warning: pointer targets in passing argument 2 of 'Cvar_Set' differ in signedness [-Wpointer-sign]
  102 |   Cvar_Set ("hostname", nick);
      |                         ^~~~
      |                         |
      |                         SceChar8 * {aka signed char *}
In file included from source/quakedef.h:282,
                 from source/net_udp.c:26:
source/cvar.h:98:50: note: expected 'const char *' but argument is of type 'SceChar8 *' {aka 'signed char *'}
   98 | void Cvar_Set (const char *var_name, const char *value);
      |                                      ~~~~~~~~~~~~^~~~~
2024-06-17 17:18:31 +01:00
Peter0x44
b709396d40 VITA: Fix -Wpointer-sign warning
source/net_udp.c:101:64: warning: pointer targets in passing argument 2 of 'sceAppUtilSystemParamGetString' differ in signedness [-Wpointer-sign]
  101 |   sceAppUtilSystemParamGetString(SCE_SYSTEM_PARAM_ID_USERNAME, nick, SCE_SYSTEM_PARAM_USERNAME_MAXSIZE);
      |                                                                ^~~~
      |                                                                |
      |                                                                char *
In file included from /usr/local/vitasdk/arm-vita-eabi/include/psp2/appmgr.h:12,
                 from /usr/local/vitasdk/arm-vita-eabi/include/vitasdk.h:8,
                 from source/net_udp.c:30:
/usr/local/vitasdk/arm-vita-eabi/include/psp2/apputil.h:244:12: note: expected 'SceChar8 *' {aka 'signed char *'} but argument is of type 'char *'
  244 |  SceChar8 *buf, SceSize bufSize);
2024-06-17 17:18:31 +01:00
Peter0x44
fa99d2b563 VITA/NX: Fix -Wincompatible-pointer-types warning
COM_LoadStackFile already returns a "byte*" so this cast is totally
unneeded. I'm not sure why it was there to begin with

source/gl_model.c: In function 'Mod_LoadModel':
source/gl_model.c:337:7: warning: assignment to 'byte *' {aka 'unsigned char *'} from incompatible pointer type 'unsigned int *' [-Wincompatible-pointer-types]
  337 |   buf = (unsigned*)COM_LoadStackFile ("models/missing_model.mdl", stackbuf, sizeof(stackbuf), NULL);
      |       ^
2024-06-17 17:18:31 +01:00
Peter0x44
a40c8e34d4 VITA: Fix -Wimplicit-function-declaration warning
GCC 14 promotes this to an error.

source/gl_hud.c:1697:2: warning: implicit declaration of function 'Save_Achivements' [-Wimplicit-function-declaration]
 1697 |  Save_Achivements();
      |  ^~~~~~~~~~~~~~~~
2024-06-17 17:18:31 +01:00
Peter0x44
251c34708c VITA: Fix -Wmisleading-identation warning
source/gl_hud.c: In function 'HUD_Parse_Achievement':
source/gl_hud.c:1689:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
 1689 |     if (achievement_list[ach].unlocked)
      |     ^~
source/gl_hud.c:1692:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
 1692 |  achievement_unlocked = 1;
      |  ^~~~~~~~~~~~~~~~~~~~
2024-06-17 17:18:31 +01:00
Peter0x44
c850e72b53 VITA/NX: Fix -Wformat-extra-args warnings
source/gl_screen.c:375:17: warning: too many arguments for format [-Wformat-extra-args]
  375 |    strcpy(s, va("Hold %s to buy %s\n", GetUseButtonL(), GetPerkName(weapon), cost));
      |                 ^~~~~~~~~~~~~~~~~~~~~
source/gl_screen.c:385:17: warning: too many arguments for format [-Wformat-extra-args]
  385 |    strcpy(s, va("Hold %s to Activate the Trap\n", GetUseButtonL(), cost));
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
source/gl_screen.c:390:17: warning: too many arguments for format [-Wformat-extra-args]
  390 |    strcpy(s, va("Hold %s to Pack-a-Punch\n", GetUseButtonL(), cost));
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
source/gl_screen.c:405:17: warning: too many arguments for format [-Wformat-extra-args]
  405 |    strcpy(s, va("Hold %s to use Teleporter\n", GetUseButtonL(), cost));
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
source/gl_screen.c:430:17: warning: too many arguments for format [-Wformat-extra-args]
  430 |    strcpy(s, va("Hold %s to End the Game\n", GetUseButtonL(), cost));
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
2024-06-17 17:18:31 +01:00
Peter0x44
befc85915d VITA/NX: Fix implicit function declaration warning
GCC 14 makes this an error.

source/gl_rmisc.c: In function 'R_Init':
source/gl_rmisc.c:256:2: warning: implicit declaration of function 'R_InitOtherTextures'; did you mean 'R_InitTextures'? [-Wimplicit-function-declaration]
  256 |  R_InitOtherTextures ();
      |  ^~~~~~~~~~~~~~~~~~~
      |  R_InitTextures
source/gl_rmisc.c: At top level:
source/gl_rmisc.c:671:6: warning: conflicting types for 'R_InitOtherTextures'
  671 | void R_InitOtherTextures (void)
      |      ^~~~~~~~~~~~~~~~~~~
source/gl_rmisc.c:256:2: note: previous implicit declaration of 'R_InitOtherTextures' was here
  256 |  R_InitOtherTextures ();
      |  ^~~~~~~~~~~~~~~~~~~
2024-06-17 17:18:31 +01:00
cypress
d1200a3956 VITA/NX: Consistent AI size for builtin and pathing 2024-06-16 21:21:06 -07:00
cypress
c59ac1ae96 VITA/NX: Remove legacy sprint toggle hack 2024-05-18 14:29:34 -07:00
cypress
ce20fd0893
NX/VITA: Remove Maximum SDL compatibility version 2024-05-06 18:14:22 -07:00
cypress
3f55696e09
NX/VITA: Replace standard EF_ROTATE with one that mimicks Power-Up behavior 2024-04-07 20:09:12 -07:00
cypress
637bc87005
VITA/NX: Force Update 2024-03-16 19:52:27 -07:00
cypress
736380b098
NX/VITA: Fix nzp_screenflash build error 2024-01-22 23:13:19 -05:00
cypress
f2c392f235
NX/VITA: Prevent Sniper Sway with Deadshot Daiquiri 2024-01-22 23:06:54 -05:00
cypress
c34deca69f
NX/VITA: Fix SCREENFLASH_FADE_INANDOUT updating too slow 2024-01-14 21:21:38 -05:00
MotoLegacy
24c89e197a NX/VITA: Add nzp_screenflash builtin 2024-01-14 20:43:33 -05:00
MotoLegacy
1b622cf24f NX/VITA: Bump intensity of idle viewmodel bobbing 2024-01-13 15:34:25 -05:00
cypress
d93ecf2b1d
NX/VITA: Idle View Model Bobbing Integration from CSQC 2024-01-13 14:55:23 -05:00
cypress
b5150a81e6 NX/VITA: Add support for loading NZ:P Beta Waypoints 2024-01-07 18:01:12 -05:00
cypress
73781d4e13 NX/VITA: Fix building menu.c object 2024-01-07 10:45:42 -05:00
cypress
9b804c4017 NX/VITA: Add crc16 builtin 2024-01-07 10:41:52 -05:00
cypress
2545fffde3
VITA/NX: Always reset to item 0 when flipping page 2023-12-29 17:40:50 -05:00
cypress
3c15d7d6e9 NX/VITA: Add entity scalefactor 2023-12-29 17:10:12 -05:00
cypress
f5ed62245c
NX/VITA: Fix downward velocity on monster MOVETYPE_WALK being constant 2023-12-27 15:40:27 -05:00
cypress
d49f680b17
NX/VITA: Remove hardcoded Quake difficulty spawnflags 2023-12-16 12:33:03 -05:00
cypress
e7458c4824 NX/VITA: Considerable protocol bandwidth optimizations 2023-12-05 13:00:57 -05:00
cypress
bace222fce NX/VITA: Process Aim Assist Snapping without Server Assistance (coop) 2023-12-04 17:51:18 -05:00
cypress
e5a45a1b93 VITA: Prohibit exeuction of ParseClientCommand 2023-12-03 14:45:10 -05:00
cypress
c8f0ac928a NX/VITA: Properly display points in Co-Op 2023-12-02 16:58:57 -05:00
cypress
00585ad599 NX/VITA: Add Warehouse and Warehouse (Classic) to menus 2023-12-01 01:42:19 -05:00