Skip to content

Commit

Permalink
menu: port
Browse files Browse the repository at this point in the history
  • Loading branch information
a1batross committed Aug 3, 2024
1 parent 7793d00 commit d8a772d
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 3 deletions.
4 changes: 3 additions & 1 deletion mainui/menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/

#include "Menu.h"
#include "menu.h"

enum m_state_e
{
Expand Down Expand Up @@ -2836,10 +2836,12 @@ void M_LanConfig_Key (int key)
}

if (StartingGame && lanConfig_cursor == 2)
{
if (key == K_UPARROW)
lanConfig_cursor = 1;
else
lanConfig_cursor = 0;
}

l = atoi(lanConfig_portname);
if (l > 65535)
Expand Down
3 changes: 1 addition & 2 deletions mainui/udll_int.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ GNU General Public License for more details.
*/

#include "menu.h"

#define EXPORT __declspec(dllexport)
#include "../dlls/exportdef.h"

ui_enginefuncs_t engfuncs;
ui_globalvars_t *gpGlobals;
Expand Down
37 changes: 37 additions & 0 deletions mainui/wscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#! /usr/bin/env python
# encoding: utf-8
# a1batross, mittorn, 2018

from waflib import Utils
import os

def options(opt):
pass

def configure(conf):
pass

def build(bld):
includes = ['.',
'../common',
'../engine',
'../pm_shared',
'../public']
source = bld.path.ant_glob('*.cpp')

if bld.env.DEST_OS not in ['android', 'dos']:
install_path = os.path.join(bld.env.GAMEDIR, bld.env.CLIENT_INSTALL_DIR)
else:
install_path = bld.env.PREFIX

bld.shlib(
source = source,
target = 'menu' + bld.env.POSTFIX,
name = 'menu',
features = 'cxx',
includes = includes,
install_path = install_path,
subsystem = bld.env.MSVC_SUBSYSTEM,
idx = bld.get_taskgen_count()
)

0 comments on commit d8a772d

Please sign in to comment.