166 Commits

Author SHA1 Message Date
twinaphex
318f17c4cb Start using VFS API constant defines 2017-12-11 12:15:00 +01:00
twinaphex
2e979ec537 Replace function signatures of file_stream file functions 2017-12-10 22:25:38 +01:00
Twinaphex
8b095eda74
Merge pull request #5878 from leiradel/cheevos_loaded
Fixed cheevos_loaded being true when there are no cheevos
2017-12-08 06:39:46 +01:00
leiradel
8c1e3e5d5b Fixed CXX_BUILD 2017-12-08 00:08:16 +00:00
leiradel
c53d3d35b8 Removed TODO comment 2017-12-07 23:51:15 +00:00
leiradel
bf8f7b444b Fixed cheevos_expr_value to be C89 compliant 2017-12-07 23:48:03 +00:00
leiradel
130a001846 Fixed wrong leaderboard count 2017-12-07 19:49:39 +00:00
twinaphex
32c1c3134e Fix another C89 issue 2017-12-05 16:45:57 +01:00
twinaphex
f9fa2ab2b7 More C89_BUILD fixes 2017-12-05 16:44:05 +01:00
twinaphex
863858ab00 Can't have anonymous variadic macros in C89 2017-12-05 16:42:37 +01:00
twinaphex
3ede6a9aeb Some C89_BUILD fixes 2017-12-05 16:35:03 +01:00
leiradel
ebbd1883ff Merge branch 'master' into cheevos_loaded 2017-11-26 22:50:39 +00:00
Andre Leiradella
6903602665 Set cheevos_loaded to false if the cheevos and leaderboard lists are empty 2017-11-26 22:03:59 +00:00
radius
88e84d1c79 fix a mistake I made when rewriting this code 2017-11-24 08:40:29 -05:00
radius
9b19d334c7 use a single list for achievements 2017-11-23 22:49:11 -05:00
Twinaphex
a490039253
Merge pull request #5759 from fr500/master
Achievement badges
2017-11-24 04:09:33 +01:00
twinaphex
8662d66f2e Try to be safer with calloc allocation 2017-11-24 04:08:32 +01:00
radius
ca2d2e4ba5 undefine this 2017-11-23 21:43:08 -05:00
radius
36b9bd9675 free CHEEVOS_VAR_JSON 2017-11-23 21:33:41 -05:00
Andrés
3744108790
Revert "use a single list for achievements" 2017-11-23 20:49:42 -05:00
radius
64f927292f use a single list for achievements 2017-11-23 20:35:54 -05:00
radius
faef304755 use filestream_write_file instead 2017-11-23 17:53:28 -05:00
radius
a865720d25 indentation 2017-11-23 17:49:55 -05:00
radius
459b669798 use filestream 2017-11-23 17:47:50 -05:00
radius
a80fc4a762 revert this for now 2017-11-23 17:40:22 -05:00
radius
1c0e692070 rewrite so the variables are not allocated on stack 2017-11-23 17:07:22 -05:00
radius
e55adf164a Merge remote-tracking branch 'gamedragon/cheevos_badges' 2017-11-23 14:42:55 -05:00
GameDragon2k
2b9636d782 Add xmb menu items 2017-11-23 11:55:53 -05:00
GameDragon2k
cfe59bcf2a Cheevos badges 2017-11-23 08:04:54 -05:00
GameDragon2k
63090ae2e4 Simple http request function to download badges. 2017-11-23 08:02:41 -05:00
GameDragon2k
8b9ad28ecb channges to populate and apply badges. 2017-11-23 07:56:47 -05:00
GameDragon2k
ec2808685d Add files to handle all cheevos badges. 2017-11-23 07:56:46 -05:00
GameDragon2k
84e80e47df Initial test for badge icon 2017-11-23 07:53:24 -05:00
meleu
4318a43ab3
better grammar 2017-11-22 22:34:48 -02:00
meleu
8e0ee72283
cheevos: do not show "0 of 0 cheevos unlocked" msg
**This will happen only if `cheevos_verbose_enable = true`.**

When loading a game tha doesn't have any achievement, instead of showing an OSD message saying "You have 0 of 0 achievements unlocked." just say "This game doesn't have any achievement."

I've just added an `if(cheevos_locals.core.count > 0)` and added indentation. The diff makes it look like it got more changes than it actually got.
2017-11-22 12:56:17 -02:00
celerizer
7be0dd9b18
RA Leaderboards: BCD and Ignore Unused Fields
- Support for binary-coded-decimal submits (b0x1234)
- Ignore unused fields from older leaderboards (PRO, FOR, TTL, DES)
2017-11-19 14:16:49 -06:00
twinaphex
c89ed117b6 Style nits 2017-11-18 19:11:14 +01:00
Rob Loach
6eb18ed03f
Fix some Cheevos free() memory calls 2017-11-18 12:40:46 -05:00
twinaphex
e6e27fe4cb Silence one Coverity warning 2017-11-17 20:11:22 +01:00
twinaphex
56a3bc10e3 Conditional frees 2017-11-17 19:52:35 +01:00
Brad Parker
07f3919811 only call setvbuf right after opening file, and use our own buffer for C89 compliance 2017-11-17 02:28:45 -05:00
celerizer
3519e4e16a
RA Leaderboards: Restore original var.c 2017-11-12 17:06:43 -06:00
celerizer
6db4bd2d8a
RA Leaderboards: Submit condition hex multipliers
accidentally reverted a previous change
2017-11-12 11:27:12 -06:00
celerizer
91c40ddfbf
RA Leaderboards: Submit condition hex multipliers
Wasn't aware this was possible
2017-11-12 11:23:08 -06:00
celerizer
b11922dd17
RA Leaderboards: comment fixes
//s to comment blocks
2017-11-11 19:58:08 -06:00
celerizer
6e8cb62cb8
RA Leaderboards: changes at leiradel's request
Fixes:
- The cheevos_print_xxx functions have moved to cheevos_format_value, will be better for RPS in the future.
- CHEEVOS_CONSOLE_ZX81_SPECTRUM -> CHEEVOS_CONSOLE_ZX81
- Remove all instances of CHEEVOS_ENABLE_LBOARDS
- cheevos_parse_format rewritten

New:
- Multiple values multiplied by nothing add correctly
- Failsafe to prevent LBs from submitting 0
- Memory patching for Atari 2600
2017-11-11 17:30:10 -06:00
celerizer
764290b851
Free memory on invalid LB, allow decimal multipliers 2017-11-10 07:17:07 -06:00
celerizer
ea5de035bf
RetroAchievements leaderboards enable/fixes
- Leaderboards are enabled based on an Achievements settings boolean
- Leaderboards don't trigger in softcore
- Values multiplied by nothing are correctly parsed
- Leaderboard memaddrs are patched based on console like cheevos
- Support for '$' operator added
- Human-readable formatting for LB values
2017-11-09 20:33:29 -06:00
celerizer
6a08ca6a18
Get up-to-date with master 2017-11-09 19:57:10 -06:00
celerizer
7e185b7ce4
Leaderboard fixes, functions
Values multiplied by nothing always correctly add, leaderboard memaddrs are patched, support for '$' operator.
2017-11-09 19:48:38 -06:00