Skip to content
Snippets Groups Projects
Commit 92057ef8 authored by dg's avatar dg
Browse files

mhh

git-svn-id: http://svn.net-core.org/repos/t-engine4@3054 51575b47-30f0-44d4-a5cc-537603b46e54
parent dae5e514
No related branches found
No related tags found
No related merge requests found
......@@ -43,6 +43,9 @@
#include "profile.h"
#include "main.h"
#include "runner/core.h"
#ifdef SELFEXE_WINDOWS
#include <windows.h>
#endif
#define WIDTH 800
#define HEIGHT 600
......@@ -798,6 +801,10 @@ void _te4_export te4main(int argc, char *argv[], core_boot_type *given_core_def)
{
core_def = given_core_def;
core_def->corenum = 0;
#ifdef SELFEXE_WINDOWS
freopen ("te4_log.txt", "w", stdout);
#endif
// Get cpu cores
nb_cpus = get_number_cpus();
......@@ -966,4 +973,8 @@ void _te4_export te4main(int argc, char *argv[], core_boot_type *given_core_def)
}
SDL_Quit();
#ifdef SELFEXE_WINDOWS
fclose(stdout);
#endif
}
......@@ -23,7 +23,7 @@
struct core_def_s {
void (*define)(struct core_def_s *core_def, const char *coretype, int id, const char *reboot_engine, const char *reboot_engine_version, const char *reboot_module, const char *reboot_name, int reboot_new, const char *reboot_einfo);
int corenum;
char *coretype;
......@@ -33,6 +33,7 @@ struct core_def_s {
char *reboot_name;
char *reboot_einfo;
int reboot_new;
};
typedef struct core_def_s core_boot_type;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment