-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Engine): build core file of the Engine
- Loading branch information
1 parent
01fccd2
commit 174a8f9
Showing
3 changed files
with
32 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
** EPITECH PROJECT, 2023 | ||
** Title: Engine-3D | ||
** Author: MasterLaplace | ||
** Created: 2023-10-16 | ||
** File description: | ||
** core | ||
*/ | ||
|
||
#include <stdio.h> | ||
#include <stdlib.h> | ||
|
||
#ifdef ENGINE_SYSTEM_WINDOWS | ||
#include <windows.h> | ||
|
||
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { | ||
#else | ||
int main(int ac, const char *av[]) { | ||
#endif | ||
if (ac != 2) { | ||
printf("Usage: ./engine.out [config.xml]\n"); | ||
return EXIT_FAILURE; | ||
} | ||
printf("Loading config file: %s\n", av[1]); | ||
return EXIT_SUCCESS; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters