mirror of
https://github.com/autc04/Retro68.git
synced 2024-06-27 04:29:39 +00:00
proper .r file for cfrg resource
This commit is contained in:
parent
8f9720a31e
commit
06bf36503b
|
@ -85,8 +85,9 @@ function(add_application name)
|
||||||
|
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
OUTPUT ${name}.bin ${name}.APPL ${name}.dsk
|
OUTPUT ${name}.bin ${name}.APPL ${name}.dsk
|
||||||
COMMAND ${REZ} ${REZ_TEMPLATES_PATH}/RetroPPCcfrg.r
|
COMMAND ${REZ} ${REZ_TEMPLATES_PATH}/RetroPPCAPPL.r
|
||||||
-I${REZ_INCLUDE_PATH}
|
-I${REZ_INCLUDE_PATH}
|
||||||
|
-DCFRAG_NAME="\\"${name}\\""
|
||||||
-o "${name}.bin" --cc "${name}.dsk" --cc "${name}.APPL"
|
-o "${name}.bin" --cc "${name}.dsk" --cc "${name}.APPL"
|
||||||
-t ${ARGS_TYPE} -c ${ARGS_CREATOR}
|
-t ${ARGS_TYPE} -c ${ARGS_CREATOR}
|
||||||
--data ${name}.pef
|
--data ${name}.pef
|
||||||
|
|
|
@ -36,7 +36,11 @@ if(CMAKE_SYSTEM_NAME MATCHES Retro68)
|
||||||
install(FILES Retro68.r Retro68APPL.r DESTINATION RIncludes)
|
install(FILES Retro68.r Retro68APPL.r DESTINATION RIncludes)
|
||||||
else()
|
else()
|
||||||
enable_language(ASM)
|
enable_language(ASM)
|
||||||
set(ARCH_FILES ppcstart.c ppcfpsave.s)
|
set(ARCH_FILES
|
||||||
|
ppcstart.c
|
||||||
|
ppcfpsave.s
|
||||||
|
RetroPPCAPPL.r)
|
||||||
|
install(FILES RetroPPCAPPL.r DESTINATION RIncludes)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_library(retrocrt
|
add_library(retrocrt
|
||||||
|
|
36
libretro/RetroPPCAPPL.r
Normal file
36
libretro/RetroPPCAPPL.r
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
#include "Processes.r"
|
||||||
|
#include "CodeFragments.r"
|
||||||
|
|
||||||
|
#ifndef CFRAG_NAME
|
||||||
|
#define CFRAG_NAME "RetroPPC Application"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
resource 'cfrg' (0) {
|
||||||
|
{
|
||||||
|
kPowerPCCFragArch, kIsCompleteCFrag, kNoVersionNum, kNoVersionNum,
|
||||||
|
kDefaultStackSize, kNoAppSubFolder,
|
||||||
|
kApplicationCFrag, kDataForkCFragLocator, kZeroOffset, kCFragGoesToEOF,
|
||||||
|
CFRAG_NAME
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
resource 'SIZE' (-1) {
|
||||||
|
dontSaveScreen,
|
||||||
|
acceptSuspendResumeEvents,
|
||||||
|
enableOptionSwitch,
|
||||||
|
canBackground,
|
||||||
|
multiFinderAware,
|
||||||
|
backgroundAndForeground,
|
||||||
|
dontGetFrontClicks,
|
||||||
|
ignoreChildDiedEvents,
|
||||||
|
is32BitCompatible,
|
||||||
|
reserved,
|
||||||
|
reserved,
|
||||||
|
reserved,
|
||||||
|
reserved,
|
||||||
|
reserved,
|
||||||
|
reserved,
|
||||||
|
reserved,
|
||||||
|
1024 * 1024,
|
||||||
|
1024 * 1024
|
||||||
|
};
|
|
@ -1,9 +0,0 @@
|
||||||
data 'cfrg' (0) {
|
|
||||||
$"0000 0000 0000 0000 0000 0001 0000 0000" /* ................ */
|
|
||||||
$"0000 0000 0000 0000 0000 0000 0000 0001" /* ................ */
|
|
||||||
$"7077 7063 0000 0000 0000 0000 0000 0000" /* pwpc............ */
|
|
||||||
$"0000 0000 0000 0101 0000 0000 0000 0000" /* ................ */
|
|
||||||
$"0000 0000 0000 0000 0038 0366 6F6F 0000" /* .........8.foo.. */
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user