|
||||||
| C and C++ C and C++ forum for discussing all forms of C except for C#. These languages are powerful low level languages used for creating Operating Systems, Device Drivers, compilers and much more. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
Hi people from CodeCall!
I started program a few days and I'm trying make a launcher for ScummVM and a language selector for Monkey Island 3. With the launcher I didn't have too much problems. The codes is this: PHP Code:
This is just C. But I wish this launcher has a icon, but this is for DOS. ¿It's possible made a hide program to execute ScuumVM and have a icon? The other thing is about a language selector. The file LANGUAGE.TAB have the subtitles and VOXDISK1.BUN and VOXDISK2.BUN have the voices. Because I have the italian and spanish subtitles and voices I wanna make a program to select the subtitle and voice renaming the files like this: Subtitles in spanish: LANGUAGE.TAB --> LANGUAGE.TAB_EN LANGUAGE.TAB_SP --> LANGUAGE.TAB Voices in italian: VOXDISK1.BUN --> VOXDISK1.BUN_EN VOXDISK1.BUN_IT --> VOXDISK1.BUN VOXDISK1.BUN --> VOXDISK2.BUN_EN VOXDISK2.BUN_IT --> VOXDISK2.BUN I don't pretend you made the programm, I just need some instructions to made that. I'm using CodeBlocks like IDE and MinGW like compilator. Thanks. Last edited by Qelchor; 07-15-2008 at 11:20 AM. |
| Sponsored Links |
|
|
|
|||
|
Is there a way to force ScummVM to load the files, or would you have to edit the binary code of the program itself? Are the options contained in the .INI file?
|
|
|||
|
Thanks dargueta for the reply.
I want ScummVM load the settings from scummvm.ini in the ScummVM folder, and I'm using the command scummvm.exe -c scummvm.ini. This is to make ScummVM portable. Finally I discover a code to hide the console windows of SucmmVM. launcher.c Code:
#define _WIN32_WINNT 0x0500
#include <windows.h>
int main()
{
HWND hWnd = GetConsoleWindow();
ShowWindow( hWnd, SW_HIDE );
system("SCUMMVM\\scummvm.exe -c SCUMMVM\\scummvm.ini");
return 0;
}
launcher.rc Code:
#include "resource.h" IDI_ICON ICON "launcher.ico" resource.h Code:
#define IDI_ICON 101 launcher.ico I compiled it with MinGW from CodeBlocks and the program works fine, but the .exe stills without appear in the icon. What I'm doing wrong? Last edited by Qelchor; 07-19-2008 at 02:43 PM. |
|
|||
|
If there's no window, then there won't be an icon. Unless you're talking about the thumbnail image, in which case the only reason why there wouldn't be an icon is because it's of the wrong size. 32x32 is the standard size for thumbnail images, 16x16 for taskbar and titlebar images. Most applications have both, and the system chooses the correct one to display.
Could you post the contents of scummvm.ini so I can show you how to force the program to load the correct files? Last edited by dargueta; 07-20-2008 at 02:28 PM. Reason: Wrong, wrong, wrong. |
|
|||
|
Yes, I know this about icons.
I think the problem is with CodeBlocks or the MinGW. I compilated a program sample from the source and don't build the program with the icon. What's so complicaded? |
| Sponsored Links |
|
|
|
|||
|
I've never used either, so I wouldn't know. I think Xav might.
|
|
|||
|
To make a Win32 application, you can copy and paste this code, then modify it to suit your needs. You may need to change your compiler settings.
Code:
#include <windows.h>
//other includes go here
INT WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, \
LPSTR lpCmdLine, int nCmdShow)
{
//put your main() code here. A window isn't created
//unless you explicitly code one.
return 0; //or whatever other value you want
}
|
![]() |
| Tags |
| island, launcher, selector |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
| WingedPanther | ........ | 2753.6 |
| Xav | ........ | 2704 |
| Brandon W | ........ | 1702.32 |
| John | ........ | 1207.73 |
| marwex89 | ........ | 1175.24 |
| morefood2001 | ........ | 966.05 |
| dcs | ........ | 655.75 |
| Steve.L | ........ | 475.59 |
| orjan | ........ | 418.58 |
| Aereshaa | ........ | 383.54 |