Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tales of MajEyal
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
yutio888
Tales of MajEyal
Commits
92057ef8
Commit
92057ef8
authored
14 years ago
by
dg
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main.c
+11
-0
11 additions, 0 deletions
src/main.c
src/runner/core.h
+2
-1
2 additions, 1 deletion
src/runner/core.h
with
13 additions
and
1 deletion
src/main.c
+
11
−
0
View file @
92057ef8
...
...
@@ -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
}
This diff is collapsed.
Click to expand it.
src/runner/core.h
+
2
−
1
View file @
92057ef8
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment