/* Copyright (C) 1996-1997 Id Software, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "../quakedef.h" #include "errno.h" #include "touch_ctr.h" #include <3ds.h> #define TICKS_PER_SEC 268123480.0 int __stacksize__ = 4 * 1024 * 1024; u32 __ctru_linear_heap_size = 28 * 1024 * 1024; bool new3ds_flag; extern void Touch_Init(); extern void Touch_Update(); qboolean isDedicated; /* =============================================================================== FILE IO =============================================================================== */ #define MAX_HANDLES 10 FILE *sys_handles[MAX_HANDLES]; int findhandle (void) { int i; for (i=1 ; i