Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
vitaquake3
Commits
468ef624
Commit
468ef624
authored
Mar 15, 2018
by
Rinnegatamante
Browse files
Reduced stack size to 2MB.
parent
6cae79de
Changes
1
Hide whitespace changes
Inline
Side-by-side
code/psp2/sys_main.c
View file @
468ef624
...
...
@@ -31,19 +31,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#include <ctype.h>
#include <errno.h>
#ifndef DEDICATED
#ifdef USE_LOCAL_HEADERS
# include "SDL.h"
# include "SDL_cpuinfo.h"
#else
//# include <SDL.h>
//# include <SDL_cpuinfo.h>
#include <vitasdk.h>
#endif
#endif
#include "sys_local.h"
#include "sys_loadlib.h"
...
...
@@ -171,8 +160,6 @@ Single exit point (regular exit or in case of error)
static
__attribute__
((
noreturn
))
void
Sys_Exit
(
int
exitCode
)
{
CON_Shutdown
();
//SDL_Quit();
NET_Shutdown
();
Sys_PlatformExit
();
...
...
@@ -219,7 +206,6 @@ Sys_Print
=================
*/
void
Sys_Print
(
const
char
*
msg
)
{
//CON_LogWrite(msg);
CON_Print
(
msg
);
}
...
...
@@ -316,11 +302,7 @@ void Sys_ParseArgs(int argc, char **argv) {
}
#ifndef DEFAULT_BASEDIR
# ifdef __APPLE__
# define DEFAULT_BASEDIR Sys_StripAppBundle(Sys_BinaryPath())
# else
# define DEFAULT_BASEDIR Sys_BinaryPath()
# endif
# define DEFAULT_BASEDIR Sys_BinaryPath()
#endif
/*
...
...
@@ -411,7 +393,7 @@ int main(int argc, char **argv) {
IN_Init
(
NULL
);
// We need a bigger stack to run Quake 3, so we create a new thread with a proper stack size
SceUID
main_thread
=
sceKernelCreateThread
(
"Quake III"
,
quake_main
,
0x40
,
0x
8
00000
,
0
,
0
,
NULL
);
SceUID
main_thread
=
sceKernelCreateThread
(
"Quake III"
,
quake_main
,
0x40
,
0x
2
00000
,
0
,
0
,
NULL
);
if
(
main_thread
>=
0
){
sceKernelStartThread
(
main_thread
,
0
,
NULL
);
sceKernelWaitThreadEnd
(
main_thread
,
NULL
,
NULL
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment