1
0
forked from 0ad/0ad
0ad/source
wraitii e94faf7827 Don't hardcode the "0ad" resource into lobby XMPP & hosting
XMPP JID has a concept of 'resources', which can be used to
differentiate multiple clients of the same account.

We currently hardcode this 'resource' to '0ad' in two places:
- The 0 A.D. client always uses '0ad'
- The network code expects a host resource to be '0ad' when connecting.

As noted in 0fd8aa2a77#31215, it is less effort to store the JI
D directly. This patch does that. It also makes 0 A.D. use a different
resource each time.
Note that resources ought not contain particular information, as the
XMPP server is free to
 clobber it. I keep '0ad-' here for debug purposes.

This allows:
- multiple 0 A.D. instances to log on the lobby at the same time (not
massively useful, but good for debugging sometimes)
- hosting a game with a custom resource, which will potentially make it
easier to have dedi
cated servers on one account.

Note that hosting multiple games on one account is currently not
supported and will have weird behaviour on the lobbybots side. They
should be upgraded independently of this.

Refs #3556

Differential Revision: https://code.wildfiregames.com/D3500
This was SVN commit r25407.
2021-05-09 12:51:32 +00:00
..
collada Refactors smart pointers creation, reduces code duplication and improves exception safety. 2021-02-13 23:53:40 +00:00
graphics Fix mistake in 100159548c 2021-05-06 07:42:49 +00:00
gui Fix 8b08f4ae7a - CGUIColor setting 2021-05-07 11:34:20 +00:00
i18n Split ScriptRequest in its own header. 2021-05-03 16:07:26 +00:00
lib Fix cpuid call with -fPIC on i386 architectures. 2021-05-09 12:41:45 +00:00
lobby Don't hardcode the "0ad" resource into lobby XMPP & hosting 2021-05-09 12:51:32 +00:00
maths Further reduce usage of TERRAIN_TILE_SIZE in non-terrain components 2021-05-02 17:40:00 +00:00
mocks More FreeBSD build fixes. 2012-01-30 06:21:11 +00:00
network Don't hardcode the "0ad" resource into lobby XMPP & hosting 2021-05-09 12:51:32 +00:00
pch Split ScriptRequest in its own header. 2021-05-03 16:07:26 +00:00
ps Fix Profiler1 "time per turn". 2021-05-06 16:49:34 +00:00
renderer Split ScriptRequest in its own header. 2021-05-03 16:07:26 +00:00
rlinterface ParamNode: switch to utf8, ToXML -> ToXMLString, test tweak, PCH tweak 2021-04-11 09:23:10 +00:00
scriptinterface Change GUI settings to explicitly be member variables. 2021-05-06 08:22:37 +00:00
simulation2 Fix Profiler1 "time per turn". 2021-05-06 16:49:34 +00:00
soundmanager XMB Improvements, parse JS into XMB, make strings more efficient. 2021-05-04 13:02:34 +00:00
third_party Optimization for include resolving in PreprocessorWrapper. 2021-01-20 23:05:15 +00:00
tools Fix enabling / disabling shadows in the actor viewer. 2021-04-28 11:09:16 +00:00
main.cpp Make real directory paths on the VFS predictable (retry) 2021-03-23 12:46:59 +00:00
test_setup.cpp Introduce C++ templates replacements for DEFINE_INTERFACE_X and RegisterFunction macros 2021-03-01 20:52:24 +00:00