Mercurial > sdl-ios-xcode
annotate src/main/macosx/Info.plist.in @ 1078:e2ef6b7001fd
Patch from Antonio SJ Musumeci:
"
This code with SDL-1.2.8 and CVS:
#include <stdio.h>
#include <stdlib.h>
#include <SDL.h>
int
main(int argc, char** argv)
{
char alphabet[26] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
char buffer_file[27] = {0};
char buffer_mem[27] = {0};
int rv_file;
int rv_mem;
FILE* file_ptr;
SDL_RWops* rwop_file;
SDL_RWops* rwop_mem;
file_ptr = fopen("./blah", "w");
fwrite(alphabet, 1, sizeof(alphabet), file_ptr);
fclose(file_ptr);
rwop_mem = SDL_RWFromMem(alphabet, sizeof(alphabet));
rwop_file = SDL_RWFromFile("./blah", "r");
rv_mem = SDL_RWread(rwop_mem , buffer_mem, 5, 6);
rv_file = SDL_RWread(rwop_file, buffer_file, 5, 6);
printf("From File: %d %s\n"
"From Mem: %d %s\n",
rv_file,
buffer_file,
rv_mem,
buffer_mem);
printf("Seek end of File: %d\n"
"Seek end of Mem: %d\n",
SDL_RWseek(rwop_file, 0, SEEK_END),
SDL_RWseek(rwop_mem , 0, SEEK_END));
SDL_RWclose(rwop_file);
SDL_RWclose(rwop_mem);
return 0;
}
Produces this output:
From File: 5 ABCDEFGHIJKLMNOPQRSTUVWXYZ
From Mem: 5 ABCDEFGHIJKLMNOPQRSTUVWXY
Seek end of File: 26
Seek end of Mem: 26
"
--ryan.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Fri, 24 Jun 2005 12:48:38 +0000 |
parents | ba9e0fcc2ae2 |
children |
rev | line source |
---|---|
176 | 1 <?xml version="1.0" encoding="UTF-8"?> |
2 <!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd"> | |
3 <plist version="0.9"> | |
4 <dict> | |
5 <key>CFBundleDevelopmentRegion</key> | |
6 <string>English</string> | |
7 <key>CFBundleExecutable</key> | |
8 <string>@EXECUTABLE_NAME@</string> | |
9 <key>CFBundleInfoDictionaryVersion</key> | |
10 <string>6.0</string> | |
11 <key>CFBundleName</key> | |
12 <string>@PACKAGE@</string> | |
13 <key>CFBundlePackageType</key> | |
14 <string>APPL</string> | |
15 <key>CFBundleShortVersionString</key> | |
16 <string>@VERSION@</string> | |
17 <key>CFBundleSignature</key> | |
18 <string>????</string> | |
19 <key>NSMainNibFile</key> | |
194
ba9e0fcc2ae2
Oops, back out that SDL_main -> SDLMain conversion
Sam Lantinga <slouken@libsdl.org>
parents:
191
diff
changeset
|
20 <string>SDLMain.nib</string> |
176 | 21 <key>NSPrincipalClass</key> |
22 <string>NSApplication</string> | |
23 </dict> | |
24 </plist> |